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

[Spell] Bear Form Headaches!

Status
Not open for further replies.
Level 1
Joined
Feb 11, 2013
Messages
4
Hey all, thanks for taking the time to read! :)

What I was aiming for at first was to have a Druid Hero which gained Bear Form after defeating a Boss. The problem was that adding the ability via a trigger meant he didn't have the ability after he returned back to his original form.

I've since changed the map so you can't unlock the Druid until later on, when he'll already have all his abilities as default, to avoid this problem. But I'm now faced with another!

I want him to have Taunt in Bear Form (Which is easy enough, that's working perfectly), and Tranquility in Nelf Form (And this is the problem!). Unfortunately at the moment he keeps Tranquility even in Bear Form and I'm struggling to find a way to change this without messing things up all over again. I tried making it so Bear Form has 0 Mana so he'd be unable to cast it anyway, but he keeps the Mana Value of is original form. Any ideas?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • call UnitMakeAbilityPermanent(unit, 'A000')
This makes abilities to stay there even after transformation.

Replace the A000 with the raw code of your ability, check raw codes in object editor by pressing Ctrl + D.

Create a unit variable called unitVariable, and then replace the "unit" in the function with udg_unitVariable.

Set the unit into the variable and then add the custom script after that.

Use this for abilities you want to keep even after transforming, and not for those you don't want to keep.
 
Status
Not open for further replies.
Top