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
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top