| 08-10-2003, 02:41 PM | #1 |
Is there a way to slowly damage a unit inside of a region? Like, while a unit is inside of this region, damage 1 hp a second. |
| 08-10-2003, 02:47 PM | #2 |
Start E- Unit Enters Region C- ... A- Set DamageTaker = Entering Unit Turn on Dmg <gen> Dmg (Initially off) E- Every 1.00 seconds C- ... A- Set Life of DamageTaker to (Damagetaker´s Life - 1) End E- Unit Leaves Region C- ... A- Turn off Dmg <gen> |
| 08-10-2003, 02:50 PM | #3 | |
Quote:
Ah, ty.. one question tho. If more than unit enter the region, how would that work..? |
| 08-10-2003, 02:54 PM | #4 |
Start E- Unit Enters Region C- ... A- Add entering Unit to UnitGroup Blah Dmg E- Every 1.00 seconds C- ... A- Pick all Units in UnitGroup Blah Set Life of Picked Unit to (Picket Unit´s Life - 1) End E- Unit Leaves Region C- ... A- Remove Leaving Unit from UnitGroup Blah *LAGGY* hmm to many picked Units... try to replace em with a variable and it should work |
| 08-10-2003, 03:16 PM | #5 |
Event - Periodic Event - Every 1.00 seconds Action - Pick Every Unit in <Region> matching condition (if necessary) and do Set Life of Picked Unit = Life of Picked Unit - 1 True, periodic triggers can be laggy, but if you use them sparingly this should be ok... |
