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

Disappear spells

Status
Not open for further replies.
Level 2
Joined
Jan 9, 2009
Messages
5
Hi all sorry for my english I'm not very good at it because I speak Russian
Then the problem is: my unit has spell as a druid to be reincarnated as a bear, and there is still spell in the book of spells that you can cram more as a spell, well, that's after I reincarnated and open the spell book all spells disappear How to fix anyone knows please tell me.
 
Level 8
Joined
Aug 21, 2009
Messages
333
Hey redfal.

create a unit variable called "Druid"

then use this trigger:
  • Set Druid = <your druid goes here>
  • Custom script: call UnitMakeAbilityPermanent(udg_Druid, true, 'A00R')
you will also need to use the ability ID instead of 'A00R'
you can find this number by looking at the spell in the object editor and pressing CTRL+D
you will need to do this for each spell that you want your unit to keep after the transformation.
 
Status
Not open for further replies.
Top