Files
roll20-character-sheets-tester/Empire_des_cerisiers/EdC.html
T
Marc Jamet b3c11dc9c9 EdC V1.1 update
- Added : magic tab
 - Added : simple roll at the top of the sheet
 - Updated : changing an injury level now update the others accordingly
 - Fixed : skill aspect name not updating when source aspect is changed
2020-09-28 00:13:58 +02:00

1438 lines
90 KiB
HTML

<div class="global">
<div class='row header no-wrap'>
<div class='cell cell-3 cell-logo'>
<img class="logo" src="https://lh3.googleusercontent.com/pw/ACtC-3dFnMd-D89BItvaSBqsBHEbzZu3I4YxxX4bOxzyLkwcgR7JacQqX1e4z_1w1BM4eo5ExKNHqL5EkpjUQKYGfFH4CKTbFjsZXRZG17QJZUuudk5B1yIlBy5jrztiulTyW7EaU3xLoDidd6KhTQRJdKjn=w746-h317-no?authuser=0">
</div>
<div class='cell cell-header'>
<div class='row header-carac'>
<div class='cell cell-6'>
<p><span class='title'>Nom :</span> <input disabled name="attr_character_name" type="text" /></p>
</div>
<div class='cell cell-6'>
<p><span class='title'>Origines :</span> <input name="attr_character_origine" type="text" /></p>
</div>
<div class="cell cell-8">
<p><span class='title'>Concept :</span> <input name="attr_character_concept" type="text" /></p>
</div>
<div class="cell cell-2 text-center">
<span class="title">XP :</span> <span class='number-wrapper'><input type="number" placeholder="0" name="attr_xp" /></span>
</div>
<div class="cell cell-2 text-center">
<button type="roll" value="&{template:sakura} {{check=[[2d6cs0cf0]]}} {{mincheck=[[2]]}} {{maxcheck=[[12]]}} {{currentinjury=@{foocurrentinjurylevel}}}" name="roll_standard"></button>
</div>
</div>
</div>
</div>
<div class='top-body row nowrap'>
<div class="cell cell-1">
<img class="sakura-left" src="https://lh3.googleusercontent.com/pw/ACtC-3dnT-jL4nDIODl9_IYBpK5ym4afxqKJ-iDgdMxySys7tymlQNdxAYJRp_JywBdIZ2DD6lRFRlywM79AWh99BJlmyaxaci4v8SRpSmccHztq2ZjmXeV_5GYuXwfDHTwQqSNQAwNmfIfN3EblulltB9DA=w229-h836-no?authuser=0">
</div>
<div class="cell cell-4">
<h2 class='title'>Combat</h2>
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
</div>
<div class="row">
<div class="cell cell-8">
<p>Nombre d'attaque par tour: </p>
<p class="initiative-p">Défense: </p>
<p class="initiative-p">Initiative: </p>
<p class="initiative-p">Résistance mentale: </p>
</div>
<div class="cell cell-4 text-center">
<p><span class='number-wrapper'><input type="hidden" name="attr_fooattackperturn" value="1"/><input type="number" disabled name="attr_attackperturn" value="@{fooattackperturn}" /></span></p>
<p><span class='number-wrapper'><input type="hidden" name="attr_foodefence" value="0"/><input type="number" disabled name="attr_defence" value="@{foodefence}"/></span></p>
<p class="initiative-button nowrap"><span><input type="hidden" name="attr_fooinitbonus" value="0"/><input type="hidden" name="attr_fooinitmalus" value="0"/><span class='number-wrapper'><input type="number" value="0" name="attr_initmod"/></span><button type="roll" value="&{template:sakura} {{rollname=Initiative}} {{check=[[2d6cs0cf0 + @{fooinitbonus} + @{fooinitmalus} + (@{initmod}) &{tracker}]]}} {{currentinjury=@{foocurrentinjurylevel}}} {{note=Penser à ajouter les modificateurs d'arme.}}" name="roll_init"></button></span></p>
<p class="resiste-button"><button type="roll" value="&{template:sakura} {{rollname=Résistance mentale}} {{check=[[2d6cs0cf0 + @{pathlvl} + @{foomaxchamp}]]}} {{mincheck=[[2+@{pathlvl}+@{foomaxchamp}]]}} {{maxcheck=[[12+@{pathlvl}+@{foomaxchamp}]]}} {{currentinjury=@{foocurrentinjurylevel}}} {{note=Penser à ajouter le score d'aspect approprié.}}" name="roll_resmentale"></button></p>
</div>
</div>
</div>
<div class="cell cell-7 injury">
<h2 class='title'>Blessures</h2>
<div class='underligne underligne-2'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3f7VjhCW6tyHGIHg6hcPZQTXN_sPyjTbtaaETRxtZNKb1ONEJgdc9gtatciDX93ZQTzCjae8G6H1R_aCw-FzPIvbFmV7OhphmNDlyXw-PIWOG5vw7q3K3OJyjwqLWZ6TwePB0aNK8PFdDeMXF904XVs=w851-h83-no?authuser=0">
</div>
<div class='row'>
<div class='cell cell-5 radios-injury'>
<input id='cont-5' type='radio' value='5' name='attr_injury_contusions'><label for='cont-5'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='cont-4' type='radio' value='4' name='attr_injury_contusions'><label for='cont-4'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='cont-3' type='radio' value='3' name='attr_injury_contusions'><label for='cont-3'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='cont-2' type='radio' value='2' name='attr_injury_contusions'><label for='cont-2'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='cont-1' type='radio' value='1' name='attr_injury_contusions'><label for='cont-1'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='cont-0' type='radio' value='0' name='attr_injury_contusions'><label for='cont-0'><span class='cancel'>&times;</span></label>
</div>
<div class='cell cell-5'>
<p>Contusions</p>
</div>
<div class='cell cell-2'></div>
</div>
<div class='row'>
<div class='cell cell-5 radios-injury'>
<input id='meu-5' type='radio' value='5' name='attr_injury_meurtrissures'><label for='meu-5'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='meu-4' type='radio' value='4' name='attr_injury_meurtrissures'><label for='meu-4'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='meu-3' type='radio' value='3' name='attr_injury_meurtrissures'><label for='meu-3'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='meu-2' type='radio' value='2' name='attr_injury_meurtrissures'><label for='meu-2'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='meu-1' type='radio' value='1' name='attr_injury_meurtrissures'><label for='meu-1'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='meu-0' type='radio' value='0' name='attr_injury_meurtrissures'><label for='meu-0'><span class='cancel'>&times;</span></label>
</div>
<div class='cell cell-5'>
<p>Meurtrissures</p>
</div>
<div class='cell cell-2'>-1</div>
</div>
<div class='row'>
<div class='cell cell-5 radios-injury'>
<input id='leg-5' type='radio' value='5' name='attr_injury_legeres'><label for='leg-5'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='leg-4' type='radio' value='4' name='attr_injury_legeres'><label for='leg-4'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='leg-3' type='radio' value='3' name='attr_injury_legeres'><label for='leg-3'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='leg-2' type='radio' value='2' name='attr_injury_legeres'><label for='leg-2'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='leg-1' type='radio' value='1' name='attr_injury_legeres'><label for='leg-1'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='leg-0' type='radio' value='0' name='attr_injury_legeres'><label for='leg-0'><span class='cancel'>&times;</span></label>
</div>
<div class='cell cell-5'>
<p>Blessures Légères</p>
</div>
<div class='cell cell-2'>-3</div>
</div>
<div class='row'>
<div class='cell cell-5 radios-injury'>
<input id='mod-5' type='radio' value='5' name='attr_injury_moderes'><label for='mod-5'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mod-4' type='radio' value='4' name='attr_injury_moderes'><label for='mod-4'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mod-3' type='radio' value='3' name='attr_injury_moderes'><label for='mod-3'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mod-2' type='radio' value='2' name='attr_injury_moderes'><label for='mod-2'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mod-1' type='radio' value='1' name='attr_injury_moderes'><label for='mod-1'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mod-0' type='radio' value='0' name='attr_injury_moderes'><label for='mod-0'><span class='cancel'>&times;</span></label>
</div>
<div class='cell cell-5'>
<p>Blessures modérées</p>
</div>
<div class='cell cell-2'>-5</div>
</div>
<div class='row'>
<div class='cell cell-5 radios-injury'>
<input id='gra-5' type='radio' value='5' name='attr_injury_graves'><label for='gra-5'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='gra-4' type='radio' value='4' name='attr_injury_graves'><label for='gra-4'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='gra-3' type='radio' value='3' name='attr_injury_graves'><label for='gra-3'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='gra-2' type='radio' value='2' name='attr_injury_graves'><label for='gra-2'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='gra-1' type='radio' value='1' name='attr_injury_graves'><label for='gra-1'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='gra-0' type='radio' value='0' name='attr_injury_graves'><label for='gra-0'><span class='cancel'>&times;</span></label>
</div>
<div class='cell cell-5'>
<p>Blessures graves</p>
</div>
<div class='cell cell-2'>-7</div>
</div>
<div class='row'>
<div class='cell cell-5 radios-injury'>
<input id='mort-5' type='radio' value='5' name='attr_injury_mort'><label for='mort-5'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mort-4' type='radio' value='4' name='attr_injury_mort'><label for='mort-4'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mort-3' type='radio' value='3' name='attr_injury_mort'><label for='mort-3'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mort-2' type='radio' value='2' name='attr_injury_mort'><label for='mort-2'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mort-1' type='radio' value='1' name='attr_injury_mort'><label for='mort-1'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='mort-0' type='radio' value='0' name='attr_injury_mort'><label for='mort-0'><span class='cancel'>&times;</span></label>
</div>
<div class='cell cell-5'>
<p>Aux portes de la mort</p>
</div>
<div class='cell cell-2'>+3/-9</div>
</div>
<div class='row'>
<div class='cell cell-5 radios-injury'>
<input id='inc-5' type='radio' value='5' name='attr_injury_inconscient'><label for='inc-5'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='inc-4' type='radio' value='4' name='attr_injury_inconscient'><label for='inc-4'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='inc-3' type='radio' value='3' name='attr_injury_inconscient'><label for='inc-3'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='inc-2' type='radio' value='2' name='attr_injury_inconscient'><label for='inc-2'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='inc-1' type='radio' value='1' name='attr_injury_inconscient'><label for='inc-1'><span><img src="https://lh3.googleusercontent.com/pw/ACtC-3dbbSwfnjFXz3X8bOJdZA-sDfVFCF318vKo9uL3809Y8vEr5BjIKzuNXZebFyV29b-c-BuGbpqQhyLfOjwGTyDcMe1I0N5SJe9bIWIm8lmtLW70oR3Gx6NZIikTk-Am3240cA3A-ze4dtG-zPeob5mI=s38-no?authuser=0"></span></label>
<input id='inc-0' type='radio' value='0' name='attr_injury_inconscient'><label for='inc-0'><span class='cancel'>&times;</span></label>
</div>
<div class='cell cell-5'>
<p>Inconscient/ Incapacité</p>
</div>
<div class='cell cell-2'> X </div>
</div>
</div>
</div>
<div class='tabs-container'>
<input type='hidden' class='sheet-tabstoggle' name='attr_sheettab' value='character' />
<div class="text-center">
<button class='tabs-button' type="action" name="act_field" >Champs <span></span><span></span><span></span></button>
<button class='tabs-button' type="action" name="act_advantage" >Avantages <span></span><span></span><span></span></button>
<button class='tabs-button' type="action" name="act_path" >Voie <span></span><span></span><span></span></button>
<button class='tabs-button' type="action" name="act_magie" >Magie <span></span><span></span><span></span></button>
<button class='tabs-button' type="action" name="act_stuff" >Équipement <span></span><span></span><span></span></button>
<button class='tabs-button' type="action" name="act_info" >Divers <span></span><span></span><span></span></button>
</div>
<div class='sheet-field'>
<div class="row nowrap">
<div class="cell cell-6 field-cell">
<h2 class="title"> CHAMPS </h2>
<div class='underligne underligne-2'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3f7VjhCW6tyHGIHg6hcPZQTXN_sPyjTbtaaETRxtZNKb1ONEJgdc9gtatciDX93ZQTzCjae8G6H1R_aCw-FzPIvbFmV7OhphmNDlyXw-PIWOG5vw7q3K3OJyjwqLWZ6TwePB0aNK8PFdDeMXF904XVs=w851-h83-no?authuser=0">
</div>
<fieldset class="repeating_field">
<div class='row field-row'>
<div class="cell cell-8">
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
</div>
<p class='field-name'>Nom du champ:<input name="attr_fieldname" type="text"/></p>
<p class="mt-1">Description:</p>
<textarea name='attr_fielddesc' rows="2"></textarea>
</div>
<div class="cell cell-4 text-center">
<p><span class="number-wrapper field-number-wrapper"><input type="number" name="attr_fieldlvl" value="0"/></span></p>
<div class="tooltip">
<p>Bonus:</p>
<p><span class="number-wrapper-small"><span class="number-wrapper"><input type="number" name="attr_fieldmod" value="0"/></span></span></p>
<span class="tooltiptext">Ce bonus n'est pas pris en compte lors des tests de spécialisation</span>
</div>
</div>
<div class="cell cell-6">
<p class="checkbox text-center mt-1">Initiative:
<label>
<input type="checkbox" name="attr_fieldiscombatrelated" value="1"/>
<span>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3cEcDQYsPArDv3lAC7zEA2vWSlNmXF3qFgOiVx9Fn15Ylmub6JNp3LX0-3DRdW7akaA_bTCDQQIULpsnsn_kMDIoQiduWIjXopdsyZp-dZupAkGXxGoF_lv6Ku7wjeBPDUQ6wvmaVQIaQewHQwlrtjwVA=s79-no?authuser=0">
</span>
</label>
</p>
</div>
<div class="cell cell-6">
<button class="roll-field" type="roll" name="roll_fieldcheck" value="&{template:sakura} {{subtitle=Champ :}} {{rollname=@{fieldname}}} {{check=[[2d6cs0cf0 + @{fieldlvl} + @{fieldmod}]]}} {{mincheck=[[2+@{fieldlvl}+@{fieldmod}]]}} {{maxcheck=[[12+@{fieldlvl}+@{fieldmod}]]}} {{currentinjury=@{foocurrentinjurylevel}}} {{desc=@{fielddesc}}}"/>
</div>
</div>
</fieldset>
</div>
<div class="cell cell-6 spe-cell">
<h2 class="title"> SPÉCIALISATION </h2>
<div class='underligne underligne-2'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3f7VjhCW6tyHGIHg6hcPZQTXN_sPyjTbtaaETRxtZNKb1ONEJgdc9gtatciDX93ZQTzCjae8G6H1R_aCw-FzPIvbFmV7OhphmNDlyXw-PIWOG5vw7q3K3OJyjwqLWZ6TwePB0aNK8PFdDeMXF904XVs=w851-h83-no?authuser=0">
</div>
<fieldset class="repeating_spec">
<div class="row spe-row slider">
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
</div>
<div class="cell cell-2">
<p> Champ: </p>
</div>
<div class="cell cell-1">
<button class="right" type="action" name="act_prevfield">
<img src="https://lh3.googleusercontent.com/pw/ACtC-3dTW1t8u643KKvBvpgrnwblWKviIJ_o5ljMMCxBG204LOaj4iW9tE6VEE4BA3fobyOKKdr9Xqmevz4_ViNAJZdEjka_asiITjtiyLZciFs4X-o0UZ3h9BqGlcFcG1_9CY7HdlUu-HKMZ9aF3tHmN4fO=w128-h176-no?authuser=0">
</button>
</div>
<div class="cell cell-6 text-center">
<input type="hidden" name="attr_foospecassociatedfield" value="Choisir"/>
<input type="text" disabled name="attr_specassociatedfield" value="@{foospecassociatedfield}"/>
<input type="hidden" name="attr_foospecassociatedfieldlvl"/>
<input type="hidden" name="attr_fooindexfield" value="-1" />
</div>
<div class="cell cell-1">
<button class="left" type="action" name="act_nextfield">
<img src='https://lh3.googleusercontent.com/pw/ACtC-3dM3amrbq3K0od0-KjZvqPKXBV9o6cdk4Xwh8H7nXnBPqDveu2pNRJIfbQtST4LQ_GDdS-9S6hHxBxG6ar9uW6UqJt9POJwzhSylh1z_Oi603dRv0dgZmY9VxfzbKpsvuWfJzegxGgsC4SctWeSjQj9=w128-h176-no?authuser=0'>
</button>
</div>
</div>
<div class="nowrap">
<div class="cell cell-6 nowrap">
<p class="mt-1"> Nom: </p>
<input class="spe-name" name="attr_specname" type="text" value=""/>
</div>
<div class="cell cell-2 nowrap">
<p class="mt-1">Niveau:</p>
<span class="number-wrapper"><input type="number" name="attr_speclvl" placeholder="0"/></span>
</div>
<div class="cell cell-2 nowrap">
<p class="mt-1"> Bonus: </p>
<div class="text-center">
<span class="number-wrapper"><input name="attr_specmodif" type="number" value="0" placeholder="0"/></span>
</div>
</div>
<div class="cell cell-2 text-center">
<input type="hidden" name="attr_foototalspelvl" value="[[@{foospecassociatedfieldlvl} + @{speclvl} + @{specmodif}]]"/>
<button class="roll-spe" type="roll" name="roll_speccheck" value="&{template:sakura} {{subtitle=Spécialisation :}} {{rollname=@{specname}}} {{check=[[2d6cs0cf0 + @{foototalspelvl}]]}} {{mincheck=[[2+@{foototalspelvl}]]}} {{maxcheck=[[12+@{foototalspelvl}]]}} {{currentinjury=@{foocurrentinjurylevel}}} {{desc=@{specdesc}}}"/>
</div>
</div>
<div class="cell cell-12">
<p class="mt-1">Description:</p>
<textarea name='attr_specdesc' rows="2"></textarea>
</div>
</div>
</fieldset>
</div>
</div>
<div class='sheet-advantage'>
<div class="row">
<div class="cell cell-6">
<h2 class="title"> AVANTAGES </h2>
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
</div>
<fieldset class="repeating_advantage">
<div class= "row no-wrap" >
<div class="cell cell-8">
<p><input type="text" name="attr_advname" placeholder="Nom"/></p>
</div>
<div class="cell cell-4 text-center">
<p><span class="number-wrapper"><input type="number" name="attr_advlvl" placeholder="0"/></span></p>
</div>
</div>
<textarea type="text" name="attr_advdesc" rows="5"></textarea>
</fieldset>
</div>
<div class="cell cell-6">
<h2 class="title"> DESAVANTAGES </h2>
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
</div>
<fieldset class="repeating_disadvantage">
<div class= "row no-wrap" >
<div class="cell cell-8">
<p><input type="text" name="attr_disadvname" placeholder="Nom" /></p>
</div>
<div class="cell cell-4 text-center">
<p><span class="number-wrapper"><input type="number" name="attr_advlvl" placeholder="0" /></span></p>
</div>
</div>
<textarea type="text" name="attr_disadvdesc" rows="5"></textarea>
</fieldset>
</div>
</div>
</div>
<div class='sheet-path'>
<div class="row ">
<div class="cell cell-6">
<h2 class="title"> VOIE </h2>
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
</div>
<input type='text' name='attr_path' placeholder="Nom de la voie">
<span class="number-wrapper path-wrapper"><input type="number" name="attr_pathlvl" placeholder="0"></span>
</div>
<div class="cell cell-6">
<h2 class='title'>Aspects</h2>
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
</div>
<fieldset class="repeating_aspect">
<input type="text"class="aspect-input" name="attr_aspectname">
<span class="number-wrapper path-wrapper"><input type="number" name="attr_aspectlvl" placeholder="0"></span>
</fieldset>
</div>
</div>
<div class="row">
<div class="cell cell-12 text-center">
<h2 class='title mt-2'>Techniques et enseignements</h2>
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
</div>
<button type="action" name="act_modaltrue" >Calculer une technique</button>
</div>
<div class="techniques slider">
<fieldset class="repeating_skill">
<div class="row">
<div class="cell cell-3"><p>Technique :</p></div>
<div class="cell cell-8"><input type="text" name="attr_skillname"/></div>
<div class="cell cell-3 mt-1">
<p>Aspect:</p>
</div>
<div class="cell cell-1 ">
<button class="right" type="action" name="act_prevaspect">
<img src="https://lh3.googleusercontent.com/pw/ACtC-3dTW1t8u643KKvBvpgrnwblWKviIJ_o5ljMMCxBG204LOaj4iW9tE6VEE4BA3fobyOKKdr9Xqmevz4_ViNAJZdEjka_asiITjtiyLZciFs4X-o0UZ3h9BqGlcFcG1_9CY7HdlUu-HKMZ9aF3tHmN4fO=w128-h176-no?authuser=0">
</button>
</div>
<div class="cell cell-6 text-center">
<input type="hidden" name="attr_fooskillassociatedaspect"/>
<input type="text" disabled name="attr_skillassociatedaspect" value="@{fooskillassociatedaspect}"/>
<input type="hidden" name="attr_fooskillassociatedaspectlvl"/>
<input type="hidden" name="attr_fooindexaspect" value="-1" />
</div>
<div class="cell cell-1">
<button class="left" type="action" name="act_nextaspect">
<img src='https://lh3.googleusercontent.com/pw/ACtC-3dM3amrbq3K0od0-KjZvqPKXBV9o6cdk4Xwh8H7nXnBPqDveu2pNRJIfbQtST4LQ_GDdS-9S6hHxBxG6ar9uW6UqJt9POJwzhSylh1z_Oi603dRv0dgZmY9VxfzbKpsvuWfJzegxGgsC4SctWeSjQj9=w128-h176-no?authuser=0'>
</button>
</div>
<div class="cell cell-6 mt-1"><p>Puissance: <span class="tech-power number-wrapper"><input type="number" name="attr_skillpwr" placeholder="0"></span></p></div>
<div class="cell cell-6 mt-1">
<input type="hidden" name="attr_foototalskilllvl" value="[[@{pathlvl} + @{fooskillassociatedaspectlvl}]]"/>
<button class="roll-tech" type="roll" name="roll_skill" value="&{template:sakura} {{subtitle=Technique :}} {{rollname=@{skillname}}} {{check=[[2d6cs0cf0 + @{foototalskilllvl}]]}} {{mincheck=[[2+ @{foototalskilllvl}]]}} {{maxcheck=[[12+ @{foototalskilllvl}]]}} {{currentinjury=@{foocurrentinjurylevel}}} {{note=Difficulté : @{skillpwr}}} {{desc=@{skilleffect}}}"/>
</div>
<textarea type="text" name="attr_skilleffect" rows="5"></textarea>
</div>
</fieldset>
</div>
</div>
</div>
<div class='sheet-magie'>
<div class="row ">
<div class="cell cell-12 text-center">
<h2 class="title"> Magie </h2>
<div class='underligne underligne-1'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm=w662-h53-no?authuser=0">
<div class="cell cell-12 text-center mt-1">
<button type="action" name="act_modaltrue" >Calculer une difficulté</button>
</div>
</div>
<div class="magies slider">
<fieldset class="repeating_magic">
<div class="row">
<div class="cell cell-3"><p>Nom :</p></div>
<div class="cell cell-8"><input type="text" name="attr_magicname"/></div>
<div class="cell cell-3 mt-1">
<p>Champ:</p>
</div>
<div class="cell cell-1 ">
<button class="right" type="action" name="act_prevfieldmagic">
<img src="https://lh3.googleusercontent.com/pw/ACtC-3dTW1t8u643KKvBvpgrnwblWKviIJ_o5ljMMCxBG204LOaj4iW9tE6VEE4BA3fobyOKKdr9Xqmevz4_ViNAJZdEjka_asiITjtiyLZciFs4X-o0UZ3h9BqGlcFcG1_9CY7HdlUu-HKMZ9aF3tHmN4fO=w128-h176-no?authuser=0">
</button>
</div>
<div class="cell cell-6 text-center">
<input type="hidden" name="attr_foomagicassociatedfield" value="bla"/>
<input type="text" disabled name="attr_magicassociatedfield" value="@{foomagicassociatedfield}"/>
<input type="hidden" name="attr_foomagicassociatedfieldlvl"/>
<input type="hidden" name="attr_fooindexfield" value="-1" />
</div>
<div class="cell cell-1">
<button class="left" type="action" name="act_nextfieldmagic">
<img src='https://lh3.googleusercontent.com/pw/ACtC-3dM3amrbq3K0od0-KjZvqPKXBV9o6cdk4Xwh8H7nXnBPqDveu2pNRJIfbQtST4LQ_GDdS-9S6hHxBxG6ar9uW6UqJt9POJwzhSylh1z_Oi603dRv0dgZmY9VxfzbKpsvuWfJzegxGgsC4SctWeSjQj9=w128-h176-no?authuser=0'>
</button>
</div>
<div class="cell cell-3 mt-1">
<p>Spécialisation:</p>
</div>
<div class="cell cell-1 ">
<button class="right" type="action" name="act_prevspemagic">
<img src="https://lh3.googleusercontent.com/pw/ACtC-3dTW1t8u643KKvBvpgrnwblWKviIJ_o5ljMMCxBG204LOaj4iW9tE6VEE4BA3fobyOKKdr9Xqmevz4_ViNAJZdEjka_asiITjtiyLZciFs4X-o0UZ3h9BqGlcFcG1_9CY7HdlUu-HKMZ9aF3tHmN4fO=w128-h176-no?authuser=0">
</button>
</div>
<div class="cell cell-6 text-center">
<input type="hidden" name="attr_foomagicassociatedspe"/>
<input type="text" disabled name="attr_magicassociatedspe" value="@{foomagicassociatedspe}"/>
<input type="hidden" name="attr_foomagicassociatedspelvl"/>
<input type="hidden" name="attr_fooindexspe" value="-1" />
</div>
<div class="cell cell-1">
<button class="left" type="action" name="act_nextspemagic">
<img src='https://lh3.googleusercontent.com/pw/ACtC-3dM3amrbq3K0od0-KjZvqPKXBV9o6cdk4Xwh8H7nXnBPqDveu2pNRJIfbQtST4LQ_GDdS-9S6hHxBxG6ar9uW6UqJt9POJwzhSylh1z_Oi603dRv0dgZmY9VxfzbKpsvuWfJzegxGgsC4SctWeSjQj9=w128-h176-no?authuser=0'>
</button>
</div>
<div class="cell cell-4 mt-1">
<p>Bonus: <span class="number-wrapper"><input type="number" name="attr_magicbonus" placeholder="0"></span></p>
</div>
<div class="cell cell-6 mt-1"><p>Majoration: <span class="tech-power number-wrapper"><input type="number" name="attr_magicdiff" placeholder="0"></span></p></div>
<div class="cell cell-2 mt-1">
<input type="hidden" name="attr_foototalmagiclvl" value="[[@{foomagicassociatedfieldlvl} + @{foomagicassociatedspelvl}]]"/>
<button class="roll-tech" type="roll" name="roll_magie" value="&{template:sakura} {{subtitle=Magie :}} {{rollname=@{magicname}}} {{check=[[2d6cs0cf0 + @{magicbonus} + @{foototalmagiclvl}]]}} {{mincheck=[[2 + @{magicbonus} + @{foototalmagiclvl}]]}} {{maxcheck=[[12 + @{magicbonus} + @{foototalmagiclvl}]]}} {{currentinjury=@{foocurrentinjurylevel}}} {{note=Difficulté : [[8 + @{magicdiff}]]}} {{desc=@{magiceffect}}}"/>
</div>
<textarea type="text" name="attr_magiceffect" rows="5"></textarea>
</div>
</fieldset>
</div>
</div>
</div>
</div>
<div class='sheet-stuff'>
<div class="text-center">
<div class="row">
<div class="cell cell-12">
<h2 class="title"> Armure </h2>
<div class='underligne underligne-2'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3f7VjhCW6tyHGIHg6hcPZQTXN_sPyjTbtaaETRxtZNKb1ONEJgdc9gtatciDX93ZQTzCjae8G6H1R_aCw-FzPIvbFmV7OhphmNDlyXw-PIWOG5vw7q3K3OJyjwqLWZ6TwePB0aNK8PFdDeMXF904XVs=w851-h83-no?authuser=0">
</div>
<div class="text-left armor">
<fieldset class="repeating_armor">
<div class="row no-wrap">
<div class="cell cell-4">
<input type="text" name="attr_armorname" placeholder="Nom de l'armure">
</div>
<div class="cell cell-4">
<p class="mt-2">Encaissement : <input class="stuff-number" type="number" name="attr_armordefence" placeholder="0"></p>
</div>
<div class="cell cell-2">
<p class="mt-2">Malus : <input class="stuff-number" type="number" name="attr_armormalus" placeholder="0"></p>
</div>
<div class="cell cell-2">
<p class="checkbox mt-1">
<label>
Equipé :
<input type="checkbox" name="attr_armorequiped" value="1" checked="false"/>
<span>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3cEcDQYsPArDv3lAC7zEA2vWSlNmXF3qFgOiVx9Fn15Ylmub6JNp3LX0-3DRdW7akaA_bTCDQQIULpsnsn_kMDIoQiduWIjXopdsyZp-dZupAkGXxGoF_lv6Ku7wjeBPDUQ6wvmaVQIaQewHQwlrtjwVA=s79-no?authuser=0">
</span>
</label>
</p>
</div>
</div>
</fieldset>
</div>
<h2 class="title mt-2"> Armes </h2>
<div class='underligne underligne-2'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3f7VjhCW6tyHGIHg6hcPZQTXN_sPyjTbtaaETRxtZNKb1ONEJgdc9gtatciDX93ZQTzCjae8G6H1R_aCw-FzPIvbFmV7OhphmNDlyXw-PIWOG5vw7q3K3OJyjwqLWZ6TwePB0aNK8PFdDeMXF904XVs=w851-h83-no?authuser=0">
</div>
<div class=" text-left weapon">
<fieldset class="repeating_weapon">
<div class="row nowrap weapon-wrapper">
<div class='separator'>
<img src="https://imgsrv.roll20.net?src=https%3A//lh3.googleusercontent.com/pw/ACtC-3c3ENhJzSMnALDWpDDtlFtx7B4Rqhn8LR5YGlZlabABgw_YSAdXHPcVEtAPomSFhKimZgugjGQ2ABvkpKQLj91_JJOSMYyyTyPnNoPsQc9WoJk8a4dycAzb8eefo70c_71KzCVldfiyXvrO0-gcdwPm%3Dw662-h53-no%3Fauthuser%3D0">
</div>
<div class='cell cell-9'>
<div class="row nowrap weapon-wrapper mt-1">
<div class="cell cell-6">
</div>
<div class="cell cell-2">
<p class="dgt-p">Dégats </p>
</div>
<div class="cell cell-2">
<p> Bonus toucher </p>
</div>
<div class="cell cell-2">
<p> Bonus dégâts </p>
</div>
</div>
<div class="row nowrap">
<div class="cell cell-6">
<span><input type="text" name="attr_weaponname"></span>
</div>
<div class="cell cell-2">
<span class="dgt-p"><input class="stuff-number" type="number" name="attr_dgt" placeholder="0" /></span>
</div>
<div class="cell cell-2">
<span><input class="stuff-number" type="number" name="attr_atkbonus" placeholder="0"/></span>
</div>
<div class="cell cell-2">
<span><input class="stuff-number" type="number" name="attr_dmgbonus" placeholder="0"/></span>
</div>
</div>
<div class="row nowrap">
<div class="cell cell-6 text-center">
<p class="mt-1"> Champ </p>
</div>
<div class="cell cell-6 text-center">
<p class="mt-1"> Spécialité </p>
</div>
</div>
<div class="row nowrap slider">
<div class="cell cell-1 ">
<button class="right" type="action" name="act_prevfieldweapon">
<img src="https://lh3.googleusercontent.com/pw/ACtC-3dTW1t8u643KKvBvpgrnwblWKviIJ_o5ljMMCxBG204LOaj4iW9tE6VEE4BA3fobyOKKdr9Xqmevz4_ViNAJZdEjka_asiITjtiyLZciFs4X-o0UZ3h9BqGlcFcG1_9CY7HdlUu-HKMZ9aF3tHmN4fO=w128-h176-no?authuser=0">
</button>
</div>
<div class="cell cell-4 text-center">
<input type="hidden" name="attr_fooweaponassociatedfield"/>
<input type="text" disabled name="attr_weaponassociatedfield" value="@{fooweaponassociatedfield}"/>
<input type="hidden" name="attr_fooweaponassociatedfieldlvl" value="0"/>
<input type="hidden" name="attr_fooindexfield" value="-1" />
</div>
<div class="cell cell-1">
<button class="left" type="action" name="act_nextfieldweapon">
<img src='https://lh3.googleusercontent.com/pw/ACtC-3dM3amrbq3K0od0-KjZvqPKXBV9o6cdk4Xwh8H7nXnBPqDveu2pNRJIfbQtST4LQ_GDdS-9S6hHxBxG6ar9uW6UqJt9POJwzhSylh1z_Oi603dRv0dgZmY9VxfzbKpsvuWfJzegxGgsC4SctWeSjQj9=w128-h176-no?authuser=0'>
</button>
</div>
<div class="cell cell-1 ">
<button class="right" type="action" name="act_prevspeweapon">
<img src="https://lh3.googleusercontent.com/pw/ACtC-3dTW1t8u643KKvBvpgrnwblWKviIJ_o5ljMMCxBG204LOaj4iW9tE6VEE4BA3fobyOKKdr9Xqmevz4_ViNAJZdEjka_asiITjtiyLZciFs4X-o0UZ3h9BqGlcFcG1_9CY7HdlUu-HKMZ9aF3tHmN4fO=w128-h176-no?authuser=0">
</button>
</div>
<div class="cell cell-4 text-center">
<input type="hidden" name="attr_fooweaponassociatedspe"/>
<input type="text" disabled name="attr_weaponassociatedspe" value="@{fooweaponassociatedspe}"/>
<input type="hidden" name="attr_fooweaponassociatedspelvl" value="0"/>
<input type="hidden" name="attr_fooweaponassociatedspelvlbonus" value="0"/>
<input type="hidden" name="attr_fooindexspe" value="-1" />
</div>
<div class="cell cell-1">
<button class="left" type="action" name="act_nextspeweapon">
<img src='https://lh3.googleusercontent.com/pw/ACtC-3dM3amrbq3K0od0-KjZvqPKXBV9o6cdk4Xwh8H7nXnBPqDveu2pNRJIfbQtST4LQ_GDdS-9S6hHxBxG6ar9uW6UqJt9POJwzhSylh1z_Oi603dRv0dgZmY9VxfzbKpsvuWfJzegxGgsC4SctWeSjQj9=w128-h176-no?authuser=0'>
</button>
</div>
</div>
</div>
<div class="cell cell-2 mt-1">
<p> Notes </p>
<textarea name='attr_weaponnotes' rows="5"></textarea>
</div>
<div class='cell cell-1'>
<input type="hidden" name="attr_foototalweaponrollbonus" value="[[@{atkbonus}+@{fooweaponassociatedfieldlvl}+@{fooweaponassociatedspelvl}+@{fooweaponassociatedspelvlbonus}]]"/>
<input type="hidden" name="attr_foototalweapondmg" value="@{dgt} + @{dmgbonus}" />
<button class="roll-tech" type="roll" name="roll_tech" value="&{template:sakura} {{subtitle= @{character_name} attaque avec @{weaponname} :}} {{check=[[2d6cs0cf0 + @{foototalweaponrollbonus}]]}} {{mincheck=[[2+@{foototalweaponrollbonus}]]}} {{maxcheck=[[12+@{foototalweaponrollbonus}]]}} {{desc=@{weaponnotes}}} {{note=Dégats de l'arme : @{foototalweapondmg}}}"/>
</div>
</div>
</fieldset>
</div>
</div>
</div>
</div>
</div>
<div class='sheet-info'>
<div class="text-center">
<h2 class="title"> Divers </h2>
<div class='underligne underligne-2'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3f7VjhCW6tyHGIHg6hcPZQTXN_sPyjTbtaaETRxtZNKb1ONEJgdc9gtatciDX93ZQTzCjae8G6H1R_aCw-FzPIvbFmV7OhphmNDlyXw-PIWOG5vw7q3K3OJyjwqLWZ6TwePB0aNK8PFdDeMXF904XVs=w851-h83-no?authuser=0">
</div>
<p class="mt-1"> Equipements :</p>
<textarea name='attr_stuff' rows="6"></textarea>
<p class="mt-1"> Notes :</p>
<textarea name='attr_notes' rows="6"></textarea>
<p class="mt-1"> Historique :</p>
<textarea name='attr_background' rows="6"></textarea>
</div>
</div>
</div>
</div>
<input type="hidden" name="attr_foomaxfield" value="0" />
<input type="hidden" name="attr_foocurrentinjurylevel" value="" />
<rolltemplate class="sheet-rolltemplate-sakura">
<div class="sheet-template-container">
{{#subtitle}}
<div class="sheet-template-row">{{subtitle}}</div>
{{/subtitle}}
<div class="sheet-template-header">
<h3>{{rollname}}</h3>
</div>
<div class="sheet-template-row">
<!-- critical success -->
{{#rollTotal() check maxcheck}}
<span class="roll-result fullcrit">
{{/rollTotal() check maxcheck}}
<!-- critical fail -->
{{#rollTotal() check mincheck}}
<span class="roll-result fullfail">
{{/rollTotal() check mincheck}}
<!-- other where cs & cf can happen -->
{{#^rollTotal() check maxcheck}}
{{#^rollTotal() check mincheck}}
<span class="roll-result">
{{/^rollTotal() check mincheck}}
{{/^rollTotal() check maxcheck}}
{{^maxcheck}}{{^mincheck}}
<span class="roll-result">
{{/mincheck}}{{/maxcheck}}
{{check}}</span>
</div>
{{#currentinjury}}
<div class="sheet-template-row sheet-roll-injury">Malus de blessures: {{currentinjury}}</div>
{{/currentinjury}}
{{#desc}}
<div class="sheet-template-row">
<span class="sheet-template-desc">{{desc}}</span>
</div>
{{/desc}}
{{#note}}
<div class="sheet-template-row">
<p class="sheet-template-note"><small>{{note}}</small></p>
</div>
{{/note}}
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-sakura-chatmenu">
{{content}}
</rolltemplate>
<!--------------------------- MODAL ------------------------------------>
<input type="hidden" class="modalvalue" name="attr_modal" value="modalfalse" />
<div class="modal">
<button type="action" name="act_modalfalse" class="close-button" >
<img src='https://lh3.googleusercontent.com/pw/ACtC-3eTbiQ8E8mWTtrCnoXLPuu8PoB50_PtbO330J-pFQ9nxva1M5hcJgqNIay_Xb2Ss45b0D4aamWFTG-ECjSdZ06exYXZrxK3kTEDYrA8nPC7KJ6CrNPnsV4ka8a8lLalvNa0dmXReqaEYqZKZjLAPNN_vg=w55-h54-no?authuser=0'>
</button>
<div class="row mt-1">
<div class="cell cell-8">
<h2 class="title mt-1">Calcul de Technique ou Magie</h2>
<div class='text-center underligne underligne-2'>
<img src="https://lh3.googleusercontent.com/pw/ACtC-3f7VjhCW6tyHGIHg6hcPZQTXN_sPyjTbtaaETRxtZNKb1ONEJgdc9gtatciDX93ZQTzCjae8G6H1R_aCw-FzPIvbFmV7OhphmNDlyXw-PIWOG5vw7q3K3OJyjwqLWZ6TwePB0aNK8PFdDeMXF904XVs=w851-h83-no?authuser=0">
</div>
</div>
<div class="cell cell-4 score">
<span class="number-wrapper path-wrapper"><input type='hidden' name='attr_modalpower' value="0" ><input type="number" name="attr_modalpowerFake" placeholder="0" value="@{modalpower}" disabled></span>
</div>
</div>
<div class="row">
<div class='cell cell-2 mt-1'>
<p>Portée de la Technique</p>
</div>
<div class='cell cell-1 mt-1'>
<label><input type="radio" name="attr_modalrange" value="0" checked> <span class="reset"> &times; </span></label>
</div>
<div class='cell cell-9 mt-1'>
<div class="row">
<div class="cell">
<label><input type="radio" name="attr_modalrange" value="0"> <span> Contact </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalrange" value="1"> <span> 3 mètres </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalrange" value="2"> <span> 10 mètres </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalrange" value="3"> <span> 30 mètres </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalrange" value="4"> <span> 50 mètres </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalrange" value="5"> <span> 100 mètres </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalrange" value="6"> <span> À vue </span></label>
</div>
</div>
</div>
<div class='cell cell-2 mt-1'>
<p>Durée de la Technique</p>
</div>
<div class="cell cell-1 mt-1">
<label><input type="radio" name="attr_modaltime" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class='cell cell-9 mt-1'>
<div class="row ">
<div class="cell">
<label><input type="radio" name="attr_modaltime" value="0"> <span> Instantatée/1 action </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltime" value="1"> <span> 1 tour </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltime" value="2"> <span> 3 tours </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltime" value="3"> <span> 5 tours </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltime" value="4"> <span> 1 scène </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltime" value="5"> <span> 1 jour </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltime" value="6"> <span> 1 semaine </span></label>
</div>
</div>
</div>
<div class='cell cell-2 mt-1'>
<p>Dégâts/soin</p>
</div>
<div class="cell cell-1 mt-1">
<label><input type="radio" name="attr_modalvalue" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class='cell cell-9 mt-1'>
<div class="row">
<div class="cell">
<label><input type="radio" name="attr_modalvalue" value="0"> <span> 1 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalvalue" value="1"> <span> 2 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalvalue" value="2"> <span> 3 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalvalue" value="3"> <span> 5 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalvalue" value="4"> <span> 7 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalvalue" value="5"> <span> 10 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalvalue" value="6"> <span> 15 </span></label>
</div>
</div>
</div>
<div class='cell cell-2 mt-1'>
<p>Cibles</p>
</div>
<div class='cell cell-1 mt-1'>
<label><input type="radio" name="attr_modaltarget" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class='cell cell-9 mt-1'>
<div class="row">
<div class="cell">
<label><input type="radio" name="attr_modaltarget" value="0"> <span> Soi-même </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltarget" value="1"> <span> 1 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltarget" value="2"> <span> 2 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltarget" value="3"> <span> 3 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltarget" value="4"> <span> 4 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltarget" value="5"> <span> 5 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltarget" value="6"> <span> 6 </span></label>
</div>
</div>
</div>
<div class='cell cell-2 mt-1'>
<p>Bonus/ Malus </p>
</div>
<div class='cell cell-1 mt-1'>
<label><input type="radio" name="attr_modalbonus" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class='cell cell-9 mt-1'>
<div class="row">
<div class="cell">
<label><input type="radio" name="attr_modalbonus" value="0"> <span> 1 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalbonus" value="1"> <span> 2 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalbonus" value="2"> <span> 3 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalbonus" value="3"> <span> 4 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalbonus" value="4"> <span> 5 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalbonus" value="5"> <span> 6 </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalbonus" value="6"> <span> 7 </span></label>
</div>
</div>
</div>
<div class='cell cell-2 mt-1'>
<p>Invocation</p>
</div>
<div class='cell cell-1 mt-1'>
<label><input type="radio" name="attr_modalinvoc" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class='cell cell-9 mt-1'>
<div class="row">
<div class="cell">
<label><input type="radio" name="attr_modalinvoc" value="0"> <span> Figurant </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalinvoc" value="2"> <span> Second rôle </span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modalinvoc" value="5"> <span> Premier rôle </span></label>
</div>
</div>
</div>
<div class='cell cell-2 mt-1'>
<p>Spécial</p>
</div>
<div class='cell cell-10 mt-1'>
<div class="row">
<div class="cell cell-1">
<label><input type="radio" name="attr_modaltransformationt" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class= 'cell cell-10'>
<h3 class="title mt-2"> Transformation Technique </h3>
<div class='row'>
<div class="cell">
<label><input type="radio" name="attr_modaltransformationt" value="2"> <span> transformation simple</span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltransformationt" value="5"> <span> transformation importante</span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltransformationt" value="7"> <span> transformation complète</span></label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="cell cell-1">
<label><input type="radio" name="attr_modaltransformationm" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class= 'cell cell-10'>
<h3 class="title mt-2"> Transformation Magique </h3>
<div class='row'>
<div class="cell">
<label><input type="radio" name="attr_modaltransformationm" value="2"> <span> transformation simple</span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltransformationm" value="6"> <span> transformation importante</span></label>
</div>
<div class="cell">
<label><input type="radio" name="attr_modaltransformationm" value="10"> <span> transformation complète</span></label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="cell cell-1">
<label><input type="radio" name="attr_modalpurif" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class="cell cell-10">
<h3 class="title mt-2"> Autres </h3>
<label><input type="radio" name="attr_modalpurif" value="2"> <span> Purification </span></label>
</div>
</div>
<div class="row">
<div class="cell cell-1">
<label><input type="radio" name="attr_modaldiff" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class="cell cell-10">
<label><input type="radio" name="attr_modaldiff" value="2"> <span> Effet différé </span></label>
</div>
</div>
<div class="row">
<div class="cell cell-1">
<label><input type="radio" name="attr_modalench" value="0" checked> <span class="reset"> &times; </span> </label>
</div>
<div class="cell cell-10">
<label><input type="radio" name="attr_modalench" value="10"> <span> Enchantement </span></label>
</div>
</div>
</div>
</div>
</div>
<!--------------------------- End MODAL ------------------------------------>
<script type="text/worker">
// TABS
const buttonlist = ["field","advantage","path", "info", "stuff", "magie"];
buttonlist.forEach(button => {
on(`clicked:${button}`, function() {
setAttrs({
sheettab: button
});
});
});
const buttonlist2 = ["modalfalse","modaltrue"];
buttonlist2.forEach(button => {
on(`clicked:${button}`, function() {
setAttrs({
modal: button
});
});
});
function negArray(arr) {
var dup = arr;
return new Proxy(dup, {
get(target, prop) {
if (!isNaN(prop)) {
prop = parseInt(prop, 10);
if (prop < 0) {
prop += target.length;
}
}
return target[prop];
}
});
}
// TABS END
function updateRepeatingRelatedAttrFromRepeating(monitoredSectionName, targetSectionName, attrCorrelationName, id, targetProp, value){
getSectionIDs(monitoredSectionName, function(idarray){
let index = -1;
for(const i in idarray)
{
if(idarray[i]==id)
{
getSectionIDs(targetSectionName, function(specidarray){
for(const j in specidarray)
{
getAttrs(["repeating_"+targetSectionName+"_"+specidarray[j]+"_"+attrCorrelationName],
function(x){
if(x["repeating_"+targetSectionName+"_"+specidarray[j]+"_"+attrCorrelationName]==i)
{
setObj = {};
setObj["repeating_"+targetSectionName+"_"+specidarray[j]+"_"+targetProp] = value;
setAttrs(setObj);
}
});
}
});
break;
}
}
});
}
function getRepeatingValue(targetRepeatingIndexName, sourceRepeatingName, directionalcheck){
getSectionIDs(sourceRepeatingName, function(idarray){
var setObj = {};
if(idarray.length==0)return;
if(idarray.length>1){
var newIndex = directionalcheck(idarray);
setObj[targetRepeatingIndexName] = newIndex;
}
else
{
setObj[targetRepeatingIndexName] = 0;
}
setAttrs(setObj);
});
}
function getNextRepeatingValue(targetRepeatingIndexName, sourceRepeatingName)
{
getAttrs([targetRepeatingIndexName], function(values){
let valIndex = values[targetRepeatingIndexName];
getRepeatingValue(targetRepeatingIndexName, sourceRepeatingName, function(sourceArray){
let val = parseInt(valIndex,10);
console.log("val : "+val);
console.log("max : "+(sourceArray.length-1));
if(val>=(sourceArray.length-1)){val=0;}
else { val=val+1; }
return val;
});
});
}
function getPrevRepeatingCorrelatedValue(containingSectionName,changingIndexName,fixedIndexName,browsedSectionName)
{
getAttrs(["repeating_"+containingSectionName+"_"+changingIndexName,"repeating_"+containingSectionName+"_"+fixedIndexName], function(values){
let speIndex = values["repeating_"+containingSectionName+"_"+changingIndexName];
let fieldIndex = values["repeating_"+containingSectionName+"_"+fixedIndexName];
getSectionIDs(browsedSectionName, function(idarray){
if(idarray.length==0)return;
if(idarray.length>1){
var val = parseInt(speIndex,10);
let correlation = fieldIndex;
getAttrs(idarray.map(elt=>"repeating_"+browsedSectionName+"_"+elt+"_"+fixedIndexName),function(x){
let length = idarray.length;
negX = negArray(idarray);
for(let i=length-1;i>=0;i--){
var nIndex = speIndex-length+i;
if(x["repeating_"+browsedSectionName+"_"+negX[nIndex]+"_"+fixedIndexName]==correlation)
{
val = parseInt(nIndex,10);
break;
}
}
var setObj = {};
setObj["repeating_"+containingSectionName+"_"+changingIndexName] = val<0?val+length:val;
setAttrs(setObj);
});
}
else
{
var setObj = {};
setObj["repeating_"+containingSectionName+"_"+changingIndexName] = 0;
setAttrs(setObj);
}
});
});
}
function getNextRepeatingCorrelatedValue(containingSectionName,changingIndexName,fixedIndexName,browsedSectionName){
getAttrs(["repeating_"+containingSectionName+"_"+changingIndexName,"repeating_"+containingSectionName+"_"+fixedIndexName], function(values){
let speIndex = values["repeating_"+containingSectionName+"_"+changingIndexName];
let fieldIndex = values["repeating_"+containingSectionName+"_"+fixedIndexName];
getSectionIDs(browsedSectionName, function(idarray){
if(idarray.length==0)return;
if(idarray.length>1){
var val = parseInt(speIndex,10);
let correlation = fieldIndex;
getAttrs(idarray.map(elt=>"repeating_"+browsedSectionName+"_"+elt+"_"+fixedIndexName),function(x){
let length = idarray.length;
//negX = idarray;// negArray(idarray);
for(let i=0;i<length;i++){
var nIndex = speIndex+i+1;
if(nIndex>=length) nIndex = speIndex-length+i+1;
if(x["repeating_"+browsedSectionName+"_"+idarray[nIndex]+"_"+fixedIndexName]==correlation)
{
val = parseInt(nIndex,10);
break;
}
}
var setObj = {};
setObj["repeating_"+containingSectionName+"_"+changingIndexName] = val;
setAttrs(setObj);
});
}
else
{
var setObj = {};
setObj["repeating_"+containingSectionName+"_"+changingIndexName] = 0;
setAttrs(setObj);
}
});
});
}
function getPrevRepeatingValue(targetRepeatingIndexName, sourceRepeatingName)
{
getAttrs([targetRepeatingIndexName], function(values){
let valIndex = values[targetRepeatingIndexName];
getRepeatingValue(targetRepeatingIndexName, sourceRepeatingName, function(sourceArray){
let val = parseInt(valIndex,10);;
if(val<1){val=sourceArray.length-1;}
else { val=val-1;}
return val;
});
});
}
function fooRepeatingRelatedIndexChangeCallback(targetRepeatingIndexName,
sourceRepeatingName,
sourceSuffixList,
targetAttrList)
{
if(sourceSuffixList.length!==targetAttrList.length)
{
console.log("Lists doesn't have the same length.");
return;
}
getAttrs([targetRepeatingIndexName], function(values){
let index = values[targetRepeatingIndexName];
getSectionIDs(sourceRepeatingName, function(idarray){
getAttrs(sourceSuffixList.map(elt=>`repeating_${sourceRepeatingName}_${idarray[index]}_${elt}`), function(values){
setObj = {};
for(let i=0;i<sourceSuffixList.length;i++){
setObj[targetAttrList[i]] = values[`repeating_${sourceRepeatingName}_${idarray[index]}_${sourceSuffixList[i]}`];
}
setAttrs(setObj);
});
});
});
}
on("clicked:repeating_weapon:nextspeweapon", function(e){
getNextRepeatingCorrelatedValue("weapon","fooindexspe","fooindexfield","spec");
});
on("clicked:repeating_weapon:prevspeweapon", function(e){
getPrevRepeatingCorrelatedValue("weapon","fooindexspe","fooindexfield","spec");
});
on("clicked:repeating_magic:nextspemagic", function(e){
getNextRepeatingCorrelatedValue("magic","fooindexspe","fooindexfield","spec");
});
on("clicked:repeating_magic:prevspemagic", function(e){
getPrevRepeatingCorrelatedValue("magic","fooindexspe","fooindexfield","spec");
});
on("change:repeating_field:fieldname", function(e){
let changedID = e.sourceAttribute.split('_')[2];
updateRepeatingRelatedAttrFromRepeating("field", "spec", "fooindexfield", changedID, "foospecassociatedfield", e.newValue);
updateRepeatingRelatedAttrFromRepeating("field", "weapon", "fooindexfield", changedID, "fooweaponassociatedfield", e.newValue);
updateRepeatingRelatedAttrFromRepeating("field", "magic", "fooindexfield", changedID, "foomagicassociatedfield", e.newValue);
});
on("change:repeating_field:fieldlvl", function(e){
let changedID = e.sourceAttribute.split('_')[2];
updateRepeatingRelatedAttrFromRepeating("field", "spec", "fooindexfield", changedID, "foospecassociatedfieldlvl", e.newValue);
updateRepeatingRelatedAttrFromRepeating("field", "weapon", "fooindexfield", changedID, "fooweaponassociatedfieldlvl", e.newValue);
updateRepeatingRelatedAttrFromRepeating("field", "magic", "fooindexfield", changedID, "foomagicassociatedfieldlvl", e.newValue);
});
on("change:repeating_field:fieldlvl", function() {
getSectionIDs("field", function(idarray) {
let max = 0;
let attridarray = [];
for(var i=0; i < idarray.length; i++) {
attridarray.push("repeating_field_"+idarray[i]+"_fieldlvl");
}
getAttrs(attridarray, function(x){
for(var val in x){
let value = x[val];
if(max<value){
max = value;
}
}
setAttrs({foomaxfield: max});
});
});
});
on("change:foomaxfield", function(e){
setAttrs({fooattackperturn : Math.ceil(e.newValue/2)});
});
on("change:repeating_spec:specname", function(e){
let changedID = e.sourceAttribute.split('_')[2];
updateRepeatingRelatedAttrFromRepeating("spec", "weapon", "fooindexspe", changedID, "fooweaponassociatedspe", e.newValue);
updateRepeatingRelatedAttrFromRepeating("spec", "magic", "fooindexspe", changedID, "foomagicassociatedspe", e.newValue);
});
on("change:repeating_spec:speclvl", function(e){
let changedID = e.sourceAttribute.split('_')[2];
updateRepeatingRelatedAttrFromRepeating("spec", "weapon", "fooindexspe", changedID, "fooweaponassociatedspelvl", e.newValue);
updateRepeatingRelatedAttrFromRepeating("spec", "magic", "fooindexspe", changedID, "foomagicassociatedspelvl", e.newValue);
});
on("change:repeating_spec:specmodif", function(e){
let changedID = e.sourceAttribute.split('_')[2];
updateRepeatingRelatedAttrFromRepeating("spec", "weapon", "fooindexspe", changedID, "fooweaponassociatedspelvlbonus", e.newValue);
});
on("clicked:repeating_spec:nextfield", function(eventInfo) {
getNextRepeatingValue("repeating_spec_fooindexfield", "field");
});
on("clicked:repeating_spec:prevfield", function(eventInfo) {
getPrevRepeatingValue("repeating_spec_fooindexfield", "field");
});
on("clicked:repeating_skill:nextaspect", function(eventInfo) {
getNextRepeatingValue("repeating_skill_fooindexaspect", "aspect");
});
on("clicked:repeating_skill:prevaspect", function(eventInfo) {
getPrevRepeatingValue("repeating_skill_fooindexaspect", "aspect");
});
on("change:repeating_aspect:aspectlvl", function(e){
let changedID = e.sourceAttribute.split('_')[2];
updateRepeatingRelatedAttrFromRepeating("aspect", "skill", "fooindexaspect", changedID, "fooskillassociatedaspectlvl", e.newValue);
});
on("change:repeating_aspect:aspectname", function(e){
let changedID = e.sourceAttribute.split('_')[2];
updateRepeatingRelatedAttrFromRepeating("aspect", "skill", "fooindexaspect", changedID, "fooskillassociatedaspect", e.newValue);
});
on("change:repeating_spec:fooindexfield", function(e){
fooRepeatingRelatedIndexChangeCallback("repeating_spec_fooindexfield", "field", ["fieldname", "fieldlvl"], ["repeating_spec_foospecassociatedfield", "repeating_spec_foospecassociatedfieldlvl"]);
});
on("change:repeating_skill:fooindexaspect", function(e){
fooRepeatingRelatedIndexChangeCallback("repeating_skill_fooindexaspect", "aspect", ["aspectname", "aspectlvl"], ["repeating_skill_fooskillassociatedaspect", "repeating_tech_fooskillassociatedaspectlvl"]);
});
on("change:repeating_field:fieldiscombatrelated", function(){
getSectionIDs("field", function(idarray){
let fieldidarray = [];
for(var i = 0; i < idarray.length; i++)
{
fieldidarray.push("repeating_field_"+idarray[i]+"_fieldiscombatrelated");
}
getAttrs(fieldidarray, function(x){
let combatfieldarray = [];
for(var val in x){
let isChecked = x[val]=="1";
let id = val.split('_')[2];
if(isChecked==true)
{
combatfieldarray.push("repeating_field_"+id+"_fieldlvl");
}
}
getAttrs(combatfieldarray, function(xLvl){
let initBonus = 0;
for(var val in xLvl)
{
initBonus = initBonus + parseInt(xLvl[val],10);
}
setAttrs({fooinitbonus: initBonus});
});
});
});
});
on("change:repeating_armor:armorequiped", function(e){
if(e.sourceType=="player")
{
setAttrs({fooinitmalus: 0},function(){
if(e.newValue=="1")
{
let id = e.sourceAttribute.split('_')[2];
getSectionIDs("armor", function(idarray){
var setObj = {};
for(var i = 0; i<idarray.length; i++)
{
setObj["repeating_armor_"+idarray[i]+"_armorequiped"] = 0;
}
setAttrs(setObj,function(){
setObj = {};
setObj["repeating_armor_"+id+"_armorequiped"] = 1;
setAttrs(setObj,function(){
getAttrs(["repeating_armor_"+id+"_armordefence","repeating_armor_"+id+"_armormalus"],function(values){
setAttrs({
foodefence: values["repeating_armor_"+id+"_armordefence"],
fooinitmalus: values["repeating_armor_"+id+"_armormalus"]
});
});
});
});
});
}
});
}
});
on("change:repeating_armor:armordefence", function(e){
getAttrs(["repeating_armor_armordefence","repeating_armor_armorequiped"], function(values){
if(values["repeating_armor_armorequiped"]=="1")
{
setAttrs({foodefence : values["repeating_armor_armordefence"]});
}
});
});
on("change:repeating_armor:armormalus", function(e){
getAttrs(["repeating_armor_armormalus","repeating_armor_armorequiped"], function(values){
if(values["repeating_armor_armorequiped"]=="1")
{
setAttrs({fooinitmalus : values["repeating_armor_armormalus"]});
}
});
});
on("change:injury_contusions change:injury_meurtrissures change:injury_legeres change:injury_moderes change:injury_graves change:injury_mort change:injury_inconscient", function(e){
if(e.sourceType=="player"){
let injuryArray = ["injury_contusions","injury_meurtrissures","injury_legeres","injury_moderes","injury_graves","injury_mort","injury_inconscient"];
let injuryLevel = ["","-1","-3","-5","-7","+3/-9","Inconscient"];
let changedLevel = injuryArray.indexOf(e.sourceAttribute);
let maxed = injuryArray.slice(0, changedLevel);
if(maxed.length>0)
{
setMaxed = {};
for(var m in maxed)
{
setMaxed[maxed[m]]=5;
}
setAttrs(setMaxed);
}
if(changedLevel+1<=injuryArray.length){
let minied = injuryArray.slice(changedLevel+1,injuryArray.length);
setMinied = {};
for(var m in minied)
{
setMinied[minied[m]]=0;
}
setAttrs(setMinied);
}
setAttrs({foocurrentinjurylevel: injuryLevel[changedLevel]});
}
});
on("clicked:repeating_weapon:nextfieldweapon", function(eventInfo) {
getNextRepeatingValue("repeating_weapon_fooindexfield", "field");
});
on("clicked:repeating_weapon:prevfieldweapon", function(eventInfo) {
getPrevRepeatingValue("repeating_weapon_fooindexfield", "field");
});
on("clicked:repeating_magic:nextfieldmagic", function(eventInfo) {
getNextRepeatingValue("repeating_magic_fooindexfield", "field");
});
on("clicked:repeating_magic:prevfieldmagic", function(eventInfo) {
getPrevRepeatingValue("repeating_magic_fooindexfield", "field");
});
on("change:repeating_weapon:fooindexfield", function(e){
fooRepeatingRelatedIndexChangeCallback("repeating_weapon_fooindexfield", "field", ["fieldname", "fieldlvl"], ["repeating_weapon_fooweaponassociatedfield", "repeating_weapon_fooweaponassociatedfieldlvl"]);
});
on("change:repeating_weapon:fooindexspe", function(e){
fooRepeatingRelatedIndexChangeCallback("repeating_weapon_fooindexspe", "spec", ["specname", "speclvl", "specmodif"], ["repeating_weapon_fooweaponassociatedspe", "repeating_weapon_fooweaponassociatedspelvl", "repeating_weapon_fooweaponassociatedspelvlbonus"]);
});
on("change:repeating_magic:fooindexfield", function(e){
fooRepeatingRelatedIndexChangeCallback("repeating_magic_fooindexfield", "field", ["fieldname", "fieldlvl"], ["repeating_magic_foomagicassociatedfield", "repeating_magic_foomagicassociatedfieldlvl"]);
});
on("change:repeating_magic:fooindexspe", function(e){
fooRepeatingRelatedIndexChangeCallback("repeating_magic_fooindexspe", "spec", ["specname", "speclvl", "specmodif"], ["repeating_magic_foomagicassociatedspe", "repeating_magic_foomagicassociatedspelvl", "repeating_magic_foomagicassociatedspelvlbonus"]);
});
on("change:modalrange change:modaltime change:modalvalue change:modaltarget change:modaldiff change:modalench change:modalbonus change:modalinvoc change:modalpurif change:modaltransformationm change:modaltransformationt", function(e){
getAttrs(["modalrange","modaltime","modalvalue","modalench","modaldiff", "modaltarget","modalbonus","modalinvoc", "modalpurif", "modaltransformationt", "modaltransformationm"],function(x){
let modalvalue = parseInt(x.modalrange, 10)
+ parseInt(x.modaltime, 10)
+ parseInt(x.modaltarget, 10)
+ parseInt(x.modalvalue, 10)
+ parseInt(x.modalbonus, 10)
+ parseInt(x.modalinvoc, 10)
+ parseInt(x.modalpurif, 10)
+ parseInt(x.modaldiff, 10)
+ parseInt(x.modalench, 10)
+ parseInt(x.modaltransformationt, 10)
+ parseInt(x.modaltransformationm, 10);
setAttrs({
modalpower: modalvalue
});
});
});
</script>