Jump to content

Custom message on screen?


Recommended Posts

@Phelps1247 There are 2 styles of onscreen messages available to modders.  The top left corner is a Notification and will automatically disappear after a few seconds.  The other is Message Box which will show a text box on screen with an OK button.  These do need to be called from a mod though and aren't available via console.

 

Debug.Notification("This will appear in top left corner")

Debug.MessageBox("This will appear in the center of screen with an OK button")

 

A third option, not optimal for player's to see (unless they review the console itself or papyrus log) would be Trace.  This puts a message in both the player's console and papyrus log file.  

 

Debug.Trace("Prints a message to console and papyrus log")

Link to comment
  • 3 weeks later...
On 10/17/2018 at 12:30 AM, AWP3RATOR said:

-snip-

Ah, but those are debugs. If you accidentally compile with the compiler set to remove stuff that uses the "debug" script, those will be removed.

 

I suggest using $Message.Show() instead, where $Message is your MessageBox property defined in the script, and set to be a message that is a record in your plugin.

 

Within the message record, you can define how long it's displayed (if it's a box), and use flags to define whether it's a message box, or a notification. I use both to send the end user update notifications, or first time mod startup message boxes.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use