Skip to content

Instantly share code, notes, and snippets.

View antonioeduardofernandes's full-sized avatar

eduFernandes antonioeduardofernandes

View GitHub Profile
//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
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 => {
//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)