Fed up of creating the same trigger over and over again for each player? Bring on the For Player Trigger! Similar to the Delegate trigger this is a time saving trigger that I have developed to reduce the time for a developer for a map.
To Use
In a new condition insert the "For Player Trigger Start" and in the effects add "For player Trigger End". Ensure the trigger is a looping one (I may look at dropping this requirement at some point) Select a range of players to apply for and a variable name use in it. Now in any triggers or effects where you want to apply to a player type the name of the player instead.
Effective Use
Trigger taking a player number usually have you selecting it from a dropdown list which is no good as you need to type it. You can easily convert all triggers to use typing instead by opening your typetest and doing the following find and replace:
VarType="player"
to
VarType="string"
This will make it so you can type in player numbers as a variable freely.
Example areas of use in current state
Shops
Kills based level up
<Condition name="For Player Trigger Start">
<Param name="Variable" dispName="Variable" varType="string"> p< /Param>
<Param name="p1" dispName="lowest player" VarType="string"> 1< /Param>
<Param name="p2" dispName="highest player" VarType="string"> 4< /Param>
<Param name="Info" dispName="Info" varType="string"> Only works for a looping trigger< /Param>
<Param name="Info2" dispName="Info" varType="string"> Must have For Player Trigger End effect at end of effects< /Param>
<Expression> < ![ CDATA[ true);for(%Variable% = %p1%; < = %p2%){//] ] > < /Expression>
</Condition>
<Effect name="For Player Trigger End">
<Command> }< /Command>
</Effect>
In a new condition insert the "For Player Trigger Start" and in the effects add "For player Trigger End". Ensure the trigger is a looping one (I may look at dropping this requirement at some point) Select a range of players to apply for and a variable name use in it. Now in any triggers or effects where you want to apply to a player type the name of the player instead.
Trigger taking a player number usually have you selecting it from a dropdown list which is no good as you need to type it. You can easily convert all triggers to use typing instead by opening your typetest and doing the following find and replace:
VarType="player"
to
VarType="string"
This will make it so you can type in player numbers as a variable freely.
[This message has been edited by nottud (edited 09-02-2018 @ 11:09 AM).]