• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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 39
Joined
Feb 27, 2007
Messages
5,010
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