• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Disguising Spell

Status
Not open for further replies.
Level 2
Joined
Jun 3, 2007
Messages
20
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 :p

  • 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 Hero[1] = the casting hero as he was saved earlier.
Where Disguised1 <gen> is a region.
 
Level 2
Joined
Jun 3, 2007
Messages
20
lol, good point, that was kind of stupid of me :) But how would i rearrange it so its not using a random unit?

Also i have done it about 8 times surely if it was random chance i would have got that random unit that i wanted at least once lol with a 50% chance of it.
 
Last edited:
Status
Not open for further replies.
Top