diff --git a/Todo and utils.txt b/Todo and utils.txt index 6112182..f0925b7 100644 --- a/Todo and utils.txt +++ b/Todo and utils.txt @@ -85,3 +85,8 @@ on("change:item_shield3_activation change:general_item_shield3", function() { }); name roll_name dice_name result threshold +/e - Test d.+(\w*).*\[\[(.*)-.*\]\] +&{template:d10skillcheck}{{name=@{character_name}} {{roll_name=$1}} {{dice_name=@{dice}}} {{result=$2}} {{threshold=[[]]}} + +/e .* @{(\w*)}.*\[(.*) -.*\)?\]\] +&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=@{$1}}} {{dice_name=@{dice}}} {{result=[[$2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[$2]]}} diff --git a/feuille_sysd10.html b/feuille_sysd10.html index d625a68..bf35ae4 100644 --- a/feuille_sysd10.html +++ b/feuille_sysd10.html @@ -1,454 +1,417 @@ -
- - - - -Points de Vie |
- - | - | |
Points de Fatigue |
- - | - | |
Dégats aggravés |
- - | - | - |
Points de compétence : |
- |
| Utilisés | -- | -
| Restants | -
| Carac | -Valeur | -Bonus | -Lancer | -|
|---|---|---|---|---|
| Force | -- | - | - | - |
| Agilité | -- | - | - | - |
| Perception | -- | - | - | - |
| Charisme | -- | - | - | - |
| Carac | -Valeur | -Bonus | -Lancer | -|
|---|---|---|---|---|
| Intelligence | -- | - | - | - |
| Volonté | -- | - | - | - |
| Psyché | -- | - | - | - |
| Chance | -- | - | - | - |
| {{name}} — {{roll_name}} | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Test au d{{dice_name}} seuil {{threshold}} | |||||||||||
| Critique ! {{result}} degrés de réussite | - {{/rollWasCrit() result}} - {{#^rollWasCrit() result}} - {{#rollGreater() result 1}} -{{result}} degrés de réussite | - {{/rollGreater() result 1}} - {{#rollBetween() result 0 1}} -{{result}} degré de réussite | - {{/rollBetween() result 0 1}} - {{#rollLess() result 0}} -{{result}} degrés d'échec | - {{/rollLess() result 0}} +
| {{name}} — {{roll_name}} | |
|---|---|
| Test au d{{dice_name}} seuil {{threshold}} | |
| Critique ! {{result}}x2 degrés de réussite | + {{/rollWasCrit() result}} + {{#^rollWasCrit() result}} {{#rollWasFumble() result}} -Échec critique ! {{result}} degrés d'échec | - {{/rollWasFumble() result}} - {{/^rollWasCrit() result}} -