Weyrling V.I.Mapper
Posts : 29 Join date : 2008-03-23
| Subject: Footman Surround Spell, for Domo Sat May 03, 2008 3:38 pm | |
| Requires 2 point variables, APoint, and Apoint. Caps are essential btw. - Code:
-
Surround Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to YOUR_SPELL_HERE Actions Set APoint = (Target point of ability being cast) For each (Integer A) from 1 to 5, do (Actions) Loop - Actions Custom script: call RemoveLocation(udg_Apoint) Set Apoint = (APoint offset by 256.00 towards (360.00 / (Real((Integer A)))) degrees) Unit - Create 1 Footman for (Owner of (Triggering unit)) at Apoint facing (Angle from Apoint to APoint) degrees Unit - Make (Last created unit) Invulnerable Unit - Order (Last created unit) to Attack (Target unit of ability being cast) Custom script: call RemoveLocation(udg_APoint)
| |
|
Domo Dust And Gravel
Posts : 9 Join date : 2008-05-03 Age : 31 Location : Domo = In Japan.
| Subject: Re: Footman Surround Spell, for Domo Sat May 03, 2008 3:48 pm | |
| Ty weyr. It seems really confusing to me though, since I don't understand alot of the Apoint and what not due to my limited WE skills. But ty. | |
|