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

[Solved] Morphing a unit removes spell book abilities.

Status
Not open for further replies.
Level 4
Joined
Jul 26, 2017
Messages
66
It probably means you need to use the trigger action: Unit - Make ability Permanent or put the spellbook abilities in both unit's abilities fields in the object editor
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
There’s no GUI action unless Blizzard added it recently. You need to look up the spell’s raw code: press ctrl+d in the OE to see next to the name something like A001. Those 4 letters/numbers are the rawcode, which will also show the rawcode of the ability it was based on (but you can ignore that part).

Then use this line with the rawcode (caps are important) instead of RAWC below:

call UnitMakeAbilityPermanant(udg_UnitVariable, ‘RAWC’, true)
 
Level 3
Joined
Nov 12, 2018
Messages
43
I tried using UnitMakeAbilityPermanant, but that doesn't solve my problem.

edit: Nevermind! I had to use the function on the abilities inside the spell book! Thank you! /solved
 
Status
Not open for further replies.
Top