HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Add to SpellBook

04-28-2007, 04:27 PM#1
Histenchist
Well this has certainly been asked thousands of time before but i could'nt find it.

Is it possible to add an ability to a spellbook without jass?

And if thats possible, how?
04-28-2007, 05:16 PM#2
Dil999
The spellbook ability has a field called Abilities. I feel nice so I made a screenshot:
Hidden information:
Zoom (requires log in)

You must have a maximum and minimum amount matching EXACTLY how many spells you have.
Attached Images
File type: jpgSpellbook.JPG (194.8 KB)
04-28-2007, 05:27 PM#3
akolyt0r
i think he wants to know how to add abilities during the gameplay ...
04-28-2007, 05:37 PM#4
Histenchist
Yhea of course -.-
04-28-2007, 05:42 PM#5
MaD[Lion]
he mean using GUI...
04-28-2007, 05:50 PM#6
Captain Griffen
Add a hidden spell book with the same order ID and the desired ability to add in it. Hide the spell book by disabling the spell book ability for the player.
04-28-2007, 05:51 PM#7
blu_da_noob
http://www.wc3campaigns.net/showthread.php?t=80186

Atleast try to figure it out yourself. If you really can't, then ask for help.
04-29-2007, 09:57 AM#8
Histenchist
Thx everybody...

But now i got a new problem, when a hero reach level 5, 10, 15, 20, 25 and 30 it gains a new random skill into the spell book, now comes the problem; How to fix so a unit cant learn the same skill 2 times?
04-29-2007, 10:57 AM#9
blu_da_noob
Pick a random ability, check if the unit has the ability. If it doesn't, add it, otherwise repeat from the beginning.
04-29-2007, 11:01 AM#10
Histenchist
Well how can i check if the unit has a random ability?
04-29-2007, 12:06 PM#11
blu_da_noob
Level of (ability) for (unit) > 0?