| 08-01-2003, 02:56 PM | #1 |
Heya, I'm currently making a trigger spell that poisons an attacking unit. How would you trigger that? |
| 08-01-2003, 03:03 PM | #2 |
If you are not using unit custom values for something else you can set the attacking unit to let's say 10, Then a periodic event trigger that does this: Pick every unit in (units in playable map area matching (Custom value of (matching unit) Greater than 0) then do (multiple actions) -loop -actions --Set custom value of (picked unit) to ((Custom value of picked unit) - 1)) --set (picked unit) health to ((picked unit) health) - 5 |
