Skip to content

Display

display [ok|okcancel|yesno|yesnocancel] {message}
Sets
#DispRes

Also searchable as: Display · message box · popup · alert

display shows a Windows message box with the message and waits until the user closes it. The button that was pressed goes into #DispRes.

Parameter Meaning
buttons Optional. ok (the default), okcancel, yesno or yesnocancel.
message The text. $ starts a new line.

#DispRes is Ok, Yes, No or Cancel. Comparisons ignore case, so #DispRes = yes works.

The script waits while the box is open, but the rest of EasyUO Reforged keeps working.

display yesno You have run out of ingots.$Stop the script?
if #DispRes = yes
halt
display ok Going on without ingots.
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.