• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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