- Joined
- Oct 21, 2006
- Messages
- 3,230
At the moment my spell is MPI (multi-player-instancable?) but I need it to be MUI. (multi-unit-instancable?) I know it has something to do with integers and custom values, but I never created a real MUI spell so I dont have the idea..
I also uploaded the map so you can look around it...
-
Frostbolt
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Frostbolt
-
-
Actions
-
Set Point1 = (Position of (Triggering unit))
-
Set Point2 = (Position of (Target unit of ability being cast))
-
Unit - Create 1 Dummy - Frostbolt for (Owner of (Triggering unit)) at Point1 facing Point2
-
-------- ---------- --------
-
Set Frostbolt[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
-
Set Frostbolt_Target[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
-
-
-
Frostbolt loop
-
Events
-
Time - Every 0.02 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Set Point1 = (Position of Frostbolt[(Integer A)])
-
Set Point2 = (Point1 offset by 20.00 towards (Facing of Frostbolt[(Integer A)]) degrees)
-
Set Frostbolt_Position[(Integer A)] = (Position of Frostbolt_Target[(Integer A)])
-
Unit - Move Frostbolt[(Integer A)] instantly to Point2, facing Frostbolt_Position[(Integer A)]
-
-------- ---------- --------
-
Set UnitGroup1 = (Units within 50.00 of Point1 matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an enemy of (Owner of Frostbolt[(Integer A)])) Equal to True))))
-
Set UnitGroup2 = (Random 1 units from UnitGroup1)
-
Unit Group - Pick every unit in UnitGroup2 and do (Actions)
-
Loop - Actions
-
Unit - Order Frostbolt[(Integer A)] to Undead Lich - Frost Nova (Picked unit)
-
-
-
-
-
-
I also uploaded the map so you can look around it...