- Joined
- Feb 11, 2011
- Messages
- 1,860
Sup guys,
I am making a spell for a boss that creates a fissure at the targeted location. It then sends out three pulses (each going further than the previous) and they burn mana of anyone they hit. I am having trouble with the trigger:
Notes:
- Energy_Fissure_Effect is a unit which looks like a purple void (it has the Locust ability).
- Energy Pulse is an ability based on Carrion Swarm (just for effect; changed green wave to purple wave).
- There is just one of the three pulses shown here; when I get the one right I will do the others.
- Mr_Bean
I am making a spell for a boss that creates a fissure at the targeted location. It then sends out three pulses (each going further than the previous) and they burn mana of anyone they hit. I am having trouble with the trigger:
-
Creates Fissure
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to 4.3 Energy Fissure
-
Actions
- Set Temp_Point = (Target point of ability being cast)
- Unit - Create 1 Energy Fissure for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
- Set Energy_Fissure_Effect = (Last created unit)
- Wait 1.00 seconds
- Set Temp_Point = (Position of Energy_Fissure_Effect)
- Set Temp_Point_2 = (Temp_Point offset by 100.00 towards 0.00 degrees)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
- Unit - Add Energy Pulse [dummy] to (Last created unit)
- Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Temp_Point_2
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Set Temp_Point_2 = (Temp_Point offset by 100.00 towards 90.00 degrees)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
- Unit - Add Energy Pulse [dummy] to (Last created unit)
- Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Temp_Point_2
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Set Temp_Point_2 = (Temp_Point offset by 100.00 towards 180.00 degrees)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
- Unit - Add Energy Pulse [dummy] to (Last created unit)
- Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Temp_Point_2
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Set Temp_Point_2 = (Temp_Point offset by 100.00 towards 270.00 degrees)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
- Unit - Add Energy Pulse [dummy] to (Last created unit)
- Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Temp_Point_2
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Set Temp_Integer = 1
- Set Temp_Unit_Group = (Units within 600.00 of Temp_Point matching (((Owner of (Matching unit)) Not equal to Player 12 (Brown)) and ((Owner of (Matching unit)) Not equal to Neutral Passive)))
-
Unit Group - Pick every unit in Temp_Unit_Group and do (Actions)
-
Loop - Actions
- Set Temp_Unit = (Picked unit)
- Trigger - Burns Mana <gen> (checking conditions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Temp_Unit_Group)
- Custom script: call RemoveLocation(udg_Temp_Point)
- Custom script: call RemoveLocation(udg_Temp_Point_2)
- Custom script: call RemoveLocation(udg_Temp_Point_3)
- Wait 2 seconds
- Unit - Kill Energy_Fissure_Effect
-
Events
-
Burns Mana
- Events
- Conditions
-
Actions
- Set Temp_Point_3 = (Position of Temp_Unit)
- Wait ((Distance between Temp_Point and Temp_Point_3) / 300.00) seconds
- Unit - Set mana of Temp_Unit to ((Mana of Temp_Unit) - ((Real(Temp_Integer)) x 100.00))
- Special Effect - Create a special effect attached to the origin of Temp_Unit using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
- Special Effect - Destroy (Last created special effect)
Notes:
- Energy_Fissure_Effect is a unit which looks like a purple void (it has the Locust ability).
- Energy Pulse is an ability based on Carrion Swarm (just for effect; changed green wave to purple wave).
- There is just one of the three pulses shown here; when I get the one right I will do the others.
- Mr_Bean