Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Help] Programming a new Character sheet: If- Then option?

Hi I'm new here and I'm trying to create a character sheet for the french Game "Trinités". In this game, you can have a special +6 bonus to an entire set of skills but it can only be applied to a single set of skills. I would like to know if it's possible to do conditions in the HTML programming. A "if (Agility skills get the bonus) then (agility values get a +6)" type of code. This way, one could program a multiple options button and select which set of skills gets the bonus. Is this an option? If it is, how do you implant it? I'm sorry if the question isn't clear and if I'm not in the right section. I'm still new around here and I've never programmed before.
1450868178
Ziechael
Forum Champion
Sheet Author
API Scripter
moved to character sheets forum :)
Thanks. 
1450892848
Lithl
Pro
Sheet Author
API Scripter
I would probably accomplish this using a radio button, but the value to use for each radio would depend highly on what you mean by "set of skills" and how many there are. The advantage of using a radio button here is that when you have a bunch of radio buttons with the same name, only one can be selected at a time; if you select the second, the first will automatically be deselected.
i'll try it out