Spell Book Ability Order

United

New Member
Reaction score
1
I was wondering if anybody could show me how to get spells ordered in a spell book (for example, like in Defiance). Basically what I mean is that I want my starting spell to be in position 0,0 (top left), then once your hero gets to level 4, you learn a second spell (I have the triggers set up already for this process) and it's added one slot to the right of the first spell (1,0).

Right now, my spells seem random ordered, some disappear, etc, when new spells are learnt in the spell book. The standard "Art - Button Position - Normal/Turn Off (X/Y)" doesn't work. Neither does changing the order of the spells in the "Data - Spell List" field.

Any help greatly appreciated. This is holding up my map a lot.
 

Anything.

New Member
Reaction score
69
Changing the order in the Spellbook Data Fields should work, although some spells, like Devotion Aura have their slots functional (not sure why, though).
 

United

New Member
Reaction score
1
I just tried reordering my spells (again) in the order I want them in, and it still does not work. :mad:
 
P

Panasonic

Guest
i cant really explain it but here goes anything...

IF, say ur spell book is like 20 levels and u want 2 spells.. for the spell list the first level of spell list would be ( Ability One - Level One and Ability Two - Level One ) and the second level of the spell list would be ( Ability One - Level Two and Ability Two - Level Two ) and so on...

hope this helps u... :nuts:
 
P

Panasonic

Guest
ooo u want the place of the abilty in a certain spot.. well if u want that i dont know.. i dont think u can do that sorry :eek:
 
D

dadads

Guest
Are you sure that they have different Base Order IDs?

Coz long time ago I've tried putting 2 abilites based on the same base-spell (which happened to be Shockwave) in a spellbook, and what happened was that only one of the abilities showed up.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
It would seem that spell books order their content based on the loading order of the spells.

Which should mean that you can create some unit at map init, add all the abilities to it in a predefined order,
and the next spell book will use that very order.

Personally, I've never verified this though...
 
W

Wabolas

Guest
You said 'when new spells are learnt in the spell book'. What do you mean by that?
 

United

New Member
Reaction score
1
AceHart said:
It would seem that spell books order their content based on the loading order of the spells.

Which should mean that you can create some unit at map init, add all the abilities to it in a predefined order,
and the next spell book will use that very order.

Personally, I've never verified this though...

This didn't work, worth a try.

Wabolas said:
You said 'when new spells are learnt in the spell book'. What do you mean by that?

Umm... when you learn a new spell in the spell book. In my map, once you reach x level, you get a new spell. Reach another specified level, you get a new spell.

Wabolas said:
How do you add abilities to a spellbook in-game?

Create multiple levels for a spell book (Stats - Levels). Then, set the spells in the Data - Spell List for each level. Then, create a trigger like:

Code:
Event - Unit - A unit Gains a level
Condition - ((Unit-type of (Triggering unit)) Equal to YourHero)
Actions - 
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        (Hero level of (Triggering unit)) Equal to 4
    Then - Actions
        Unit - Set level of Assassin's Basic Abilities  for (Triggering unit) to 2
    Else - Actions
        Do nothing

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        (Hero level of (Triggering unit)) Equal to 8
    Then - Actions
        Unit - Set level of Assassin's Basic Abilities  for (Triggering unit) to 3
    Else - Actions
        Do nothing
 
W

Wabolas

Guest
You could use multiple levels of the spellbook, BUT, I mean it in a way so you could have all the combonations of the abilities in warcraft in a spellbook. Like: Evasion, Bash.... then another: Holy light, Purge. Like to do that with spellbook levels, you would have to give it a million levels and set each level to a different combonation..... too much work but it could be done.
 

Anything.

New Member
Reaction score
69
Uh, just to let you know, this isn't at all what Defi4nc3 did in his ORPG. He disabled all the spells on Map Initialization and then re-enabled them when he needed them.

And, uh, I could give you proof if you'd like...
 
W

Wabolas

Guest
So you mean... Put all the abilities you want into a spellbook, make them all disabled at map initialization, and then re-enable then when needed?
 

Anything.

New Member
Reaction score
69
Wabolas said:
So you mean... Put all the abilities you want into a spellbook, make them all disabled at map initialization, and then re-enable then when needed?
Yes.
 

United

New Member
Reaction score
1
I'm not trying to do this exactly like Defiance, I just want the spells ordered like in Defiance; they spells show up the way I want them to. I have also tried disabling all the spells at the start of the map, but this caused more problems...
 
W

Wabolas

Guest
I tryed disabling them all and then re-enabling them when I wanted, and it worked for me. I wasnt going for any specific order so you'll need to keep trying that. Did you disable the spells through triggers or through the ability techtree?
 

United

New Member
Reaction score
1
Triggers.

I'll give it another shot.

edit: It's not working, so I have a couple questions:

1) Should I set all the Icon Positions to 0, 0?
2) Should I do Disable Ability then Enable Ability when you reach the right level, or Enable Ability and then Add Ability?

I'm hoping to get this resolved quickly, so, you can contact me on MSN/AIM.
 
W

Wabolas

Guest
Disable all the abilities you want at map initialization, and when you want them just enable them, you dont need to go add ability.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top