Flame Trap - Trigger Help

†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.

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)


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


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>


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!
 

vypur85

Hibernate
Reaction score
803
Just place an invisible unit with Permanent Immolation in that region? It works the same. And easier, without triggers and region...


Code:
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>
        Unit group - Add (Triggering unit) to SOMEUNITGROUP

Code:
Damage FlameTrap004
    Events
        Time - Every 3.00 seconds of game time
    Conditions
    Actions
        Unit group - Pick every unit in SOMEUNITGROUP and do multiple actions -
           Loop - Actions
               Unit - Cause (Picked unit) to damage (Picked unit), dealing 50.00 damage of attack type Chaos and damage type Fire

Code:
Exit FlameTrap004
    Events
        Unit - A unit leaves FlameTrap004 <gen>
    Conditions
    Actions
        Unit group - Remove (Triggering unit) from SOMEUNITGROUP

Code:
    Events
        Unit - A unit dies
    Conditions
       (Triggering unit) is in SOMEUNITGROUP Equal to True
    Actions
        Unit group - Remove (Triggering unit) from SOMEUNITGROUP
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top