HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spellbook: Multiple Pages

08-18-2007, 07:56 PM#1
zeroXD
A simple trick to allow a spellbook ability to have multipple pages, allowing a single unit to have a nearly limitless amount of spells.

The map includes instructions on how to implement the system and setup a spellbook.

Edit: New version with a few comments in the code and updated instructions.
Attached Images
File type: jpgSpellbook.jpg (5.3 KB)
File type: jpgSpellbookPages.jpg (190.5 KB)
Attached Files
File type: w3xSpellbook - Multipple Pages.w3x (54.7 KB)
08-18-2007, 08:28 PM#2
Hey its X
You just put spellbooks in spellbooks didnt you? :s
08-18-2007, 11:41 PM#3
zeroXD
No, I just made a spellbook with two or more levels and changed the ability's level when used.
08-19-2007, 01:02 AM#4
Crazed_Hobo
or another way it could be done is by adding all the abilities you want it to have into 1 spellbook at 1 level, disable all the abilities at first, then enable and disable them depending on the page.
08-19-2007, 02:05 AM#5
moyack
EDIT:

I was checking your system, and I had to rewrote my whole post :P

well, it's not bad, but it can be improved in some way.

First of all, this system has many relationship with the object editor part, so I think the explanation should be added to the first post too.

About the code to control the spellbook, it looks ok and it works, but it would be easier to use if you use Jass New Gen Pack and become this into a library. Doing this makes your system less dependable of udg_global vars, making it easier to implement in other maps.
08-19-2007, 12:09 PM#6
zeroXD
Quote:
or another way it could be done is by adding all the abilities you want it to have into 1 spellbook at 1 level, disable all the abilities at first, then enable and disable them depending on the page.

That IS another way, but it would require an extremely long list for every single ability to disable/enable.

Quote:
About the code to control the spellbook, it looks ok and it works, but it would be easier to use if you use Jass New Gen Pack and become this into a library. Doing this makes your system less dependable of udg_global vars, making it easier to implement in other maps.

Will be done, once I am 100% sure that I can use it right :P I was a few months too late starting to learn vJASS.

EDIT: Oh, and I wonder: is there any abilities that casts instantly, that is not called "Wind Walk" or "Berserk", and does not interrupt the units orders? :P For some reason, if I use those abilities for next/previous page, abilities based on any of those don't want to cast.
08-19-2007, 02:14 PM#7
moyack
I'm not sure, but I've heard that instant spells based on channel could work. Unfortunately I can't check it for you. Test and tell me if it works.
08-19-2007, 02:31 PM#8
zeroXD
Hmm, I was unable to make channel cast instantly, but it stopped all the units orders as well, so I don't think I will use that.
I also discovered another bug: when I flip to another page, orders issued after the page flip is qued (spelled right?) instead of being executed at once.
08-19-2007, 07:33 PM#9
Pyrogasm
"Queued"
08-27-2007, 12:40 PM#10
blu_da_noob
Worth a sample.
08-27-2007, 02:50 PM#11
Vexorian
This is actually pretty smart, the other way would require an spellboox ability for every ability in the other page, this saves a lot of work
09-14-2007, 12:07 PM#12
zetanno
i downloaded your spellbook. but when i try to test the map i can't. what's the problem and please tell me how can i create a spellbook like yours
09-14-2007, 03:43 PM#13
Vexorian
Make sure you got the latest patch, I will remove the other post you made in a separate thread, please don't do that again.
09-14-2007, 04:35 PM#14
San-D
I cant import the code to my map, it aways findes a incompleate line or something (I don't know s*it about JASS and the other thingies), can someone land me a full, NOOB-FrRIENDLY manuel, how to import this spellbook on my map!!!?
09-16-2007, 10:05 AM#15
zetanno
i have updated my warcraft to 1.21 . your map is working but i can't use your spellbook on my map...why?if i press NEXT PAGE nothing happen