Spellbook issues

millz-

New Member
Reaction score
25
spell1 spell2 spell3 spell4
spell5 spell6 spell7 spell8
blank blank blank cancel

In this spell book, I have those spells listed as an example. How do I remove a certain ability, example spell6, then add another ability which will replace the position of spell6?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
This does not need to be in Jass help, All you have to do is have a separate spellbook, remove the current spellbook, and add the new spellbook.
 

millz-

New Member
Reaction score
25
Do you mean a specific spellbook for every spell in the parent spellbook, or create a total new spellbook with all the same spells?

Edit: Actually I thought this could only be done with JASS that's why.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
You have one spellbook with a variant of the spells, Spellbook A, and another with yet another variant of the spells from A, Spellbook B.

If the unit initially has Spellbook A, and you want to make it look like Spell X was removed, make Spellbook B have the same exact spells except for the replacement of Spell X.
 

millz-

New Member
Reaction score
25
That would be like hard coding millions of possibilities if I had like 100 spells to swap with ~_~

What I wanted to know is how to effectively make spells in a spellbook have fixed position, or how to put a spell into a spellbook in that particular position
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
It's impossible to remove or add spells to a spellbook I think. I'm not too sure about disabling/enabling them though. It probably doesn't work either, not sure.
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
Create one spell book without any spells.

Then for each spell that you want to be able to have in that spellbook, create a _new_ spellbook with the same order id as the first one, add the spell to that book (in the spell editor), disable the book for all players (with triggers).

Now when you want to add/remove a spell to the first book simply add/remove the spellbook that contains that spell.

Dunno if you can use this to maintain spell position. Was a long time ago since I tested this :p

Otherwise you could always try to experiment with the engineering upgrade, it's kinda magical when it comes to ability tricks.
 

Jesus4Lyf

Good Idea™
Reaction score
397
>It's impossible to remove or add spells to a spellbook I think.
phyrex1an nailed it. Spellbooks have a bug where if you have multiple spellbooks on one unit with the same order id, and only one is enabled for that player, and the rest are disabled, it stacks them into that one spellbook.

Really neat. :)
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I said spells, not spellbooks... You're technically glitching it with spellbooks.
 

millz-

New Member
Reaction score
25
I have gotten it to work now, it was lame but I had to add all abilities, remove them, then re-add that certain set of abilities. After that, when I remove one of them and add another, its position will be where it's supposed to be.
 

jomik

New Member
Reaction score
17
Are you adding them to the spellbook with a trigger? Or are you glitching it as Jesus4Lyf said? - I think they show up in the order you add them right? :D
 
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