Jump to content

Custom message on screen?


Recommended Posts

Posted

Like where it says "(Companion) liked that" in the corner.

Any way to input a custom one?

I thought textinput menu would be it but if it is I can't figure it out. I thought maybe there was a way to do it through the console but I can't find it if there is.

Posted

@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")

  • 3 weeks later...
Posted
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.

Archived

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

  • Recently Browsing   0 members

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