- Joined
- May 7, 2016
- Messages
- 2,174
Hello, Gods of triggers! I've made a very simple spell:
(+rep)
-
SpellChainLightning
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Chain Lightning
-
-
Actions
-
Hashtable - Create a hashtable
-
Set MB_prev = (Triggering unit)
-
Set MB_targ = (Target unit of ability being cast)
-
Unit Group - Add MB_prev to MB_TmpGroup
-
Unit Group - Add (Attacked unit) to MB_TmpGroup
-
Set MB_TempPoint = (Position of MB_prev)
-
Set MB_TempPoint02 = (Position of MB_targ)
-
Set MB_TempRegion = (Region(MB_TempPoint02, MB_TempPoint))
-
Set MB_SMax = (Height of MB_TempRegion)
-
Set MB_Number01 = (Number of units in MB_TmpGroup)
-
Set MB_Number02 = (Number of units in MB_TmpGroup)
-
Special Effect - Create a special effect at MB_TempPoint using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
-
Custom script: call RemoveLocation(udg_MB_TempPoint)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) is A ground unit) Equal to True
-
-
Then - Actions
-
Unit - Create 1 Lightning for Player 1 (Red) at MB_TempPoint02 facing Default building facing degrees
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(MB_TempRegion contains MB_targ) Equal to True
-
-
Then - Actions
-
Set MB_TempRegion02 = (Region(MB_TempPoint02, MB_TempPoint))
-
Unit - Create 1 Lightning for Player 1 (Red) at (Center of MB_TempRegion02) facing Default building facing degrees
-
Set MB_target04 = (Last created unit)
-
Custom script: call RemoveLocation(udg_MB_TempPoint02)
-
Lightning - Create a Chain Lightning - Primary lightning effect from source MB_TempPoint02 to target MB_TempPoint
-
Set Lightning01 = (Last created lightning effect)
-
Lightning - Create a Chain Lightning - Primary lightning effect from source MB_TempPoint02 to target (Position of (Random unit from MB_TmpGroup))
-
Set Lightning02 = (Last created lightning effect)
-
Unit - Create 1 Lightning for Player 1 (Red) at (Center of MB_TempRegion02) facing Default building facing degrees
-
Set MB_target05 = (Last created unit)
-
Custom script: call RemoveLocation(udg_MB_TempPoint02)
-
For each (Integer A) from 1 to 19, do (Actions)
-
Loop - Actions
-
Set MB_TempPoint03 = (Position of (Target unit of ability being cast))
-
Special Effect - Create a special effect at MB_TempPoint03 using Abilities\Spells\Other\Doom\DoomDeath.mdl
-
Custom script: call RemoveLocation(udg_MB_TempPoint03)
-
Special Effect - Create a special effect at (MB_TempPoint03 offset by (100.00, 100.00)) using Abilities\Spells\Other\Doom\DoomDeath.mdl
-
Lightning - Create a Chain Lightning - Primary lightning effect from source MB_TempPoint02 to target MB_TempPoint
-
Custom script: call RemoveLocation(udg_MB_TempPoint03)
-
Special Effect - Create a special effect at (MB_TempPoint03 offset by (100.00, 100.00)) using Abilities\Spells\Other\Doom\DoomDeath.mdl
-
Custom script: call RemoveLocation(udg_MB_TempPoint03)
-
Special Effect - Create a special effect at (MB_TempPoint03 offset by (100.00, 100.00)) using Abilities\Spells\Other\Doom\DoomDeath.mdl
-
Custom script: call RemoveLocation(udg_MB_TempPoint03)
-
Special Effect - Create a special effect at (MB_TempPoint03 offset by (100.00, 100.00)) using Abilities\Spells\Other\Doom\DoomDeath.mdl
-
Custom script: call RemoveLocation(udg_MB_TempPoint03)
-
Special Effect - Create a special effect at (MB_TempPoint03 offset by (100.00, 100.00)) using Abilities\Spells\Other\Doom\DoomDeath.mdl
-
Custom script: call RemoveLocation(udg_MB_TempPoint03)
-
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
(+rep)
Last edited: