| 04-15-2004, 07:29 PM | #1 |
How do i turn a trigger off when a spell is deactivated, and turn on when it is activated, and also how do i turn a trigger off when a units mana becomes 0? I'm trying to make a trigger turn on/off with immolation. |
| 04-15-2004, 10:58 PM | #2 | |
Quote:
Well im not sure but when you use immolation you re using in a strange way an string called order (check at the bottom of the ability editor in the required ability, there should be some txtboxes where it says "OrderString turn on/off" ) then for immolation it must be immolationon and immolationoff (chek it) or something like that . To turn on or off maybe something like this could help EVENT A unit is issued an order CONDITION order string of orderer unit equal to immlationon (not sure if this could be but chek it out in the String Comparison (maybe theres and order comparison) ACTION triggers- Turn OFF thetriggeryouwanttoturnoff<gen> and for the mana EVENT Every 0.10 second CONDITION mana of (trigering unit) equal to 0 (Integer comparison or Real Comparison... dont remember) ACTION Turn Off thetriggeryouwanttoturnoff<gen> Hope It Help :D |
| 04-16-2004, 12:10 AM | #3 |
It worked=) Here's wha i ended up with.. Event- Unit - A unit begins casting an ability Conditions- (Ability being cast) Equal to X Actions- Set StringVarX = on -------------------------- Events- Unit - A unit Is ussed an order with no target Conditions (Issued order) Equal to (Order(immolation)) Actions Wait 0.50 seconds If (All Conditions are True) then do (Then Actions) else do (Else actions) if - Condtions StringVarX Equal to on Then - Actions Region - Center X <gen> on (Position of (Triggering unit) Special Effect - Create a special effect at ((Random point in X <gen>) offset by (0.00, 0.00)) using X.mdl Wait 0.10 Trigger - Run (This trigger) (ignoring conditions) Else - Actions Do nothing ---------------------------------- Events- Unit - A unit Is issued an order with no target Conditions- (Issued order) Equal to (Order(unimmolation) Actions- Set StringVarX = off ---------------- thanks for the help. =) |
