I am basically trying to get this spell to disguise the unit as someone close within the region, and change the colour so it looks like it to.
Basically im having a small problem in that when i cast the spell it simply makes the unit hide but does not spawn another, I don't understand what I have done wrong...unless its a simple error in which case I was just kidding
Where Disguised1 <gen> is a region.
Basically im having a small problem in that when i cast the spell it simply makes the unit hide but does not spawn another, I don't understand what I have done wrong...unless its a simple error in which case I was just kidding
-
Events
-
Unit - A unit Begins casting an ability
-
Conditions
-
(Triggering unit) Equal to Hero[1]
-
(Ability being cast) Equal to Disguise
-
Actions
-
Region - Center Disguise1 <gen> on (Target point of ability being cast)
-
If (All conditions are true) then do (then Actions) else do (else Actions)
-
If - Conditions
-
((random unit from (Units in Disguise1 <gen> )) is A Hero) Equal to False
-
Then - Actions
-
Unit - Pause (Triggering unit
-
Unit - Hide Hero[1]
-
Unit - Create 1 (Unit-type of (Random unit from (Units in Disguise1 <gen> matching (((Matching unit) is A Hero) Not equal to True)))) for (Owner of (Triggering unit)) at (Centre of Disguise1 <gen>) facing (Facing of (Triggering unit)) degrees.
-
Unit - Add Disguise to Disguised[1]
-
Unit - Add Undisguise to Disguised[1]
-
Selection - Select Hero[1] for (Owner of (Triggering Unit))
-
Else - Actions
-
Do nothing
Where Disguised1 <gen> is a region.