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

[Spell] The Spellbook spell doesn't work

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
If you add the abilities to the spellbook, and add the spellbook to the unit, any unit should be able to use any ability inside the spellbook. There's no reason for it being shown for some units, and not for others.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
If you add the abilities to the spellbook, and add the spellbook to the unit, any unit should be able to use any ability inside the spellbook. There's no reason for it being shown for some units, and not for others.

Doesn't work if the current unit will get upgraded
I hope you have downloaded my test map to gain clearer view of the situation he faced.

The UnitMakeAbilityPermanent() what makes the ability stays on the unit even after morph.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
So now it's building...

First rule of asking for help: Be specific as you can.

Doesn't work if the current unit will get upgraded. It would just show a blank box with a cancel ability in it. Fuuuu! I know this can be fixed by replacing it, but is there another way so that I don't have to change the unit?
No "building" word there :/

Okay, I'm gonna experiment few things, will back with result.

Looked at the map, does that mean I need to do that to all units? because I'm gonna put the spellbook on almost all units in my map for other actions
How does your unit gain this ability ? I'll repeat, be specific as you can, Event, Condition, bla bla bla.
 
Status
Not open for further replies.
Top