Haette
New Member
- Reaction score
- 2
I'm trying to make a "wall of fire" type spell, and naturally I need a bunch of dummy spells to be cast in a line. However, the trigger seems to be making just one dummy, and never the rest. The one dummy IS casting its spell properly, but the rest never appear no matter what I try.
These used to be one trigger BTW, but I tried placing the "create, cast, destroy" part in its own trigger. It didn't help. Any ideas?
These used to be one trigger BTW, but I tried placing the "create, cast, destroy" part in its own trigger. It didn't help. Any ideas?
Trigger:
- Wall of Fire Cast
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Wall of Fire
- Actions
- Set Point_WallofFire_Target = (Target point of ability being cast)
- Set Integer_WallofFire_Level = (Level of Wall of Fire for (Triggering unit))
- Set Real_WallofFire_Angle = (Facing of (Triggering unit))
- Set Player_WallofFire = (Triggering player)
- -------- Create the center section --------
- Set Point_WallofFire_Section = Point_WallofFire_Target
- Trigger - Run Wall of Fire Section <gen> (ignoring conditions)
- Custom script: call RemoveLocation (udg_Point_WallofFire_Section)
- -------- Create the left sections --------
- For each (Integer A) from 1 to (8 + Integer_WallofFire_Level), do (Actions)
- Loop - Actions
- Set Point_WallofFire_Section = (Point_WallofFire_Target offset by ((Real((Integer A))) x 50.00) towards (Real_WallofFire_Angle + 90.00) degrees)
- Trigger - Run Wall of Fire Section <gen> (ignoring conditions)
- Custom script: call RemoveLocation (udg_Point_WallofFire_Section)
- Loop - Actions
- -------- Create the right sections --------
- For each (Integer A) from 1 to (8 + Integer_WallofFire_Level), do (Actions)
- Loop - Actions
- Set Point_WallofFire_Section = (Point_WallofFire_Target offset by ((Real((Integer A))) x 50.00) towards (Real_WallofFire_Angle - 90.00) degrees)
- Trigger - Run Wall of Fire Section <gen> (ignoring conditions)
- Custom script: call RemoveLocation (udg_Point_WallofFire_Section)
- Loop - Actions
- Custom script: call RemoveLocation (udg_Point_WallofFire_Target)
- Events
Trigger:
- Wall of Fire Section
- Events
- Conditions
- Actions
- Unit - Create 1 Wall of Fire for Player_WallofFire at Point_WallofFire_Section facing Point_WallofFire_Section
- Unit - Set level of Rain of Fire (Wall of Fire) for (Last created unit) to Integer_WallofFire_Level
- Unit - Order (Last created unit) to Neutral Pit Lord - Rain Of Fire Point_WallofFire_Section
- Unit - Add a (3.00 + (Real(Integer_WallofFire_Level))) second Generic expiration timer to (Last created unit)