Spellbook help

The Arcot

New Member
Reaction score
7
Before you tell me to go read a tutorial, know that Ive already spent quite a while reading them, and none of the ones I found were particularly informative on the specific bit of knowledge I'm searching for.

Anyway, what Im trying to do is make it so that each hero in my RPG has three schools of magic (three different spellbooks), each containing four different spells. I want it to work so that when a hero gains a level, you can choose to put your skill point into a skill, and in order to learn the ultimate skill in each 'school', you need to have a certain number of total points invested in any combination of skills within that school.

Thats a bit confusing, so Ill give you an example. The hero Lightwarden has three spellbooks: Divine, Mending and Justice. In order to learn the Ultimate spell within the Divine tree, you need to have a total of 6 skill points in other skills which are also in the Divine Spellbook. If you've ever played World of Warcraft, it works a lot like talent points.

What I'm having trouble with is making it so that spellbooks are more like menus than spells. I don't know if this is possible with GUI (or at all) but I am absolutely hopeless when it comes to JASS, so any help would be appreciated.
 

Somatic

You can change this now in User CP.
Reaction score
84
Erm.... Use Variables

Like

Set Divine_Integer[<Insert PlayerNumber>] = <Your Desired Integer>

when you put a skill point into that school. Use Dud Abilities for the hero to learn if u want it to be a Hero Skill, then update the Spell Book Throught Triggers.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Make Integer variables.
Each time a Hero spends a skill point in a skill, add 1 to a variable (you'll need a lot of these, probably one for Divine, one for Mending, one for Justice)
Then in the Ultimate ability, add a Techtree requirement.
Once a Hero has spent 6 skill points (the variable reaches 6) then Set Level of Upgrade for that Techtree Requirement. Get the picture?
 

The Arcot

New Member
Reaction score
7
yeah I get it... but that's not really the problem...

I didn't really explain it very well. You know when you click the red cross icon (hero abilities), a new menu opens up and there are four spells inside? I need to make two more of those icons with different spells inside of them.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
In other words, you want to make other 'two versions' of the Hero's Abilities menu?
That's impossible to my knowledge. You need to trigger the learning process by using Dialog Buttons.
 
H

HamsterBoo

Guest
actually, I think i've seen what hes talking about. thinking......
AH! It is in survival RPG (still in beta), where there are 3 diff schools of magic (although they auto leveled......). I can't post the map cuz im on the wrong comp (and im pretty sure its protected)
 

The Arcot

New Member
Reaction score
7
Yeah, essentially thats what I'm trying to do. I could do it all with dialog buttons, I know how, but its messy and I'd rather not. Ive never played that particular one, but I'm pretty sure Ive seen it before.
 

Baby-Bever

Cool Member
Reaction score
11
I'm not sure if this works at all, but you could try it.

First, add three dummy spells or something like that for your hero, one for each school. Then you use the event if the hero learns an skill. After this you reduce the skill level of the dummy spell chosen to 0. Remove all schools of magic you have and instead add you four spells that are supposed to be in your school. You should also add an spell like "Cancel" or "Back".

The result should look something like this... (Excuse my possible mistakes, I don't have WE open atm)

Code:
Event - An hero learns an spell

Condition - Spell lernt equal to (Your spell)

Action
Set level of ability (your spell) to 0
Remove (your ability) from (learning hero)
Add (Ability 1) to ( Learning Hero)
Add (Ability 2) to ( Learning Hero)
Add (Ability 3) to ( Learning Hero)
Add (Ability 4) to ( Learning Hero)
Add (Cancel) to ( Learning Hero)
Add 1 skillpoint to hero <--- Uhh Not sure if this exists really, but i think I've seen something similiar sometime...

Something like that. Ofcourse this is only for one school, and instead of making like 3 triggers per hero, you could enter all of this into an (If Then Else action).

And then you do like the same thing if hero learns the cancel ability, but instead adding the schools.

(Tell me if you want me to make this one for you aswell)

Hope this helps you! Good Luck!
 

The Arcot

New Member
Reaction score
7
Hmm... I don't really understand what that would do, would you mind explaining it a bit more? Basically Im trying to add two more 'learn ability' buttons (the one with the red plus sign).
 

Somatic

You can change this now in User CP.
Reaction score
84
You cant add more "Learn Abilities for hero" to heros, they are only restricted to 5 hero skills. If you want to do more it will be only thru Diaglog.
 

The Arcot

New Member
Reaction score
7
Are you sure? I could swear I've seen it somewhere else before...

Phyrexian's idea seems like it might work but then where would I put the 'Cast Buttons?' I guess I could make a different 'Cast Spell' Spellbook, but what's the trigger to put a new spell in a spell in a spellbook?
 

hell_knight

Playing WoW
Reaction score
126
Have another disabled spellbook, same order ID and then have certain level , level 1 has 1 spell , level 12 has all 12 spells. Set it accordingly.

2 spellsbooks with same order ID always show the same spells.
 

The Arcot

New Member
Reaction score
7
but the idea is that the spells could be learned in almost any order. It's not like there are twelve spells that are learned one after the other in a preset order.

This is confusing:banghead:
 
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