| 04-30-2004, 07:45 PM | #1 |
Ok I really need help bad with making this spawning trigger, so far i did the basics of setting the variables. Basically what i want to do is have 40 different types of units. Each wave spawns 3 units 30 times, once it spawns its 30 it'll move on to wave #2 which is obviously stronger and so on moving to wave #3 once wave #2 is finished spawning 30 times. Pretty much it's something like Enfos, i tried learning off of the Enfos trigger and did it how they did but mine didn't work out. So far this is what i got, variable initialization with a unitype array of 40, setting each array to the specified unit type. Now the spawning trigger. I didn't put an event, what i did is once the people finished choosing their hero it would run the monster spawn trigger. Since im testing it out, im only doing the first 2 waves Well basically the action is For each (Integer INTEGER_Monsterspawn) from 1 to 30, do (Actions) Loop - Actions Unit - Create 1 UNITTYPE_MonsterSpawn[INTEGER_Monsterspawn] for Player 11 (Dark Green) at (Random point in West Left Spawn <gen>) facing 90.00 degrees Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\MassTeleport\MassTeleportCa ster.mdl Unit - Create 1 UNITTYPE_MonsterSpawn[INTEGER_Monsterspawn] for Player 11 (Dark Green) at (Random point in West Left Spawn <gen>) facing 90.00 degrees Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\MassTeleport\MassTeleportCa ster.mdl Unit - Create 1 UNITTYPE_MonsterSpawn[INTEGER_Monsterspawn] for Player 11 (Dark Green) at (Random point in West Left Spawn <gen>) facing 90.00 degrees Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\MassTeleport\MassTeleportCa ster.mdl Wait 2.00 game-time seconds Now the problem i get is, once i start the game, it spawns wave #1 once, and then moves onto wave #2 without spawning wave #1 30 times. Anyone know anything that would help? thanks in advance |
| 04-30-2004, 08:42 PM | #2 |
You have not shown enough of the triggers for the cause of the problem to be shown. |
| 04-30-2004, 09:05 PM | #3 |
Oops sorry Well that's the whole trigger, the event is map initialization and there is no condition |
| 04-30-2004, 09:27 PM | #4 |
Maybe this trigger will work: Code:
Spawn Trigger
Events
Map initialization
Conditions
Actions
For each (Integer A) from 1 to 30, do (Actions)
Loop - Actions
Unit - Create 3 <UnitTypeVariable> for Player at (Center of Region <gen>) facing Default building facing degrees
Unit Group - Pick every unit in (Last created unit group) and do (Special Effect - Create a special effect attached to the origin of (Picked unit) using <SpecialEffect>)
Unit Group - Order (Last created unit group) to Move To (Center of Region 2<gen>)
Wait 2.00 secondsThen make a second trigger that, every 60 seconds, changes the unit type variable and re-runs the above trigger. |
