| 07-23-2003, 08:24 PM | #1 |
This group of actions will probably help you -Events --A unit is issued an order with no target --A unit is issued an order targeting an object --A unit is issued an order targeting a point -Conditions -Actions --Trigger - Turn off (This trigger) --Unit - Pause (Triggering unit) --Unit - Order (Triggering unit) to stop --Unit - Unpause (triggering unit) --Trigger - Turn on (This trigger) Changing the Events and Conditions you can do things like stoping an unit from blinking, or casting spells, They Really Stop, And you don't have to worry about selection and that stuff. PS: For some odd reason, if you try this without the turn on / turn off actions it creates an infinite loop. |
| 07-24-2003, 02:13 PM | #2 |
When you order a unit to stop, that is giving the unit an order without a target, which therefor calls this trigger if you didn't disable it. Recursion ;) |
| 07-24-2003, 02:17 PM | #3 |
Believe me, the infinite was happening even before I put the order. Perhaps Pause and unpause are orders. |
| 07-24-2003, 05:24 PM | #4 |
I did something similar to this when stopping my peasants from using Patrol. It looks like this: Code:
Stop Hold Position
Events
Unit - A unit owned by Player 1 (Red) Is issued an order with no target
Conditions
(Unit-type of (Ordered unit)) Equal to Peasant (WC2)
(Issued order) Equal to (Order(holdposition))
Actions
Unit - Pause (Ordered unit)
Unit - Order (Ordered unit) to Stop
Unit - Unpause (Ordered unit) |
| 07-25-2003, 02:04 AM | #5 |
Pause makes units stop then no longer follow orders, like some special orders in The Sims (maxis game, not WC3) and then resumes the orders they were given before stopping. (in other words, Pause STARTS A STOP ORDER) (UNpause RESUMES actions.) |
| 07-25-2003, 12:16 PM | #6 |
Well, the important thing is that it works, And I don't have to worry about a warden blinking to the store section whenever she wants or to stop an archmage from teleporting to the duel arena. This is the Fixed base trigger from theJ89's statements -Events --A unit is issued an order with no target --A unit is issued an order targeting an object --A unit is issued an order targeting a point -Conditions --- (issued order) not equal to Order(Stop) -Actions --Unit - Pause (Triggering unit) --Unit - Order (Triggering unit) to stop --Unit - Unpause (triggering unit) |
| 08-12-2003, 01:09 AM | #7 |
sounds cool |
