- Joined
- Apr 24, 2012
- Messages
- 9,802
-
Moonlight Touch
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Level of Moonlight Touch for (Attacking unit)) Greater than 0
-
(Unit-type of (Attacking unit)) Equal to Arcane Priestess
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Moonlight Touch for (Attacking unit)) Equal to 1
-
(Random integer number between 1 and 10) Equal to 1
-
-
Then - Actions
-
Set MT_Index = (Player number of (Owner of (Attacking unit)))
-
Set MT_Caster[MT_Index] = (Attacking unit)
-
Set MT_CasterPos[MT_Index] = (Position of MT_Caster[MT_Index])
-
Set MT_Player[MT_Index] = (Owner of MT_Caster[MT_Index])
-
Set MT_Group[MT_Index] = (Units within (500.00 + (50.00 x (Real((Level of Moonlight Touch for MT_Caster[MT_Index]))))) of (Center of (Playable map area)) matching (((Matching unit) belongs to an ally of MT_Player[MT_Index]) Equal to True))
-
Unit Group - Pick every unit in MT_Group[MT_Index] and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy for MT_Player[MT_Index] at MT_CasterPos[MT_Index] facing Default building facing degrees
-
Set MT_Dummy[MT_Index] = (Last created unit)
-
Unit - Add Moonlight Touch (Dummy) to MT_Dummy[MT_Index]
-
Unit - Set level of Moonlight Touch (Dummy) for MT_Dummy[MT_Index] to (Level of Moonlight Touch for MT_Caster[MT_Index])
-
Unit - Order MT_Dummy[MT_Index] to Night Elf Druid Of The Claw - Rejuvenation (Picked unit)
-
Unit - Add a 0.80 second Generic expiration timer to MT_Dummy[MT_Index]
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Moonlight Touch for (Attacking unit)) Equal to 2
-
(Random integer number between 1 and 8) Equal to 1
-
-
Then - Actions
-
Set MT_Index = (Player number of (Owner of (Attacking unit)))
-
Set MT_Caster[MT_Index] = (Attacking unit)
-
Set MT_CasterPos[MT_Index] = (Position of MT_Caster[MT_Index])
-
Set MT_Player[MT_Index] = (Owner of MT_Caster[MT_Index])
-
Set MT_Group[MT_Index] = (Units within (500.00 + (50.00 x (Real((Level of Moonlight Touch for MT_Caster[MT_Index]))))) of (Center of (Playable map area)) matching (((Matching unit) belongs to an ally of MT_Player[MT_Index]) Equal to True))
-
Unit Group - Pick every unit in MT_Group[MT_Index] and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy for MT_Player[MT_Index] at MT_CasterPos[MT_Index] facing Default building facing degrees
-
Set MT_Dummy[MT_Index] = (Last created unit)
-
Unit - Add Moonlight Touch (Dummy) to MT_Dummy[MT_Index]
-
Unit - Set level of Moonlight Touch (Dummy) for MT_Dummy[MT_Index] to (Level of Moonlight Touch for MT_Caster[MT_Index])
-
Unit - Order MT_Dummy[MT_Index] to Night Elf Druid Of The Claw - Rejuvenation (Picked unit)
-
Unit - Add a 0.80 second Generic expiration timer to MT_Dummy[MT_Index]
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Moonlight Touch for (Attacking unit)) Equal to 3
-
(Random integer number between 1 and (Integer(6.66))) Equal to 1
-
-
Then - Actions
-
Set MT_Index = (Player number of (Owner of (Attacking unit)))
-
Set MT_Caster[MT_Index] = (Attacking unit)
-
Set MT_CasterPos[MT_Index] = (Position of MT_Caster[MT_Index])
-
Set MT_Player[MT_Index] = (Owner of MT_Caster[MT_Index])
-
Set MT_Group[MT_Index] = (Units within (500.00 + (50.00 x (Real((Level of Moonlight Touch for MT_Caster[MT_Index]))))) of (Center of (Playable map area)) matching (((Matching unit) belongs to an ally of MT_Player[MT_Index]) Equal to True))
-
Unit Group - Pick every unit in MT_Group[MT_Index] and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy for MT_Player[MT_Index] at MT_CasterPos[MT_Index] facing Default building facing degrees
-
Set MT_Dummy[MT_Index] = (Last created unit)
-
Unit - Add Moonlight Touch (Dummy) to MT_Dummy[MT_Index]
-
Unit - Set level of Moonlight Touch (Dummy) for MT_Dummy[MT_Index] to (Level of Moonlight Touch for MT_Caster[MT_Index])
-
Unit - Order MT_Dummy[MT_Index] to Night Elf Druid Of The Claw - Rejuvenation (Picked unit)
-
Unit - Add a 0.80 second Generic expiration timer to MT_Dummy[MT_Index]
-
-
-
-
Else - Actions
-
-
-
-
-
-
Custom script: call RemoveLocation(udg_MT_CasterPos[udg_MT_Index])
-
Custom script: call KillUnit(udg_MT_Dummy[udg_MT_Index])
-
Custom script: call DestroyGroup(udg_MT_Group[udg_MT_Index])
-
-
Last edited: