• 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.

'Morphed unit' condition?

Status
Not open for further replies.
Level 12
Joined
Sep 28, 2012
Messages
277
I'm making a sci-fi map with a marine who has an ability called "Jet Boots" that allows him to fly with the Storm Crow ability. I want to make it so that when he turns the jet boots on, they burst with an Incinerate special effect. Originally this was wired to the ability itself, and it worked fine, except it also burst when he turned the ability off and landed, which didn't look right.

The problem is, since Storm Crow Form is only one ability, I don't know what condition to use to check whether he's taking off or coming in for a landing. Is there a way to check the status of a unit on whether it's morphed, whether the ability being cast is being turned on or off, etc.? How could I make this work?

Thanks in advance for your help.
 
Level 4
Joined
Sep 13, 2014
Messages
106
Try this?

  • ((Unit-type of (Triggering unit)) is A flying unit) Equal to True
Unit classification check in boolean comparison.

Also, if that doesn't work, try uploading a map with only the required data, so I can see if I can make it work.

btw Unit type check != unit classification check, as Dehua seems to imply
 
Last edited:
Level 8
Joined
Jan 28, 2016
Messages
486
I tried that, and nothing happens...

That's odd, it should do the job as IcemanBo and ZerGreenOne have stated. The only other option is to try what dtnmang has posted just above me. As he has said, there's a crowform and uncrowform order for activating and deactivating the ability respectively. Either of the two methods should work though.

  • Morph Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Metamorphosis
      • (Unit-type of (Triggering unit)) Equal to Flying Marine
    • Actions
      • -------- Add actions here --------
  • Morph Order
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(metamorphosis))
    • Actions
      • -------- Add actions here --------
 
Status
Not open for further replies.
Top