| 06-25-2005, 04:44 PM | #1 |
ok i have no idea why this trigger won't work. Its suppose to fire every time a unit enters one of the regions in the event. The units this is meant for meet all the conditions, the condition that i think is causing the problem is (200 <gen> contains (Entering unit)) Equal to True. idk why but even though the unit is in the region it doesn't seem to work. help would be appreciated and rewarded.... here is the trigger Code:
Events
Unit - A unit enters 200 <gen>
Unit - A unit enters 201 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 9 (Gray)
(Mana of (Entering unit)) Greater than or equal to 200.00
(Mana of (Entering unit)) Less than 210.00
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(200 <gen> contains (Entering unit)) Equal to True
(Custom value of (Entering unit)) Equal to 0
Then - Actions
Unit - Set mana of (Entering unit) to ((Mana of (Entering unit)) + 1.00)
Unit - Set the custom value of (Entering unit) to ((Custom value of (Entering unit)) + 1)
Unit - Order (Entering unit) to Move To (Center of Region[(Integer((Mana of (Entering unit))))])
Else - Actions
Do nothing |
| 06-25-2005, 05:24 PM | #2 |
Maybe this is the cause of your problems: Unit enters region bug. |
| 06-25-2005, 07:59 PM | #3 |
it registers the unit entering becuase I put game - display text trigger in it and it showed up but the if condition was where it didn't work. i'm trying out the move unit slightly inside the region trigger...... rep has been given for the help. |
