Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antonioeduardofernandes/3d1ab814cc93570472ac67517a4a09e3 to your computer and use it in GitHub Desktop.
Save antonioeduardofernandes/3d1ab814cc93570472ac67517a4a09e3 to your computer and use it in GitHub Desktop.
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 => {
let currentWeather = html.find('[id="currentWeather"]').val()
game.tables.getName(currentWeather).draw()
},
})
@DuncfordUK
Copy link

DuncfordUK commented Jun 1, 2022

await Dialog.prompt({
content:
<h1>Current Weather</h1>
<select id="currentWind">
<option value="noWind">No Winds</option>
<option value="lowWind">Low Winds</option>
<option value="highWind">High Winds</option>
</select>
<select id="currentRain">
<option value="noRain">No Rain</option>
<option value="lightRain">Light Rain</option>
<option value="heavyRain">Heavy Rain</option>
</select>
,
callback: html => {
let currentWind = html.find('[id="currentWind"]').val()
game.tables.getName(currentWind).draw()
let currentRain = html.find('[id="currentRain"]').val()
game.tables.getName(currentRain).draw()
},
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment