• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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