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

[Request] Help on 2 functions for a new sheet I'm making

Hello fellow rollers, I'm in need of some help on a new sheet I'm making for a custom game made by my GM. I have most of the sheet ready but there are 2 parts I need help with, the first is a selectable table on stats values. Let me explain a bit. The system works with 36 base values for any character Strenght, Dexterity, Constitution, Willpower, Perception and Charisma All 6 are based on 6 body parts Head, Body, Arms, Hands, Legs and Feet for a total of 36 values Now for what I'm trying to do: I would like to make a table with all 36 values selectable (the whole box) that would light up in a specific color when selected, for a roll. For example, if I wanted to roll Dex/Hands + Dex/Arms, I would just have to click on both then click on a button that would roll under the total value. The roll is not a problem I can make it, the hard part for me is the stat selection table. The second thing I would like some help on is a roll template. The system requires for several rolls per action: For each roll, we have to roll the total value of the selected stats under dices It starts with 1d10, if it passes, 2d10, then 3d10 etc etc Arriving on 10d10, if it passes, it goes to 1d100, then 1d100+1d10, 1d100+2d10 Always under a fixed value. What I would like to do is a single button that would roll all the dices from 1d to xd where the roll would fail. Then another button to start the roll on yd to xd where the roll would fail, that would allow the roll to start from say 5d10 Also, if someone is willing to help on the whole character sheet developement and not just a few hints here and there, I would be ready to pay a fee for the work. Thank you.
1475406014
Finderski
Plus
Sheet Author
Compendium Curator
I'm really struggling with visualizing the grid. Could you post a picture of what you're envisioning? Because in my head, it's a box of 36 numbers, which means that each intersection will have a different number, which means 36 different inputs. Is that correct?
1475408340

Edited 1475411554
Here that should make it easier to picture: <a href="https://app.roll20.net/join/1707219/1ZlX-Q" rel="nofollow">https://app.roll20.net/join/1707219/1ZlX-Q</a> It is 36 different inputs, all linked to a checkbox replaced by an arrow for selection right now (I wanted to have a selectable grid but I just can't figure that out by myself) Also here is the code I'm using right now for the API for the pyramid roll ( the 1d10, then 2d10 etc etc): <a href="http://pastebin.com/4bBnkAa2" rel="nofollow">http://pastebin.com/4bBnkAa2</a> It's still a work in progress so the code is horribly crude. Right now I'm trying to pass an auto-calculated field to a variable inside the api... Can't seem to get around that.
I updated the pastebin with a clearer API Also I have almost everything I need, the main problem I have is that I cannot use getObj to catch the auto-calculated input from the sheet Since for it to be auto-calculated it has to be disabled="true", it does not exist on the sheet. If I try to send a variable after the API command (here !sr) I shoot myself in the foot and fail to complete what I want to do... every... single... time
1475483813
Finderski
Plus
Sheet Author
Compendium Curator
Unfortunately, I can't help with the grid (clicking without the checkbox—that's the only solution I know how to do, and looks like you already have that). As for auto-calculated stuff...instead of doing an auto-calculated field, you could create a read-only input box, and then use a Sheet Worker to populate the value of that field. In case you aren't familiar with Sheet Workers, here's more information:&nbsp; <a href="https://wiki.roll20.net/Sheet_Worker_Scripts" rel="nofollow">https://wiki.roll20.net/Sheet_Worker_Scripts</a> I hope this helps, at least. :)
That's what I'm trying to do right now but I'm having trouble making it work, let me explain: I'm using the checkboxes with value="@{attribute}" When I try sending the value through a sheet worker, it comes up blank since there is no number Here's where I'm at right now: <a href="http://pastebin.com/UDBhxQmB" rel="nofollow">http://pastebin.com/UDBhxQmB</a> And I can't get the worker to populate the field as I want due to the checkbox I could do a if buuuuut... too many combination it would take me too long
1475497593

Edited 1475497609
Ok so I managed to do just what I wanted, now I would like to know if it would be possible to call a sheet worker event from a button type