djb4cc1o94
TH.net Regular
- Reaction score
- 5
Hello i am making a trigger wich when a hero enters region he takes dmg over time...i did this but didnt work,is there any other way for do this?Maybe with some ability added from spellbook?
Entering Trigger :
Turn On Trigger :
Dunno if Entering Unit is right...
Found this
Will it work?Because it seems pretty confused :| Also it needs some modify for my case.
Entering Trigger :
Fire Legion
Events
Unit - A unit enters Fire Legion <gen>
Conditions
(Owner of (Entering unit)) Not equal to Player 12 (Brown)
Actions
Trigger - Turn on Takes Dmg <gen>
Turn On Trigger :
Takes Dmg
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit - Cause (Entering unit) to damage (Entering unit), dealing 1.00 damage of attack type Chaos and damage type Unknown
Dunno if Entering Unit is right...
Found this
Well, I tried to do something here and I hope it helps you.
There will be 4 triggers:
Trigger:
- AcidRainWarn
- Events
- Map initialization
- Conditions
- Actions
- Game - Display to (All players) for 30.00 seconds the text: Acid rain will fall in 360 seconds
Trigger:
- AcidRainRun
- Events
- Time - Elapsed game time is 360.00 seconds
- Conditions
- Actions
- Game - Display to (All players) for 10.00 seconds the text: Acid rain will fall NOW!
- Unit - Create 1 dummy01 for Neutral Hostile at (Center of (Playable map area)) facing Default building facing degrees
- Set TempUnit1 = (Last created unit)
- Trigger - Turn on AcidRainCheckUnits <gen>
Trigger:
- AcidRainCheckUnits
- Events
- Time - Every 0.10 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Triggering unit) is A structure) Equal to False) and (((Region 000 <gen> contains (Matching unit)) Equal to True) and ((((Matching unit) is alive) Equal to True) and ((Race of (Owner of (Matching unit))) Equal to Hum and do (Actions)
- Loop - Actions
- Set TempUnit2 = (Picked unit)
Trigger:
- AcidRainDamage
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- (AcidRainCheckUnits <gen> is on) Equal to True
- Actions
- Unit - Cause TempUnit1 to damage TempUnit2, dealing 10.00 damage of attack type Hero and damage type Normal
I'm not so expert, but I really hope it helps you... It was hard to do =)
Will it work?Because it seems pretty confused :| Also it needs some modify for my case.