mojira.dev
MC-298009

When using the dialog command with an in-lined dialog, all macros written in a “command_template” are assumed to be from the storage that a function is run with if the dialog command is prefixed with a $

That makes it not possible for text inputs' initial value to be taken from a macro, nor is it possible to use macros (other than what’s taken from the inputs) in the command template.

A possible fix is to change how macros from the inputs are written into the command. like ${key} for input keys for example, and normal macros be their usual $(normal_macro). I have shown this in the added image.

Another fix could be to add a prefix into the macro, like $(input:key) for the macros from the inputs.

Linked issues

Attachments

Comments 1

I found a workaround where I store like, {key: “$(key)”} so it puts that into the dialog command where I need it, but that’s a hacky solution, and I’d prefer a proper way to use macros with dialogs

KingIwrs

(Unassigned)

Community Consensus

Platform

Normal

Commands

25w20a

Retrieved