| 08-12-2003, 04:11 AM | #1 |
Ok, basicly I want to create 3 units to attack-move to a certain region every 60 seconds or so. Sounds easy right? Well the problem is that I want the units to go down a path they wouldnt' naturally go. To fix this I created another region that they goto and when they enter that region they are forced to go to another region. Here is an example: Left Portal of Hope Events Time - Every 60.00 seconds of game time Conditions Actions Special Effect - Create a special effect at (Center of Left Portal Spawn Good <gen>) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl Unit - Create 1 Soldier of Hope for Player 1 (Red) at (Center of Left Portal Spawn Good <gen>) facing (Position of Portal of Hope 0092 <gen>) Unit - Order (Last created unit) to Attack-Move To (Random point in Left Portal Good Rally 1 <gen>) Unit - Create 1 Soldier of Hope for Player 1 (Red) at (Center of Left Portal Spawn Good <gen>) facing (Position of Portal of Hope 0092 <gen>) Unit - Order (Last created unit) to Attack-Move To (Random point in Left Portal Good Rally 1 <gen>) Unit - Create 1 Archer of Hope for Player 1 (Red) at (Center of Left Portal Spawn Good <gen>) facing (Position of Portal of Hope 0092 <gen>) Unit - Order (Last created unit) to Attack-Move To (Random point in Left Portal Good Rally 1 <gen>) Left Portal of Hope Rally 1 Events Unit - A unit enters Left Portal Good Rally 1 <gen> Conditions (Owner of (Triggering unit)) Equal to Player 1 (Red) Actions Unit Group - Order (Units in Left Portal Good Rally 1 <gen>) to Attack-Move To (Random point in Left Portal Good Rally 2 <gen>) Left Portal of Hope Rally 2 Events Unit - A unit enters Left Portal Good Rally 2 <gen> Conditions (Owner of (Triggering unit)) Equal to Player 1 (Red) Actions Unit Group - Order (Units in Left Portal Good Rally 2 <gen>) to Attack-Move To (Random point in Good Attack Point <gen>) -End Triggers The problem with this is that they step onto a rally point and only 2 or so of them go down the way I want them to, someone always goes back to the portal and just sits there so over time there ends up being dozens of units at the portal doing nothing. I am new to triggers, and I know there has to be a better/more efficent way to achieve what I am trying to do. If anyone could please post some triggers that would work for my situation it would really help me. Thanks in advance, Dark_Army |
| 08-12-2003, 07:19 AM | #2 |
:( can anyone help? |
| 08-12-2003, 08:40 AM | #3 |
Ok just wondering - Is that your EXACT trigger script? I havnt looked at it closely but maybe i have feeling you setting the units that spawn is neutral hostile? Which can be easily fixed through Game Constant. But Not sure so i wont go into deep detail. Just wondering if its exactly it. Well I'll look at it and see what i can do. |
