- Joined
- Jul 25, 2014
- Messages
- 57
So I wanted to make a spell what adds and activates the ability named defense for units in a area:
(first part)
(first part)
-
Wizard absorbing spells
-
Events
-
Unit - A unit Begins casting an ability
-
Unit - A unit Starts the effect of an ability
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Defensive Sphere
-
-
Actions
-
Set castingpoint = (Position of (Triggering unit))
-
Set point1 = (castingpoint offset by (-200.00, 200.00))
-
Set point2 = (castingpoint offset by (200.00, 200.00))
-
Set point5 = (castingpoint offset by (200.00, -200.00))
-
Set point3 = (castingpoint offset by (300.00, 400.00))
-
Set point4 = (castingpoint offset by (-300.00, -250.00))
-
Unit - Create 1 The biggest Dummy for Player 1 (Red) at point1 facing Default building facing degrees
-
Unit - Create 1 The biggest Dummy for Player 1 (Red) at point2 facing Default building facing degrees
-
Unit - Create 1 The biggest Dummy for Player 1 (Red) at point3 facing Default building facing degrees
-
Unit - Create 1 The biggest Dummy for Player 1 (Red) at point4 facing Default building facing degrees
-
Unit - Create 1 The biggest Dummy for Player 1 (Red) at point5 facing Default building facing degrees
-
Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type The biggest Dummy) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to dummyparty
-
Unit - Set (Picked unit) movement speed to 0.00
-
Unit - Set (Picked unit) movement speed to 0.00
-
Unit - Make (Picked unit) Sleep when unprovoked
-
Unit - Add classification of Ethereal to (Picked unit)
-
Unit - Make (Picked unit) Invulnerable
-
Unit - Add Something like defend to (Picked unit)
-
Unit - Order (Picked unit) to Human Footman - Defend
-
-
-
Unit Group - Pick every unit in (Units within 350.00 of castingpoint matching ((Owner of (Picked unit)) Equal to Player 1 (Red))) and do (Actions)
-
Loop - Actions
-
Unit - Add Something like defend to (Picked unit)
-
Unit - Order (Picked unit) to Human Footman - Defend
-
-
-
-
-
Untitled Trigger 034
-
Events
-
Time - Every 4.00 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units within 500.00 of castingpoint matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) and do (Actions)
-
Loop - Actions
-
Unit - Order (Picked unit) to Human Footman - Defend
-
Set spellgroup2 = (Last created unit group)
-
-
-
Wait 0.20 seconds
-
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
-
Loop - Actions
-
Set spellgroup = (Last created unit group)
-
Unit Group - Remove all units of spellgroup2 from spellgroup
-
Unit - Order (Picked unit) to Human Footman - Stop Defend
-
-
-
-