HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damn trigger

09-23-2003, 04:59 PM#1
Zachary_Shadow
Left Side Spawn Melee
Events
Time - Every 15.00 seconds of game time
Conditions
Hell_Left_Side_Melee Equal to 0
Actions
Unit - Create 1 Demonic Warrior for Player 1 (Red) at (Random point in Region 004 <gen>) facing Default building facing degrees
Special Effect - Create a special effect attached to the chest of (Last created unit) using war3mapImported\demonwings2.mdx
Wait 0.25 seconds
Unit - Create 1 Demonic Warrior for Player 1 (Red) at (Random point in Region 009 <gen>) facing Default building facing degrees
Special Effect - Create a special effect attached to the chest of (Last created unit) using war3mapImported\demonwings2.mdx
Wait 0.25 seconds
Unit - Create 1 Demonic Warrior for Player 1 (Red) at (Random point in Region 009 Copy <gen>) facing Default building facing degrees
Special Effect - Create a special effect attached to the chest of (Last created unit) using war3mapImported\demonwings2.mdx
Wait 0.25 seconds
Unit Group - Pick every unit in (Units in Region 009 Copy <gen> owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To (Center of Region 005 <gen>)
Unit Group - Pick every unit in (Units in Region 004 <gen> owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To (Center of Region 005 <gen>)
Unit Group - Pick every unit in (Units in Region 009 <gen> owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To (Center of Region 005 <gen>)

This is a trigger I made, to make units spawn and move them to another area (AoS style)

I also wanted to attach some wings to the models.

THIS works!! at times.... Other times, the wings don't get attached or the unit don't recive the move order... I can't figure out how to fix this so that they will get their wings AND get moved, EVERY TIME! Can someone help me out ?!
09-23-2003, 05:23 PM#2
35263526
Have you got a Right Side trigger as well? Because if you have and they happen at the same time then the 'last created unit' could be getting confused.

This is also true if there are any other triggers that might spawn units at the same time. THe problem with periodic triggers is that unless there are really huge gaps inbetween one and small between the other, at some point they're going to happen at the same time.

Hope this helps.........
09-23-2003, 05:37 PM#3
Zachary_Shadow
How else should one make aos triggers for unit spawns? I mean, it can be done, as we see in all the other maps... I know this is a bit more than just create and move, but it should be possible..right?

I have more triggers yes, on the opposite side I have the same trigger, just with other units and some other attachment. The attachment won't get confused (bad guys won't have good guys attachment)

I think that the triggers might need more time... :P I'll take a look later :P
09-23-2003, 05:45 PM#4
Supra God CrK
well if i was you where ever the parts of the trigger are that don't work i would add a set variable to it. like set = demon1= last created unit.
than i would add a wait 0.1 seconds and say attach wings to demon1(not last created). than wait another 0.1 seconds. than move demon1.

yea i know ididn't write out the exact triggers but i have realized that sometimes things don't work simply because the trigger trys to do it all to fast. so add some waits and also add some variables. that might fix it.
09-23-2003, 05:45 PM#5
theVIB
I think the problem is in "last created unit" indeed. You're using a Wait command before that, which means that the last created unit may not be the unit created on this trigger.

Try setting the created unit to a variable, and then use the special effects actions on that variable instead of using "last created unit"
09-23-2003, 11:19 PM#6
Zwan
Just some small suggestions that I learned the hard way. Avoid "pick every unit" like the plague. Try

Order- (last created unit group) to attack move-to

I would also try using the shadow orb ability for your special FX. and adding the ability to the unit instead of creating a special effect. The shadow Orb ability basically just gives a unit an effect, and you can specify the attachment point within the ability fields.

So.. something like

E-Every 15.00 seconds
C-none
A- If/then/else


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hell_Left_Side_Melee Equal to 0) Equal to True
Then - Actions
Unit - Create 1 Demonic Warrior for Player 1 (Red) at (Random point in Region 004 <gen> ) facing Default building facing degrees
Unit- Add Ability (Your shadow Orb ability) to (last created unit)
Wait- .01 seconds
Unit Group - Order (Last created unit group) to Attack-Move To (Center of Region 005 <gen>)
Else - Actions
Do nothing

Just copy and paste the if/then/else for each spawn point and change the regions as needed. You can add the waits in for the spawns as well, I just didnt feel like writing out the entire trigger, but you should get the idea.

The variable suggestion is a good idea as well if last created unit does not work properly..just at a glance though I think your pick every unit is overlapping itself, i.e. it's trying to pick more than 12 units at once and if it cant the left overs arent given FX or Ordered to move.