Merge pull request #2074 from DBendit/moldvayFix

Fixing sheet worker
This commit is contained in:
Phil
2016-12-12 17:07:21 -07:00
committed by GitHub
3 changed files with 17 additions and 8 deletions
@@ -1,10 +1,18 @@
<!-- Basic D&D: Moldvay Character Sheet -->
<!-- Version 1.15 -->
<!-- Version 1.16 -->
<!-- Sheet Worker Script -->
<script type="text/worker">
on("change:MOD_STR", function() {
on("change:mod_str", function() {
updateOpenDoorsChance();
});
on("sheet:opened", function() {
updateOpenDoorsChance();
});
var updateOpenDoorsChance = function() {
getAttrs(["MOD_STR"], function(values) {
var openDoorsChance = parseInt(values.MOD_STR) || 0;
openDoorsChance += 2;
@@ -15,10 +23,10 @@ on("change:MOD_STR", function() {
openDoorsChance = 1;
}
setAttrs({
OpenDoors-chance: openDoorsChance
"OpenDoors-chance": openDoorsChance
});
});
});
};
</script>
<!-- END Sheet Worker Script -->
@@ -145,8 +153,6 @@ on("change:MOD_STR", function() {
<div class="sheet-col-1-11 sheet-ability-mod sheet-vert-middle"><input name="attr_MOD_STR" type="number" class="sheet-ability-mod" placeholder="0" value="0" /></div>
<div class="sheet-col-6-17 sheet-ability-text sheet-vert-middle">To Hit, Damage, Open doors</div>
<input type="hidden" name="attr_OpenDoors-die" value="1d6cs1cf6">
<!-- Disabling in favor of Sheet Worker -->
<!-- <input type="hidden" name="attr_OpenDoors-chance" value="[[2 + [[@{MOD_STR}]]]]"> -->
<div class="sheet-col-1-16 sheet-vert-middle"><button type='roll' name="Open Doors" value="&{template:odnd} {{stat=1}} {{name=@{Name}}} {{title=Open Doors}} {{strskill=[[@{OpenDoors-die}]]}} {{chance=[[@{OpenDoors-chance}]]}}" title="Open Doors"></button></div>
</div> <!-- END STR -->
+4 -1
View File
@@ -3,10 +3,13 @@
This is a re-creation of the "green-sheet" for the D&D Basic Moldvay Red box game. It was created for the Roll20 Moldvay Basic Contest.
## Current Version
1.15
1.16
### Changelog
#### 1.16
* Fixing sheet worker to calculate chance to open door on sheet open and STR mod change
#### 1.15
* Fixed chances for finding secret doors, listening, and finding traps, all of which were too high by 1 (e.g. 1/6 chance for all of those for non-demihumans, was 2/6)
* Fixed roll templates for the above, removing the critical successes in favor of operating properly
+1 -1
View File
@@ -4,5 +4,5 @@
"authors": "Amanda the Amazon",
"roll20userid": "565956",
"preview": "Moldvay_Basic_Sheet.png",
"instructions": "# Moldvay Character Sheet\r This sheet has both a Player sheet and a pared down Monster Sheet for the GM that is switchable via a tab at the top left of the sheet.\r\r## Player Sheet\r\r* All of the automatic roll buttons (shown as a d20 dice) should have roll templates.\r* Attack rolls now show the AC hit (they use the values from the To Hit Roll table) - No more looking up what AC you did hit!\r* All ability bonus' should be included in their automatic rolls.\r* Halflings should check the box marking 'Halfling' under Attacks, Missile in order to get the bonus' to Missile Attacks and Initiative\r* Movement must be calculated by the player using their current encumbrance and armor worn.\r\r## Monster Sheet\r\r* Monster Name and Type\r* Armor Class and Movement\r* Treasure Type and Alignment\r* Hit Die (a gmroll button is in the works for this field)\r* Number Appearing (a roll button is in the works for this field, possibly a roll template and maybe a choice between gmroll or not gmroll\r* Monster Save (roll templates are in the works for this)\r* Monster Morale (roll template is in the work for this\r* Attacks are a repeating field and you can add as many as you want - Roll Template attack button is included :)\r* Monster Notes - Add anything you like here.\r* Monster Initiative roll button is in the works-will be a roll template\r* Random Monster check roll button-this is a gmroll.\r* Random Monster check distance roll button-this is a gmroll.\r* Monster Hit AC table\r\r\r## Current Version: 1.15"
"instructions": "# Moldvay Character Sheet\r This sheet has both a Player sheet and a pared down Monster Sheet for the GM that is switchable via a tab at the top left of the sheet.\r\r## Player Sheet\r\r* All of the automatic roll buttons (shown as a d20 dice) should have roll templates.\r* Attack rolls now show the AC hit (they use the values from the To Hit Roll table) - No more looking up what AC you did hit!\r* All ability bonus' should be included in their automatic rolls.\r* Halflings should check the box marking 'Halfling' under Attacks, Missile in order to get the bonus' to Missile Attacks and Initiative\r* Movement must be calculated by the player using their current encumbrance and armor worn.\r\r## Monster Sheet\r\r* Monster Name and Type\r* Armor Class and Movement\r* Treasure Type and Alignment\r* Hit Die (a gmroll button is in the works for this field)\r* Number Appearing (a roll button is in the works for this field, possibly a roll template and maybe a choice between gmroll or not gmroll\r* Monster Save (roll templates are in the works for this)\r* Monster Morale (roll template is in the work for this\r* Attacks are a repeating field and you can add as many as you want - Roll Template attack button is included :)\r* Monster Notes - Add anything you like here.\r* Monster Initiative roll button is in the works-will be a roll template\r* Random Monster check roll button-this is a gmroll.\r* Random Monster check distance roll button-this is a gmroll.\r* Monster Hit AC table\r\r\r## Current Version: 1.16"
}