For messages in the top right of the screen, use this:
ZO_Alert(category, soundId, message, ...)... is strformat arguments.
I generally use ERROR for category and SOUNDS.GENERAL_ALERT_ERROR for the sound, but you can experiment with other stuff
https://github.com/esoui/esoui/blob/c9f8a88114130077403f2c6bb82684f99db06a97/esoui/ingame/alerttext/alerttext_shared.lua#L99
|