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

Roll Template [Question]

1436373886

Edited 1436373951
Mister Sinister
Sheet Author
Hi I have modified the World of Darkness Roll Template for Fear Itself (A GUMSHOE game). I have this: The code for the Filch skill is below <tr> <td class="skill-label">Filch</td> <td><input class="skill-input" type="number" name="attr_filch_spend" /></td> <td><input class="skill-input" type="number" name="attr_filch_pool" value="@{filch_rating}-@{filch_spend}" disabled="true"/> </td> <td><input class="skill-input" type="number" name="attr_filch_rating" /></td> <td><button type='roll' value="&{template:wod} {{name=@{character_name}}} {{roll_name=Filch}} {{attr=Current Pool}} {{attr_num=@{f ilch_rating}-@{filch_spend}}} {{skill=Point Spend}} {{skill_num=?{Point Spend|0}}} {{mod_number=?{Modifier|0}}} {{result=[[1d6+?{P oint Spend}+?{Modifier}]]}}" /></td> </tr> You can see on the Template the Current Pool displays as (5-0) is there a way to display the calculated total only. So {{attr=Current Pool}} {{attr_num=@{filch_rating}-@{filch_spend}}} Display Current Pool (5) when the @{filch_rating} = 5 and the @{filch_spend} =0 ? Thanks
1436377077
Finderski
Plus
Sheet Author
Compendium Curator
{{attr=Current Pool}} {{attr_num=[[@{filch_rating}-@{filch_spend}]]}} That should work, I believe. You just need to encapsulate the stuff you're doing into an inline roll format by surrounding it with square brackets.
Thank You, worked as intended.