- Joined
- Aug 13, 2013
- Messages
- 1,709
How To Post Your Trigger
Edit: Its your first submission
I would like to see your triggers. ( Read the link )
Edit: Its your first submission
I would like to see your triggers. ( Read the link )
Lightning Cast

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Holy Bolt

Actions


Set Unit = (Triggering unit)


Set Lightning_handle1 = (Key (Picked unit))


Set Point = (Position of (Triggering unit))


Set point2 = (Target point of ability being cast)


Hashtable - Save Handle Of(Last created lightning effect) as 1 of Lightning_handle1 in (Last created hashtable)


Hashtable - Save 41.00 as 3 of Lightning_handle1 in (Last created hashtable)


Unit Group - Add Unit to Spell_group


Trigger - Turn off Lightning Spell Loop <gen>


Set Lightning_spellOff = (Lightning_spellOff + 1.00)


Custom script: set bj_wantDestroyGroup = true


Unit Group - Pick every unit in (Units within 300.00 of point2 matching ((Owner of (Matching unit)) Not equal to Player 1 (Red))) and do (Actions)



Loop - Actions




Special Effect - Create a special effect at point2 using Abilities\Spells\Other\Doom\DoomDeath.mdl




Special Effect - Destroy (Last created special effect)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Ability being cast) Equal to Holy Bolt





Then - Actions






Unit - Set life of (Triggering unit) to 100.00%





Else - Actions


Special Effect - Create a special effect at point2 using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl


Special Effect - Destroy (Last created special effect)


Custom script: call RemoveLocation(udg_Point)
Lightning Spell Loop

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in Spell_group and do (Actions)



Loop - Actions




Set Unit = (Picked unit)




Set Lightning_handle1 = (Key (Picked unit))




Set Point = (Position of Unit)




Set Lightning_hashtable = (Load 1 of Lightning_handle1 in (Last created hashtable))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Life of (Triggering unit)) Greater than Lightning_spellOff





Then - Actions






Lightning - Destroy (Last created lightning effect)






Unit Group - Remove (Triggering unit) from Spell_group






Set Lightning_spellOff = (Lightning_spellOff - 1.00)






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








Lightning_spellOff Equal to 0.00







Then - Actions








Trigger - Turn off (This trigger)







Else - Actions








Hashtable - Clear all child hashtables of child Lightning_handle1 in (Last created hashtable)








Custom script: call RemoveLocation(udg_point2)





Else - Actions


Hashtable - Save Lightning_spellOff as 5 of Lightning_handle1 in (Last created hashtable)


Custom script: call RemoveLocation(udg_Point)