†ALPHA†
New Member
- Reaction score
- 3
I've been trying to trigger a fire trap but so far haven't found a good solution.
I'm using a combination of three triggers to get it done. It works but it can only do damage to one unit who enters the region instead of all of them. In addition, I would prefer if I could get the fire trap doodads to stay "on" if that's possible.
FireTrigger is a simple Unit Variable.
FlameTrap004 is a region.
If anyone can think up a more efficient trigger that will get what I want, I'll be very grateful. I should mention, however, that I'm pretty dreadful at triggering, but I can catch on quick!
Cheers!
I'm using a combination of three triggers to get it done. It works but it can only do damage to one unit who enters the region instead of all of them. In addition, I would prefer if I could get the fire trap doodads to stay "on" if that's possible.
FireTrigger is a simple Unit Variable.
FlameTrap004 is a region.
Trigger:
- Enter FlameTrap004
- Events
- Unit - A unit enters FlameTrap004 <gen>
- Conditions
- Actions
- Animation - Play the Stand animation for all doodads of type Trap Side Fire within FlameTrap004 <gen>
- Set FireVictim = (Triggering unit)
- If ((Owner of FireVictim) Equal to Player 1 (Red)) then do (Trigger - Run Damage FlameTrap004 <gen> (ignoring conditions)) else do (Do nothing)
- Events
Trigger:
- Damage FlameTrap004
- Events
- Time - Every 3.00 seconds of game time
- Conditions
- Actions
- Unit - Cause FireVictim to damage FireVictim, dealing 50.00 damage of attack type Chaos and damage type Fire
- Events
Trigger:
- Exit FlameTrap004
- Events
- Unit - A unit leaves FlameTrap004 <gen>
- Conditions
- Actions
- Set FireVictim = No unit
- Trigger - Turn off Damage FlameTrap004 <gen>
- Trigger - Turn on Damage FlameTrap004 <gen>
- Events
If anyone can think up a more efficient trigger that will get what I want, I'll be very grateful. I should mention, however, that I'm pretty dreadful at triggering, but I can catch on quick!
Cheers!