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 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 The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top