• 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] Add ability to spell book via triggers

Status
Not open for further replies.
Level 10
Joined
Jan 20, 2011
Messages
492
Hey guys, I made a spell book called Quest Log, and what I want to do is when I get a quest it adds an ability to the spell book, but when I look through the events I cannot see anyway to add/remove an ability to/from the spell book, since I do not want them to be permanently in the Spell Book, so setting it in "Data - Spell List" will not work for me.

Any information will be much appreciated
 

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
We can have up to 12 ability in 1 spell book. If u want more, may be create an ability that when u turn it on, replace a current spell book with other spell book.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
If you want to be able to dynamically change it, then use another method:

Create an empty spellbook the unit starts off with. For each quest you want to be able to add, create another spellbook that only contains the single quest ability itself. These spellbooks must have the same base order id as the empty spellbook. Disable all spellbooks but the empty one at map init. When you want to add a quest to the unit, add its spellbook instead.
 
Status
Not open for further replies.
Top