- Joined
- Aug 1, 2009
- Messages
- 714
I am making a sprout skill for my map and I need it to be MUI.
-
Sprout Effect
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Sprout
-
-
Actions
-
Custom script: local unit udg_Sprout_Target
-
Custom script: local real udg_Sprout_Angle
-
Set Sprout_Target = (Target unit of ability being cast)
-
Set Sprout_Angle = 0.00
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
Set Sprout_Target_Point[1] = (Position of Sprout_Target)
-
Set Sprout_Target_Point[2] = (Sprout_Target_Point[1] offset by 200.00 towards Sprout_Angle degrees)
-
Destructible - Create a Snowy Tree Wall at Sprout_Target_Point[2] facing (Random angle) with scale 1.00 and variation 0
-
Set Sprout_Trees[(Integer A)] = (Last created destructible)
-
Set Sprout_Angle = (Sprout_Angle + 45.00)
-
-
-
Wait (1.00 + (Real((Level of Sprout for (Triggering unit))))) seconds
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
Destructible - Remove Sprout_Trees[(Integer A)]
-
-
-
-
-
Custom script: local unit udg_Sprout_Target
-
Custom script: local real udg_Sprout_Angle