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

Morphing and Buffs

Status
Not open for further replies.
I have a unit that has a disabled spell book, the purpose of which is to use a dummy ability within that book to create a buff on the unit indicating how many kills it has. It works great. The problem arose when I used it on a unit that has a morph ability, like the Tinker or Demon Hunter. As soon as the unit finishes its transformation the ability is removed from the spell book, so the buff is lost.

Why does this occur?
 
I have a unit that has a disabled spell book, the purpose of which is to use a dummy ability within that book to create a buff on the unit indicating how many kills it has. It works great. The problem arose when I used it on a unit that has a morph ability, like the Tinker or Demon Hunter. As soon as the unit finishes its transformation the ability is removed from the spell book, so the buff is lost.

Why does this occur?

you should add the ability on BOTH unit
 
The unit starts off with the spell book in the object editor, you then disable the spell book in the tech tree. This allows you to hide abilities so they don't show up on the UI, but still give you the effects.

It does not remove the spell book, it removes the ability from within the spell book.

weird bug, anyway I never tried the hidden spellbook method on a unit with morph... maybe you can try undoing the disable via techtree and just disable it via triggers, and then try to reenable it and then redisable after morph...
 
Well I toyed with it for over two hours, I don't think there is a way around it as there is no way to differentiate between the morphed unit and what it previously was, this is necessary as the rank buff is controlled with integer triggers.

What I ended up doing was giving it the rank ability as a normal ability, and disguising it as something else - like a dummy dummy spell.
 
Well I toyed with it for over two hours, I don't think there is a way around it as there is no way to differentiate between the morphed unit and what it previously was, this is necessary as the rank buff is controlled with integer triggers.

What I ended up doing was giving it the rank ability as a normal ability, and disguising it as something else - like a dummy dummy spell.

you can hide a spell based on channel... just set visible to false... If its an aura, you can use the ability Tornado Slow Aura coz it does not show on UI...
 
Status
Not open for further replies.
Top