Skip to content

Commit

Permalink
Added notes for open doors
Browse files Browse the repository at this point in the history
  • Loading branch information
DBFBlackbull committed Jan 10, 2024
1 parent 9bc54ad commit 4f072fc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
20 changes: 11 additions & 9 deletions ADnD_2E_Revised/2ESheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ <h2 style="color: black;">Changes in <span name="attr_version"></span></h2>
<div class="sheet-announce-items">
<ul style="font-style:italic">
<li>Added better description for Open Door checks</li>
<li>Added missing misc modifier for Open Door checks</li>
<li>Added notes for Head and Touch AC</li>
<li>Added notes for Touch-delivered spells</li>
<li>Added notes for wishing for ability scores</li>
Expand Down Expand Up @@ -46216,7 +46217,7 @@ <h2>Monster Sheet specific</h2>
'reference': 'p. 181',
'book': 'PHB',
'book-compendium': 'Wizard’s Spell Compendium Volume One p. 210',
'errata': 'Dungeon Master Guide p. 139+160',
'errata': 'Player’s Handbook p. 168\nDungeon Master Guide p. 139+160\nSage Advice #201 p. 45\nSage Advice #256 p. 28\nSage Advice #260 p. 23',
'damage': '',
'damage-type': '',
'healing': '',
Expand All @@ -46236,7 +46237,7 @@ <h2>Monster Sheet specific</h2>
'reference': 'p. 181',
'book': 'PHB',
'book-compendium': 'Wizard’s Spell Compendium Volume One p. 214',
'errata': 'Sage Advice #256 p. 28',
'errata': 'Dungeon Master Guide p. 139\nSage Advice #256 p. 28',
'damage': '',
'damage-type': '',
'healing': '',
Expand Down Expand Up @@ -70352,16 +70353,17 @@ <h2>Monster Sheet specific</h2>
let rollBuilder = new RollTemplateBuilder('2Echeck');
rollBuilder.push('character=@{character_name}','checkroll=[[1d20cs1cf20]]','color=blue','success=The door swings open!');

let checkTarget;
let match = values.opendoor.match(/(\d+)\((\d+)\)/);
if (!match) {
rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','checktarget=[[@{opendoor}]]','fail=The door stays shut, but you can try again.');
return printRoll(rollBuilder.string());
if (match) {
checkTarget = await extractQueryResult(`?{What kind of door?|Heavy / Stuck door,${match[1]}|Locked / Barred / Magical door,${match[2]}}`);
} else {
checkTarget = '@{opendoor}';
}
rollBuilder.push(`checktarget=[[${checkTarget}+(@{misc-mod})]]`);

let target = await extractQueryResult(`?{What kind of door?|Heavy / Stuck door,${match[1]}|Locked / Barred / Magical door,${match[2]}}`);
rollBuilder.push(`checktarget=[[${target}]]`);
if (target === match[1]) {
rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','fail=The door stays shut, but you can try again.');
if (!match || checkTarget === match[1]) {
rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','fail=The door stays shut, but you can try again with a cumulative -1 penalty for each try.');
} else {
rollBuilder.push('checkvs=Open Locked/Barred/Magically Held Doors Check','fail=The door stays shut. No further attempts can be made by @{character_name}.');
}
Expand Down
6 changes: 5 additions & 1 deletion ADnD_2E_Revised/futureIdeas.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ New weapon section that combines hit and damage
- Implement backstab
- Implement special maneuvers as written in the Fighters handbook

Add reversible spells to the list of memorized spells. Do not change the content or template.
Just add it as a name like this: "Light", "Darkness (Reverse of Light)"

Add 8th, 9th, and 10th level Priest spells (Psionic enchantments) from Dark Sun Dragon Kings

Add True Dweomers from DMGR: High-Level Campaign

Section for Wand/Staff/Rods:
- Capture initiative modifiers
- Maybe autofill?
- Maybe autofill? Could give players information they should not have.

Section for Misc magical items
- Capture initiative modifier
Expand All @@ -24,6 +27,7 @@ Update Potions to have "chugs" instead of quantity

Update Scrolls to write "Fireball scroll" instead of "Scroll of Fireball"
- Or just add the "scroll of" added to the Macro and not the name.
- Group spells on the same scroll paper somehow. Maybe a notes field, explaining what paper it is on?

Check up on Martial Arts from Complete Book of Ninjas

Expand Down
1 change: 1 addition & 0 deletions ADnD_2E_Revised/html/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ <h2 style="color: black;">Changes in <span name="attr_version"></span></h2>
<div class="sheet-announce-items">
<ul style="font-style:italic">
<li>Added better description for Open Door checks</li>
<li>Added missing misc modifier for Open Door checks</li>
<li>Added notes for Head and Touch AC</li>
<li>Added notes for Touch-delivered spells</li>
<li>Added notes for wishing for ability scores</li>
Expand Down
15 changes: 8 additions & 7 deletions ADnD_2E_Revised/javascript/sheetWorkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,16 +849,17 @@ on('clicked:opendoor-check', function (eventInfo){
let rollBuilder = new RollTemplateBuilder('2Echeck');
rollBuilder.push('character=@{character_name}','checkroll=[[1d20cs1cf20]]','color=blue','success=The door swings open!');

let checkTarget;
let match = values.opendoor.match(/(\d+)\((\d+)\)/);
if (!match) {
rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','checktarget=[[@{opendoor}]]','fail=The door stays shut, but you can try again.');
return printRoll(rollBuilder.string());
if (match) {
checkTarget = await extractQueryResult(`?{What kind of door?|Heavy / Stuck door,${match[1]}|Locked / Barred / Magical door,${match[2]}}`);
} else {
checkTarget = '@{opendoor}';
}
rollBuilder.push(`checktarget=[[${checkTarget}+(@{misc-mod})]]`);

let target = await extractQueryResult(`?{What kind of door?|Heavy / Stuck door,${match[1]}|Locked / Barred / Magical door,${match[2]}}`);
rollBuilder.push(`checktarget=[[${target}]]`);
if (target === match[1]) {
rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','fail=The door stays shut, but you can try again.');
if (!match || checkTarget === match[1]) {
rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','fail=The door stays shut, but you can try again with a cumulative -1 penalty for each try.');
} else {
rollBuilder.push('checkvs=Open Locked/Barred/Magically Held Doors Check','fail=The door stays shut. No further attempts can be made by @{character_name}.');
}
Expand Down

0 comments on commit 4f072fc

Please sign in to comment.