-
Notifications
You must be signed in to change notification settings - Fork 1
MATT Show Dialog
When triggered, prompts the selected user with a dialog box; following their input, the tile will jump to the appropriate landing.
Displays dialog with yes/no boxes. This one can be customized to have additional buttons with custom HTML; once an option has been selected the yes button still needs to be pressed to confirm it.
The yes/no buttons can only be removed from this dialog type by using a custom HTML file (see MATT-Show-Dialog#custom-html below.
Displays a message box with a check-mark that needs to be pressed before the tile will continue down the action list.
Allows custom button layouts to be made without using custom HTML. This option does not include the confirmation, so users must choose their options carefully. See Buttons below for information on adding and displaying buttons.
A unique identifier for the dialog window; this is used with the Close Dialog action to remotely close the dialog window.
Text that displays in the header of the confirmation window.
If checked, a player closing the window will jump the action thread to the landing specified in the On No Go To
field.
Text that appears in the body of the confirmation window.
The text field here accepts handlebar expressions, which can be used to customize the message based on existing data.
-
{{actor.name}}
Sends the name of the actor of the triggering token to the dialog. -
{{scene.name}}
Sends the name of the scene to the dialog. -
{{token.name}}
Sends the name of the triggering token to the dialog. -
{{user.name}}
Sends the name of the triggering user to the dialog. -
{{value.items.0.name}}
If used following an Add Item action, it will send the item name to the dialog. -
{{variable.valuename}}
References a stored variable.
This field accepts HTML that can be used to customize the dialog and display more choices. Just place the HTML in the content field.
- The user being prompted with the dialog must select one of the choices and then click yes; the tile will then continue to the appropriate landing.
- Several examples of some HTML will be provided below.
- If using "row" or "column", replace them with "flexrow" or "flexcol" respectively. See Example 3.
The three examples below were all made to work with the Confirm
type, and will not work with the other types without modification.
Click here to view HTML
<form>
Choose your favorite dessert:
<input type="hidden" id="dialog-redirect" name="goto" />
<button type="button" onclick="$('#dialog-redirect').val('Cake');">Cake</button>
<button type="button" onclick="$('#dialog-redirect').val('Pie');">Pie</button>
</form>
Click here to view HTML
<form>
Choose your favorite anchor:
<input type="radio" name="goto" value="anchor1" />
<label>Anchor1</label><br>
<input type="radio" name="goto" value="anchor2" />
<label>Anchor2</label><br>
<input type="radio" name="goto" value="anchor3" />
<label>Anchor3</label><br>
</form>
Click here to view HTML
<form>
Choose your favorite dessert:
<input type="hidden" id="dialog-redirect" name="goto" />
<div class="flexrow" style="background-color:#FFB695;">
<button type="button" onclick="$('#dialog-redirect').val('Cake');">Cake</button>
<button type="button" onclick="$('#dialog-redirect').val('Ice Cream');">Ice Cream</button>
</div>
<div class="flexrow" style="background-color:#96D1CD;">
<button type="button" onclick="$('#dialog-redirect').val('Pie');">Pie</button>
<button type="button" onclick="$('#dialog-redirect').val('Cookies');">Cookies</button>
</div>
</form>
Accepts an HTML file to further customize the dialog window.
The yes/no buttons can be removed from the Confirm
type dialog by excluding them from your HTML file. Make sure its wrapped in a form
tag, and use Javascript to submit that form. MATT will listen for a submit call to the form and use that instead of a button click.
Additional HTML options for the dialog window.
Use this to set the width of the dialog window in pixels.
Use this to set the height of the dialog window in pixels.
Click Add Button
to create a new button for the dialog. Name
is the text displayed on the dialog, while Landing
is the name of a Landing within the tile to jump to when the button is clicked. The Landing
field is optional, and can be used to create "Do Nothing" buttons.
The Name
fields here also accept HTML.
Who gets to see the dialog when the action is run.
- Everyone
- Players Only
- GM Only
- Triggering Player
- Triggering Token Owner
- Current Tokens Owner
- Current Users
Use this to directly target a user in the player list to have them see the dialog.
Put the name of a landing within the same tile here (leave this blank if you are using custom HTML).
Optionally, put the name of a landing within the same tile here.
- This action continues to store its text information when swapped into another action, even if that action does not contain a text field. It's recommended just deleting this action instead if you need to replace it with something else to help keep data sizes down.
- The input window doesn't resize. I suggest copying your custom HTML to another text editor, then copying it back in after editing.
- Color Selector (Color Picker)
- Color Selector (Hexcode)
- Image Selector
- Keypad
- Password Input (Basic)
- Phase Selector
- Random Gravestone Generator
- Tooltip (Dialog)
- Foundry 12.331
- MATT 12.02
If you have module questions or concerns, please feel free to contact me on Discord. ironmonk88
This wiki is being maintained by crow_guard. If you have questions, want to see something added to the wiki, find a broken link or out-dated information, just message me and I'll fix it.
Or come over to Ironmonk's Discord channel. https://discord.gg/MStYmeRfn3
If you like Monk's mods and feel like being generous, stop by Monk's Patreon.
Not necessary but definitely appreciated.
If you find the wiki helpful and feel like being generous, stop by Crow's Ko-Fi.
Also not necessary but greatly appreciated.
Many of the assets shown in the tutorial images & GIFs are from https://www.forgotten-adventures.net/.
- Always HP
- Breaktime
- Enhanced Terrain Layer
- Monk's Active Tile Triggers
- Monk's Bloodsplats
- Monk's Chat Timer
- Monk's Combat Details
- Monk's Combat Marker
- Monk's Common Display
- Monk's Enhanced Journal
- Monk's Hotbar Expansion
- Monk's Little Details
- Monk's PF2E Encounter Aftermath
- Monk's Player Settings
- Monk's Scene Navigation
- Monk's Shops
- Monk's Sound Enhancements
- Monk's Tokenbar
- Monk's Wall Enhancement
- Multiple Document Selection