• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[General] Several Spells on one Slot and Spell Book Issues

Level 10
Joined
Sep 10, 2022
Messages
146
Maybe it will be my self-reflection, but I'll leave it here, but I noticed this:

I'll point out:

1. You can't add hero abilities to a book. You have to create three abilities of the corresponding level separately. It might seem like a small thing, not a problem, BUT: a book only has 11 slots... this is very inconvenient, and will most likely force you to create a book within a book.

2. The book doesn't support normal ability sorting (it sorts them not by X/Y values, but by ascending ID).

3. The book has an ID of 'spellbook', which is why trying to sort different skills into different books results in them all getting lumped together in a single book, because the game treats two different created book objects as a single book. Trying to solve this problem by assigning each book a unique ID, such as 'vodo', results in ShadowHunter's spells being broken if he uses his ultimate on a map, followed immediately by a spell from a book with the same ID.

4. A book cannot contain another book if it also has the same Spellbook ID. (This probably applies to any ID match.)

ID here is Base ID Order field

For me, the question remains open: how can we create a system for leveling up a hero so that he has the option to use 3 skills instead of one on slot 1 (the first spell slot), the same on table 2, and so on.

Maybe I don't understand something yet and am reinventing the wheel...
 
It's even more complicated if your hero transforms or morphs.

Anyway, you could just use an integer variable instead of actually leveling the ability itself, maybe? You can change the ability's text fields directly with triggers now.
 
It's even more complicated if your hero transforms or morphs.

Anyway, you could just use an integer variable instead of actually leveling the ability itself, maybe? You can change the ability's text fields directly with triggers now.
It's even more complicated if your hero transforms or morphs.

Anyway, you could just use an integer variable instead of actually leveling the ability itself, maybe? You can change the ability's text fields directly with triggers now.


Actually, I found a "solution," although I'm still not satisfied with it.

Using a dummy spell book. There was an article here on hive. It uses a blank book, into which spells are then written one at a time, in a specific order (the order we need). They are added as ability spellbooks. Then, in reverse order, these ability books are removed from the hero.

In general, it's probably better to implement such a system through dialog boxes.
 
Today I discovered the strangest thing. While I previously said that the spellbook sorts spells by ID (for example, A01Z) from lowest to highest, now I understand that if you add spells to the book one at a time using the spellbook method I described as "solving," the coordinate grid somehow also begins to "impact."

Look closely at the two examples. In the first example, "Meditation" has X0, Y2; in the second example, the same icon has X1, Y1—and that it is! This is despite the fact that I added abilities one at a time and removed them in reverse order.

1777717380984.webp
1777717422494.webp
 
Back
Top