| 11-22-2003, 04:16 PM | #1 |
I have a trigger that when you reach 5 points it spwans 3 footmen. When you get to 15 it gives you 5, and when you reach 30 you get 7. Normally you get 1 point for each unit you kill, but you get 5 extra points when you kill someone elses building. Now it has the chance to skip over the set intiger that would give them the units and not get the reinforcements, so I made the trigger when you get 5 or more points. I would like to know how I make the triggers only activate once for each player, not everytime they meet the condition. Heres my trigger: Footmen1 Events Unit - A unit Dies Conditions Points[(Player number of (Owner of (Killing unit)))] Greater than or equal to 5 Actions Unit - Create 3 Footman for Player 1 (Red) at (Random point in spwanregions[randomint[(Player number of (Owner of (Killing unit)))]]) facing Default building facing degrees |
| 11-22-2003, 04:37 PM | #2 |
Use a player group variable for active players, and remove them from the variable in the same trigger you use to give them reinforcements. Add in the condition "Player is in <your player group variable>" or whatever. You'll probably want as many variables for as many stages of reinforcements that you have, but it should work. |
