Hello! I'm trying to create an attribute as a formula
that sums/subtracts the difference between an attribute and a given
number. Consider that i'm no expert of HTML and CSS, as I've just started experimenting with it. Anyway, I've find this formula: [[{0@{ATTRIBUTE}>7}*(0@{ATTRIBUTE}-6) + 0]] It works as a roll, but if I want to show the results directly on an
attribute inside the sheet, it just displays the formula itself and not the result, even if I write it without the square brackets. Here's a further explanation on what I'm trying to do. I want to use the formula on two sheets. 1)
Since I'm displeased with the official Pendragon 6 sheet, i'm working
on a modified version of the Thierry MATTRAY Pendragon 5th ed. Sheet. In
Pendragon 6 the passions are sorted in "Courts" with a total cap of 40
for each court, BUT - by rules - if your passion's value is bigger then
20, the court's cap count it ONLY as 20 anyway. As you can see below, I've already come out with a line for counting the total of a Court, but i'm struggle with the 20 cap for each of it's passions. Here's an example with the court FIDELITAS. That's where I want to display it (near the name): And
That's my formula (I've only try an attemp with the Homage passion,
named 'HOMA'. I named the formula for the treshold as 'HOMAcourt'. <label style='display:inline-block; width:180px;'>FIDELITAS</label> <input style='display:inline; width:30px; font-color:red;' type="text" name="attr_currentpas" value="(@{HOMA}+@{HOMAcourt}+@{LOY}+@{LOY2}+@{FEAL}+@{DUTY})" disabled="true"/> <label style='display:inline'>/</label> <input style='display:inline;' type="text" name="attr_attr_fidelitas" class="sheet-carac2" value="40" disabled="true" /> <br /> <label style='display:inline-block; color:black; margin-left: 5px; font-size:15px; color:black; width:60px;'>Homage</label> <input style='display:inline; margin-left: 10px; width:116px;' type="text" name="attr_HOMAWHO" class="sheet-long" /> <input style='display:inline;' type="number" name="attr_HOMA" class="sheet-carac2" value="0" /> <input style='display:inline;' type="number" name="attr_HOMAcourt" class="sheet-carac2" value="({0@{HOMA},0}>21*(0@{HOMA}-20) + 0)" /> <input style='display:inline; margin-left: 10px; margin-right: 10px;' type='checkbox' name='attr_CB-HOMA' value='1' /> <button type='roll' name='roll_TestHOMA' value="/em @{MYNAME} rolls HOMAGE @{HOMAWHO} with a modifier of ?{modif|0} : \n/roll 1d20+[[{{@{HOMA}+?{modif|0},0}>21}*(@{HOMA}+?{modif|0}-20) + 0]]<[[@{HOMA}+?{modif|0}]] \ HOMAGE @{HOMA} roll @{HOMA} modif. ?{modif|0}"></button> <br / 2)
I'm working also on a modified version of Tony R. Cyberpunk 2020
Character Sheet for my own verision of the Interlock System. In this
system, if you have 7 points in some of the Special Abilities, they will
give you a bonus to certain other abilities/action/other stuff. For
example, IF you have 7 points on the ability 'RICARICA VELOCE', (quick
reload) you will get a +1 bonus to 'ARMI DA FUOCO' (firearms). That's where I want to display it (il'also circle the Special Ability in question that gives the bonus): That's the code with the formula: <tr> <td><input type='checkbox' class="sheet-classed" name='attr_RicaricaveloceChip' value='1'><span></span></td> <td><button type='roll' style="background-color: #272526; width:160px;" class="sheet-skillroll sheet-set" value='&{template:skill-general}{{skill= Ricarica Veloce}}{{character= @{character_name}, @{handle} }}{{total= [[1d10!!+@{Ricaricaveloce_Skill}+@{Ricaricaveloce_mod}+[[@{Ref}]]+?{Modifier|0}]] }} {{fumble= [***FUMBLE!***](!#fumblearma) }} '><label style=" color: white; text-align:center;" >Ricarica Veloce</label></button></td> <td><input type="text" style="width: 45px;" name="attr_Ricaricaveloce_Skill" Value="0" /></td> <td><input type="text" style="width: 45px;" name="attr_Ricaricaveloce_mod" Value='0'/></td> <input type="hidden" name="attr_RicaricaveloceBonus" disabled="disabled" value="[[{0@{Ricaricaveloce_Skill},0}>7*(0@{Ricaricaveloce_Skill}-6) + 0]]" /> </tr> ...A LOT OF LINES LATER... <table style="width:350px;"> <tr> <td><input type='checkbox' class="sheet-chipped" name='attr_ArmidafuocoChip' value='1'><span></span></td> <td><button type='roll' style="background-color: #272526; width:160px;"" class="sheet-skillroll sheet-set" value='&{template:skill-general}{{skill= Armi da fuoco}}{{character= @{character_name}, @{handle} }}{{total= [[1d10!!+@{Armidafuoco_Skill}+@{Armidafuoco_mod}+[[@{Ref}]]+?{Modifier|0}]] }} {{fumble= [***FUMBLE!***](!#fumblearma) }} '><label style="color: white; text-align:center;">Armi da fuoco</label></button></td> <td><input type="text" style="width: 45px;" name="attr_Armidafuoco_Skill" Value="0" /></td> <td><input type="text" style="width: 45px;" name="attr_Armidafuoco_mod" Value=' @{RicaricaveloceBonus} 'disabled="true"/></td> </tr> </table> Any
suggestion? Thank you.