• 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.

About the Spellbook ability (having multiple spellbooks)

Status
Not open for further replies.
Level 5
Joined
Aug 13, 2006
Messages
47
I made a unit with a lot of spells, and decided to Categorize thos spells, and make a spell book ability for each category of spells.
When I tested the map, and "browsed a category", spells from all the other spellbooks were showing up too! then I opened another one and it contained the exact same list of spells!
spelldata.jpg


Well, all the spells are exactly the same, but with other spells in the spell list.
To clear up what i was just saying, when i clicked arcane spells the fire, frost, shadow and lightning spells were showing up too!

So what did I do wrong?
 
Level 4
Joined
Nov 9, 2008
Messages
112
I think (i'm not really sure:grin:) i have read about spell book

ur prob maybe "base order ID"

maybe u should change the "base order id" (again:i'm not really sure:eekani:)

different spell book use different "base order ID"
 
Level 3
Joined
Jun 3, 2004
Messages
19
Pretty sure there's only one base spellbook ability. =/

I had a similar issue, I just various levels of the same spellbook ability. Though this was just varying strengths of spells depending on what book the hero was holding, not categorisation.

You could create triggers to switch between varying spellbooks. Like when the player types "frost" "arcane" or "fire", etc, or cycle when they press the escape key.

Events
Player 1 says "arc" as an exact match.
Player 2, etc
Actions
Pick all units owned by triggering player matching (unit type of matching unit is equal to [your caster unit type here]) and Set level of "zBook" to 1 for picked unit


or to cycle (CastingType is an integer array)


Events
Player 1 skips a cinematic sequence
Player 2, etc
Actions
If CastingType[player number of triggering player] = 5 set CastingType[player number of triggering player] to 0
Set CastingType[player number of triggering player] to CastingType[player number of triggering player] + 1
Pick all units owned by triggering player matching (unit type of matching unit is equal to [your caster unit type here]) and Set level of "zBook" to CastingType[player number of triggering player] for picked unit
 
Status
Not open for further replies.
Top