- Joined
- Sep 10, 2006
- Messages
- 185
I tried to make a spell MUI again, and again no work.
=[
=[
-
Lightning Rod
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


(Unit-type of (Attacking unit)) Equal to Lightning Rod
-
-

Actions
-


-------- Locals --------
-


Custom script: local integer udg_LightningRodInt
-


Custom script: local unit udg_LightningRodUnit
-


Custom script: local effect LightningRodEffect
-


-------- --------
-


Set LightningRodInt = (Random integer number between 1 and 3)
-


Set LightingRodUnit = (Attacked unit)
-


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



If - Conditions
-




LightningRodInt Equal to 1
-
-



Then - Actions
-




Unit - Pause LightingRodUnit
-




Special Effect - Create a special effect attached to the overhead of LightingRodUnit using Abilities\Spells\Human\Thunderclap\ThunderclapTarget.mdl
-




Set LightningRodEffect = (Last created special effect)
-




Wait 1.00 seconds
-




Unit - Unpause LightingRodUnit
-




Special Effect - Destroy LightningRodEffect
-
-



Else - Actions
-
-


Custom script: set udg_LightningRodUnit = null
-
-




