| 07-06-2004, 10:11 AM | #1 |
Im trying to make a trigger to add multiple abilites at the same time is this possible? I know I will need variables, but I dont get how to add multiple abilities at the same time example event: dont matter i understand this part condition: dont matter i understand this part action : add barbarian skills to hero lets say theres 5 barbarian skills I have each skill as a variable i need a action somthing like add barbarian skills(1-5) to hero I did make the variable an array, however I dont see a "1 through 5 kinda deal" theres like add barbarian ability 1+ 1 or 1 minus 1, divided or whatever else but is there a 1 through 5, so it adds all 5 skills? hope I explaind it well |
| 07-06-2004, 01:22 PM | #2 |
If you have each skill in a Barbarian_Abilities variable array of 5 (so each skill is [1], [2] etc.) this is very easy. Make a loop! Code:
For each integer A between 1-5 do add Barbarian_Abilities[Integer A] Understand? It will loop 5 times and integer A will be the times it has looped while inside the loop. Which will be first 1, then 2, 3, 4 and 5. Remeber that each skill has to be a part of the same variable, inside the array. Like triggering? Join my trigger forums! (Link in sig) |
