• 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] How do i add\remove abilities from spellbook?

Status
Not open for further replies.
Level 10
Joined
Apr 22, 2010
Messages
422
Hi, i was working on an inventory system, and i forgot how to:
1- Hide/Show Spellbooks
2- Add/Remove abilities from the Spellbook

Can anyone help me out?

P.S. Can anyone let me know if abilities in a hidden spellbook affect the player?(like passive damage bonus)

Thanks and +rep in advance :D
 
This is a great tutorial I used when I first learned how to create spellbooks:
http://www.thehelper.net/forums/showthread.php/34530-How-to-Make-Spellbooks

To hide/show a spellbook, you can do the action:
  • Player - Disable <My Spell Book> for Player 1 (Red)
This will make it so that you cannot see nor click the spellbook. However, the passive abilities within it will still be applied on your unit. ;)

To add or remove abilities to/from a spellbook, you have to create a dummy spellbook with that specific spell added as one of the abilities in its ability list. You have to make sure the Data - Base Order Id of the dummy spellbook is the same as that of your actual spellbook. Check out the tutorial I linked above, it goes into much better detail on that subject.

Adding it requires that process. However, removing it is as simple as Remove "Ability" from Unit.

Good luck!
 
Status
Not open for further replies.
Top