Flame Tunnel Help

Mmage

New Member
Reaction score
7
Hello. I am making a map where an ability allows the user to blast a certain small area. The problem being the trigger dosent work. It will shoot off one attack (The attack being a breath of fire) but thats it. Can anyone tell me what is wrong or if i can even do this at all?

Fire Ice Tunnel
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Flame/Ice Tunnel
Actions
Set AATriggerPoint = (Target point of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Casting unit)) Equal to Mountain King
Then - Actions

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
Unit - Make (Last created unit) face AATriggerPoint over 0.00 seconds
Set AATriggerUnit[1] = (Last created unit)
Unit - Add a 10.00 second Generic expiration timer to AATriggerUnit[1]

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of AATriggerUnit[1]) offset by 175.00 towards ((Facing of AATriggerUnit[1]) + 90.00) degrees) facing Default building facing degrees
Unit - Make (Last created unit) face AATriggerPoint over 0.00 seconds
Set AATriggerUnit[2] = (Last created unit)
Unit - Add a 10.00 second Generic expiration timer to AATriggerUnit[2]

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of AATriggerUnit[1]) offset by 175.00 towards ((Facing of AATriggerUnit[1]) - 90.00) degrees) facing Default building facing degrees
Unit - Make (Last created unit) face AATriggerPoint over 0.00 seconds
Set AATriggerUnit[3] = (Last created unit)
Unit - Add a 10.00 second Generic expiration timer to AATriggerUnit[3]
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of AATriggerUnit[2]) offset by 250.00 towards (Facing of AATriggerUnit[2]) degrees) facing ((Facing of AATriggerUnit[2]) - 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of AATriggerUnit[3]) offset by 500.00 towards (Facing of AATriggerUnit[3]) degrees) facing ((Facing of AATriggerUnit[3]) + 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of AATriggerUnit[2]) offset by 500.00 towards (Facing of AATriggerUnit[2]) degrees) facing ((Facing of AATriggerUnit[2]) - 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of AATriggerUnit[3]) offset by 500.00 towards (Facing of AATriggerUnit[3]) degrees) facing ((Facing of AATriggerUnit[3]) + 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of AATriggerUnit[2]) offset by 500.00 towards (Facing of AATriggerUnit[2]) degrees) facing ((Facing of AATriggerUnit[2]) - 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Else - Actions
 

Ashcat

Hellooo
Reaction score
68
Try to set the casting unit into a variable at the very beginning of the trigger, then use that variable to refer to (casting unit) throughout the rest of the trigger. If that doesn't work then could you please give me a better description of your spell than "blast a certain small area" >.<
 

emootootoo

Top Banana
Reaction score
51
Alternatively you can use Triggering Unit instead of Casting unit, as Triggering Unit is a local variable and will work after waits. Triggering Unit allows you to make spells MUI easily with waits.
 

Mmage

New Member
Reaction score
7
Alright, switching it to triggering unit works fine and all 5 breaths are fired off. New problem, they are set to happen at every 250(whatever measurement WC3 uses), but the space between the first and 2nd looks much bigger than that, 3-4 looks fine, and 4-5 happens at the same spot. Can anyone tell me whats wrong now?

Fire Ice Tunnel
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Flame/Ice Tunnel
Actions
Set AATriggerPoint = (Target point of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Casting unit)) Equal to Mountain King
Then - Actions
Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
Unit - Make (Last created unit) face AATriggerPoint over 0.00 seconds
Set AATriggerUnit[1] = (Last created unit)
Unit - Add a 10.00 second Generic expiration timer to AATriggerUnit[1]

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Triggering unit)) at ((Position of AATriggerUnit[1]) offset by 175.00 towards ((Facing of AATriggerUnit[1]) + 90.00) degrees) facing Default building facing degrees
Unit - Make (Last created unit) face AATriggerPoint over 0.00 seconds
Set AATriggerUnit[2] = (Last created unit)
Unit - Add a 10.00 second Generic expiration timer to AATriggerUnit[2]

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Triggering unit)) at ((Position of AATriggerUnit[1]) offset by 175.00 towards ((Facing of AATriggerUnit[1]) - 90.00) degrees) facing Default building facing degrees
Unit - Make (Last created unit) face AATriggerPoint over 0.00 seconds
Set AATriggerUnit[3] = (Last created unit)
Unit - Add a 10.00 second Generic expiration timer to AATriggerUnit[3]
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Triggering unit)) at ((Position of AATriggerUnit[2]) offset by 250.00 towards (Facing of AATriggerUnit[2]) degrees) facing ((Facing of AATriggerUnit[2]) - 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Triggering unit)) at ((Position of AATriggerUnit[3]) offset by 500.00 towards (Facing of AATriggerUnit[3]) degrees) facing ((Facing of AATriggerUnit[3]) + 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Triggering unit)) at ((Position of AATriggerUnit[2]) offset by 750.00 towards (Facing of AATriggerUnit[2]) degrees) facing ((Facing of AATriggerUnit[2]) - 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Triggering unit)) at ((Position of AATriggerUnit[3]) offset by 1000.00 towards (Facing of AATriggerUnit[3]) degrees) facing ((Facing of AATriggerUnit[3]) + 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 0.20 game-time seconds

Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Triggering unit)) at ((Position of AATriggerUnit[2]) offset by 1250.00 towards (Facing of AATriggerUnit[2]) degrees) facing ((Facing of AATriggerUnit[2]) - 90.00) degrees
Unit - Set level of Flame Tunnel Attack for (Last created unit) to (Level of Flame/Ice Tunnel for (Casting unit))
Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire ((Position of (Last created unit)) offset by 150.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Else - Actions

Oh and to clarify the "small area" thing i will do a very rough X and O diagram. (Im sorry for the "area" thing, i was in a real hurry and logic went by the wayside.)
-------------0-----0------0
-------------X--X--X--X--X
Caster -> O--|--|--|---|--|
-------------X--X--X--X--X
-----------------0-----0
Its a tunnel-like area with the 0's being the dummy casters and shooting towards the middle of the tunnel. But at the max level (level 5 in this case) a wave will shoot through the middle (impale of crushing, it matters on a few things).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top