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 .
×
May your rolls be chill this holiday season!
Create a free account

Option menu to fill multiple fields with different attributes

As the topic states, been trying to set something like this up, specifically for 'race' for 'max stat values' in a system, so that when people select race it auto pulls and sets the max value atribute for core stats.  However, can't seem to get it to be able to have one option be able to output multiple @{blah} referencable things (ie @{blah} @{blah2} @{blah3} etc) even tried to set the option to have multiple hidden 'inputs' with static values, but that didn't weem to work either. Any ideas?
1512097918
GiGs
Pro
Sheet Author
API Scripter
You should be do what you want with sheet workers. Can you be more specific about what exactly you are trying to do, maybe with code you've already tried?
Okay, so this is d100 system with limited races choosable with max values they can have for each of their core stats (ala the fallout style SPECIAL system) and trying to set it so that upon selecting race it sets that max value (for instance one race only has upto 5 str as a max permanent value, and I want it to set that being determined by selected race) And as I'd stated in the OP, I've already tried using hidden attributes within the option menu it's self and such.
1512143657
Jakob
Sheet Author
API Scripter
So you want to do something like: - If race is human, set max strength to 5, max intelligence to 6, and max charisma to 8; - If race is troll, set max strength to 7, max intelligence to 3, and max charisma to 4 Does that more or less describe what you want to do? If yes, you will want a sheet worker that triggers on the "change:race" event (or whatever the name of your race field is) and then sets the other attributes according to the value of race. You will need sheet workers to accomplish this.
Ah, so it'd be a seperate API thing to do that?  Cause I'd tried to use if,then,else coding (which works properly in html5) but that doesn't work in roll20 which is a draaaaag, but yeah, that's basically what I'm trying to do, I've got it set currently to manually enter and it pulls the 'max' value for that already for the actual perm level of the stat (if players take a thing to get say +1 str, they still can't go over a cap of say 10 for normal values/etc)
1512290829
GiGs
Pro
Sheet Author
API Scripter
We cant help you much, unless you tell us exactly &nbsp;what you are trying to do (specific stat and variable names, example values, etc.), and ideally provide the code you've already tried. If you want to figure it out yourself, this page should help:&nbsp;<a href="https://wiki.roll20.net/Sheet_Worker_Scripts" rel="nofollow">https://wiki.roll20.net/Sheet_Worker_Scripts</a>