HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Messed up Spellbooks

12-21-2006, 07:06 AM#1
darkwulfv
Having never used spellbooks before, I'm completely in the dark. But its in the units' UI if that helps. They also have 5 other spells.
Ok the problem is that It won't show all 5 spells I've stocked into the spellbook (the normal ones work fine). Rather, it will only show a random number of them; and yes I set the icon placement correctly. Thanks for any help I receive.
12-21-2006, 07:39 AM#2
Pheonix-IV
Did you make sure to set the maximum number of spells in spellbook to 5 in the spellbook ability?
12-21-2006, 08:48 AM#3
darkwulfv
its 12, shouldn't that mean you can have 11 or less? (since one is cancel). So far it just shows a random 2 out of the 4 (I removed one).
Idk if this has anything to do with it, but it's a unit spellbook on a hero, and the spells in the spellbook are unit spells.
12-21-2006, 09:25 AM#4
Captain Griffen
Have you set the minimum and maximum spells to 5?
12-21-2006, 10:10 AM#5
PhoenixFeather
I've had this probelm too. Just make sure the amount of min spells is equal to max amount of spells. Then all of them should be showing up in-game.
12-21-2006, 11:28 AM#6
darkwulfv
Oh. Hmm, thats a shitty bug. Thanks CG and PhoenixFeather.
12-21-2006, 12:09 PM#7
Thunder_Eye
its not a bug, its a feature
12-21-2006, 07:17 PM#8
darkwulfv
How so? seems more like a bug that the min/max count has to be the same. Could really throw off new users of the spellbook (like me)
12-21-2006, 07:44 PM#9
oNdizZ
It doesnt have to be the same.
What you are saying is just like saying that GetRandomInt(min,max) is bugged since you have to use the same number for min and max if you want it too always give you the same number.
12-21-2006, 09:04 PM#10
darkwulfv
No, because GetRandomInit is supposed to give you a random number.
However, spellbook should be coded so that it actually uses the min/max values correctly.