It looks like you're new here. If you want to get involved, click one of these buttons!
Hello gents,
I'm trying to build a character sheet for a larp, the system is basically pick and buy, with some limitations:
there two skills that are mutally exclusive (clerical and wizardly magic), and there are skills with prerequisites.
What I would like to do is a sheet that automatically subtract the skill cost from a predefined pool, and that check the prerequisites and exclusions. The calculation part I'm fairly confident to resolve, but the prerequisite and exclusivity is eluding me. Any way to make it work?
Comments
It has been a while, so I'm sure this person gave up already... Sad. I'll answer the question though, in case other people need to know!
You need to use "if" in Javascript. If they try to add a skill without the prerequisite, set the skill back to the default value.
To make an exclusion you have to use a hidden field.
Make a hidden label field named "magictype" and set the text to "nothing". When the player selects a type of magic, we need to list it in that field to say what they chose, so we can ask about it later.
I'm going to assume the skills are two check boxes named "clericalmagic" and "wizardmagic" for the following example
Create a function similar to as follows