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

*Need Help with Rifts Character Sheet

I want to add roll templates to the existing Palladium Rifts Character Sheet particularly for Weapons (attacks), Skills, Saves, Perception and initiative. I've tried seeding in some basic roll templates but i can't get anything to work. I've been out of programming and writing HTML code for about 20 years now and apparently the rust is showing. Any help would be appriciated.
What i'm looking for is the ability for players to roll these directly off their sheets. If anything if i could just get rollable weapons and abilities while keeping the repeatables (like the 5e sheets spells) that would be wonderful and atleast a start. I'm not looking for a full sheet re-write. even code i could just copy into the sheet through custom would be amazing!
1500232421
The Aaron
Roll20 Production Team
API Scripter
(Moved to Character Sheets)
<td> <h3>Modern Weapons</h3> <table> <tr> <td style="width:50%;">Name</td> <td style="width:10%;">Damage</td> <td style="width:10%;">Ammo</td> <td style="width:10%;">Strike</td> <td style="width:10%;">Range</td> <td style="width:10%;">Special</td> </tr> </table> <table frame="box"> <tr> <fieldset> <input float="left" type="text" style="width:50%;" name="attr_WEAP" ><input float="left" type="text" style="width:10%;" name="attr_WEAPd"><input float="left" type="text" style="width:10%;" name="attr_WEAPc"><input float="left" type="text" style="width:10%;" name="attr_WEAPb"><input float="left" type="text" style="width:10%;" name="attr_WEAPr"><input float="left" type="text" style="width:10%;" name="attr_WEAPs"> </fieldset> </tr>
for some reason i can't get it to call to any of the attributes for a roll. WEAPD would be damage and WEAPs chance to strike etc. just trying primarily in this section to get an attack roll with a d20 + strike bonus and to roll whatever dice are in damage.
when i make the button and do the /roll 1d20 + @{attribute} when the button is executed the roll states that the {character|attribute} does not exist
i have tried renaming the attributes (i.e. attr_STRIKE etc). I have tried placing the button in different spots. I have tried giving the attributes base values and making them type="number" but for some reason it will never call to the attributes for this repeating section.
1500338642
Finderski
Plus
Sheet Author
Compendium Curator
Can you show the code with the button included? 
i deleted it, i'll have to re-write it.
ok i got the strike portion of the code to work which is the first part of the roll now i'm trying to get the second part of the roll to look at the "damage" section and roll whatever dice are listed in that box (i.e 3d6) <tr> <fieldset> <input float="left" type="text" style="width:50%;" name="attr_WEAP" ><input float="left" type="text" style="width:10%;" name="attr_WEAPd"><input float="left" type="text" style="width:10%;" name="attr_WEAPc"><input float="left" type="text" style="width:10%;" name="attr_WEAPb"><input float="left" type="text" style="width:10%;" name="attr_WEAPr"><input float="left" type="text" style="width:10%;" name="attr_WEAPs"> <button type='roll' name='attack' value='/roll 1d20+@{WEAPb}' '/roll @{WEAPd}'></button> </fieldset> </tr> the part in bold is working the second part is not
1500461246
Finderski
Plus
Sheet Author
Compendium Curator
The problem is you can't have 2 /r on the same line. Also, you closed the value attribute with the first single quote after the first roll statement—so, the second roll is just kind of hanging out there...  I'd recommend using inline rolls.  Something like: <button type='roll' name='attack' value='Strike: [[1d20+@{WEAPb}]] Damage: [[@{WEAPd}]]'></button> I'm assuming the second roll you are wanting to do is damage. If it's important that you see the actual dice rolls (i.e. can't use inline rolls), then you could try something like this: <button type='roll' name='attack' value='/roll 1d20+@{WEAPb} /roll @{WEAPd}'></button> I'll make the code ugly, but I think it'll work.
You are my hero dude. That fixed the issue!!
Thank you for your assistance. That little push allowed me to make nearly the entire sheet rollable.