• 🏆 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!

[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,031
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