| 02-01-2004, 08:25 PM | #1 |
There only seems to be a trigger for Unit Enters Region and Unit Leaves Region, not Unit Is In Region... help! (obvious use: lava) |
| 02-01-2004, 08:37 PM | #2 |
What about a dummy unit Probably with no model that has Phoenix fire/ permanent immolation ? |
| 02-01-2004, 08:47 PM | #3 |
The immolation effect is circular, and the region area is rectangular... Edit: I tried Unit Enters Region -> Boolean unitIsInAcid == True Unit Leaves Region -> Boolean unitIsInAcid == False Every 0.5 seconds -> (damage) Doesn't work...! |
| 02-01-2004, 08:50 PM | #4 | |
Quote:
Then make the area circular -) Also you can have say 4 units instead of 1 so you can use the whole rectangle |
| 02-01-2004, 08:57 PM | #5 |
Can't you do three triggers? the first would be something like [DOT INIT] E: Unit enters REGION C: A: Turn On DAMAGE TRIGGER [DAMAGE TRIGGER] E: Every 1 second of game time C: A: Pick every unit in (REGION) and do -- Set Health of Picked Unit to (Health of Picked Unit - 100) [DOT END] E: Unit leaves REGION C: Number of Units in REGION = 0 A: Turn Off DAMAGE TRIGGER Technically you'd only need the second trigger, but I believe having all 3 would reduce lag. |
| 02-01-2004, 09:00 PM | #6 |
An event for "Unit in region"? When would it fire? All the time? Try thinking eh? There are too ez ways, first uses a unit group variable: Code:
E - Unit enters region <lava> A - Add entering unit to UnitsInLava E - Unit leaves region <lava> A - Remove (leaving unit) from UnitsInLava E - Every 0.5 seconds E - Pick every unit in UnitsInLava and hurt them Second: Code:
E - Every 0.5 seconds. A - Custom Script: set bj_wantDestroyGroup=true A - Pick every unit in (Units in <lava>) and hurt them |
| 02-01-2004, 09:01 PM | #7 |
I would suggest you MPQ extract the Blizzard map 'Siege of Dalaran' and look to see how they did. They got it so every unit (which was specified further to every Undead unit) in a certain area steadily took damage. |
| 02-01-2004, 09:16 PM | #8 |
Edit: it's working! Halleluja. ;) |
