mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 19:52:29 +00:00
252 lines
15 KiB
HTML
252 lines
15 KiB
HTML
<script type="text/worker">
|
|
|
|
on("change:ones change:twos change:threes change:fours change:fives change:sixes change:tok change:fok change:ss change:ls change:fh change:chance change:yatzoid change:adder change:dedacter" , function() {
|
|
getAttrs(["ones", "twos","threes","fours","fives","sixes","ust","bonus","tok","fok","ss","ls","fh","chance","lst","yatzoid","score","adder","dedacter"], function(values) {
|
|
let _ones = parseInt(values.ones)||0;
|
|
let _twos = parseInt(values.twos)||0;
|
|
let _threes = parseInt(values.threes)||0;
|
|
let _fours = parseInt(values.fours)||0;
|
|
let _fives = parseInt(values.fives)||0;
|
|
let _sixes = parseInt(values.sixes)||0;
|
|
let _bonus = parseInt(values.bonus)||0;
|
|
|
|
let _ust = _ones+_twos+_threes+_fours+_fives+_sixes;
|
|
|
|
let _tok = parseInt(values.tok)||0;
|
|
let _fok = parseInt(values.fok)||0;
|
|
let _ss = parseInt(values.ss)||0;
|
|
let _ls = parseInt(values.ls)||0;
|
|
let _fh = parseInt(values.fh)||0;
|
|
let _chance = parseInt(values.chance)||0;
|
|
let _yatzoid = parseInt(values.yatzoid)||0;
|
|
let _score = parseInt(values.score)||0;
|
|
|
|
let _adder = parseInt(values.adder)||0;
|
|
let _dedacter = parseInt(values.dedacter)||0;
|
|
|
|
let _lst = _tok+_fok+_ss+_ls+_fh+_chance;
|
|
|
|
// UST TOTAL
|
|
if(_ust>=64){
|
|
_bonus = 35;
|
|
}else{
|
|
_bonus=0;
|
|
}
|
|
|
|
_score = _bonus+_lst+_ust+_yatzoid+_adder+_dedacter;
|
|
|
|
setAttrs({
|
|
ust:_ust,
|
|
lst:_lst,
|
|
bonus:_bonus,
|
|
score:_score,
|
|
yatzoid:_yatzoid
|
|
});
|
|
});
|
|
});
|
|
|
|
</script>
|
|
<div class="topwhitebar">
|
|
<div class="centered narrower bottompad">
|
|
<H3 class="centered narrow toppad blacktext">Player Name:</h3>
|
|
<input class="centered wide" type="text" name="attr_character_name" />
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='3col'>
|
|
<div class='tcol'>
|
|
<div class="redBoxBarside">
|
|
<h2>Left Section</h2>
|
|
</div>
|
|
<div class="sub">
|
|
<div class="centered narrow">
|
|
<h3 class="centered narrow toppad">Ones</h3>
|
|
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Count and add only ones</p>
|
|
<input type="checkbox" name="attr_ones_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_ones' class='' value="0">
|
|
|
|
|
|
<h3 class="centered narrow toppad">Twos</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/D4DoSfx.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/D4DoSfx.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/D4DoSfx.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/D4DoSfx.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/D4DoSfx.png" title="source: imgur.com" />
|
|
<br>
|
|
<p class="centered narrow">Count and add only twos</p>
|
|
<input type="checkbox" name="attr_twos_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_twos' class='' value="0">
|
|
|
|
<h3 class="centered narrow toppad">Threes</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/J0MhWgz.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/J0MhWgz.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/J0MhWgz.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/J0MhWgz.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/J0MhWgz.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Count and add only threes</p>
|
|
<input type="checkbox" name="attr_threes_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_threes' class='' value="0">
|
|
|
|
|
|
<h3 class="centered narrow toppad">Fours</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/7qZUXwv.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/7qZUXwv.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/7qZUXwv.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/7qZUXwv.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/7qZUXwv.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Count and add only fours</p>
|
|
<input type="checkbox" name="attr_fours_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_fours' class='' value="0">
|
|
|
|
<h3 class="centered narrow toppad">Fives</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/9f29lgR.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/9f29lgR.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/9f29lgR.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/9f29lgR.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/9f29lgR.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Count and add only fives</p>
|
|
<input type="checkbox" name="attr_fives_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_fives' class='' value="0">
|
|
|
|
<h3 class="centered narrow toppad">Sixes</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Count and add only sixes</p>
|
|
<input type="checkbox" name="attr_sixes_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_sixes' class='' value="0">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class='tcol'>
|
|
|
|
<div class="order">
|
|
<div class="redBoxBar">
|
|
<img class="topmiddleimg" src="https://i.imgur.com/WZYAnHO.png" title="Yatzoid" />
|
|
</div>
|
|
<div class="middleBarcurve"></div>
|
|
</div>
|
|
|
|
<div class="sub middle">
|
|
<div class="centered">
|
|
<img src="https://i.imgur.com/MY6rEKC.png" title="Yatzoid logo" class="centered bottompad yatzoidlogo" /><br>
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" /><br><br>
|
|
<input class="" type="number" name="attr_yatzoid" value="@{yatzoid}" />
|
|
<p class="centered narrow">(add 50 (100)*)</p>
|
|
|
|
<br>
|
|
<hr>
|
|
<br>
|
|
|
|
<H3 class="centered narrow">Score:</h3>
|
|
<span name="attr_score" title="@{score}" class="blacktext small"> score </span>
|
|
<p class="centered narrow">Shows the total of each set</p>
|
|
|
|
<br>
|
|
|
|
<h3 class="centered narrow">Bonus:</h3>
|
|
<span name="attr_bonus" title="@{bonus}" class="blacktext small"> bonus </span>
|
|
<p class="centered narrow">(Gain 35 if U.S. >=64)</p>
|
|
|
|
<br>
|
|
<hr>
|
|
<br>
|
|
<div class="inline">
|
|
<span class="narrow blacktext rightpad">-</span>
|
|
<span class="narrow blacktext leftpad">+</span>
|
|
</div>
|
|
|
|
<input type="number" name='attr_dedacter' class='' value="0" max="0">
|
|
<input type="number" name='attr_adder' class='' value="0" min="0">
|
|
<p class="centered narrow">(misc score changes)</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='tcol'>
|
|
<div class="redBoxBarside">
|
|
<h2>Right Section</h2>
|
|
</div>
|
|
<div class="sub">
|
|
<div class="centered narrow">
|
|
<h3 class="centered narrow toppad">Three Of a Kind</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<br>
|
|
<p class="centered narrow">Add total of all dice</p>
|
|
<input type="checkbox" name="attr_tok_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_tok' class='' value="0">
|
|
|
|
<h3 class="centered narrow toppad">Four Of a Kind</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<br>
|
|
<p class="centered narrow">Add total of all dice</p>
|
|
<input type="checkbox" name="attr_fok_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_fok' class='' value="0">
|
|
|
|
<h3 class="centered narrow toppad">Full House</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Add 25</p>
|
|
<input type="checkbox" name="attr_fh_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_fh' class='' value="0">
|
|
|
|
<h3 class="centered narrow toppad">Small Straight</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/D4DoSfx.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/J0MhWgz.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/7qZUXwv.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Add 30</p>
|
|
<input type="checkbox" name="attr_ss_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_ss' class='' value="0">
|
|
|
|
<h3 class="centered narrow toppad">Large Straight</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/Ea7W8tC.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/D4DoSfx.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/J0MhWgz.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/7qZUXwv.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/9f29lgR.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Add 40</p>
|
|
<input type="checkbox" name="attr_ls_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_ls' class='' value="0">
|
|
|
|
<h3 class="centered narrow toppad">Chance</h3>
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" />
|
|
<img class="diceSize" src="https://i.imgur.com/spLuO12.png" title="source: imgur.com" /><br>
|
|
<p class="centered narrow">Add total of all dice</p>
|
|
<input type="checkbox" name="attr_chance_b" class="" value="played" title="Tick if you failed this set.">
|
|
<input type="number" name='attr_chance' class='' value="0">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|