This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MODULES USED: HOTBAR USES & NARRATOR TOOLS | |
//HOTBAR USES - YOU'LL NEED TO CHANGE ACTORNAME AFTER EQUAL SIGN (NO SPACES) TO FIT YOUR FELLOWSHIP ACTOR | |
//HotbarUsesGeneric | |
//ActorName=PUT_HERE_YOUR_COMMUNITY_ACTOR_NAME | |
//Available=data.eyeAwareness.value | |
let currentEye = game.actors.getName("Comitiva").data.data.eyeAwareness.value // CURRENT VALUE OF THE EYE - (YOU NEED TO CHANGE FELLOWSHIP'S NAME TO FIT YOURS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await Dialog.prompt({ | |
content: ` | |
<h1>Current Weather</h1> | |
<select id="currentWeather"> | |
<option value="noWind">No Winds</option> | |
<option value="lowWind">Low Winds</option> | |
<option value="highWind">High Winds</option> | |
</select> | |
`, | |
callback: html => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//function to use simple d12's | |
async function convertEyeOfSauron(diceResult) { | |
diceResult = Number(diceResult) | |
return diceResult === 11 ? 0 : diceResult | |
} | |
//the main journeyRoll function | |
async function journeyRoll(dicePool = "1d12", rollBonus = 0) { | |
//roll the dice |