User Tools

Site Tools


scripting:reference:scriptingmainui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:reference:scriptingmainui [2020/03/09 20:05] – [ScriptedOption command] mitscripting:reference:scriptingmainui [2023/09/14 08:43] (current) – [ScriptedOption command] mit
Line 8: Line 8:
 ==== Notification messages ==== ==== Notification messages ====
  
-FIXME: (Link to instructions for setting up notification messages)+The notification system provides a list of messages that are shown to the user on the left side of the screen. The messages disappear after a defined time (a few seconds by default but they can be made to last longer), and if multiple messages are triggered they are queued up, giving the player a few seconds to read each one. 
 + 
 +Notification messages can be automated, generated by command or made using scripted OSD. See [[world_Setup:game_features:Notifications|Notification System Reference]] for more info. 
 + 
 +==== Main On-screen Message ==== 
 + 
 +You can use the commands:\\ 
 +***setmainscore [PLAYER_NAME],[SCORE],[MAXSCORE],[MODE],[SCORE TEXT]**\\ 
 +***setmainmsg [PLAYER_NAME],[TEXT]**\\ 
 +.. to set a message which is permanently displayed at the top left of the player's screen. Generating the TEXT for this in script, using things like game score values or details about the player status allows you to provide dynamic information about the game to the player. 
  
 ==== ScriptedOption command ===== ==== ScriptedOption command =====
Line 56: Line 65:
 30 - Additional netrek mode button: $ icon when in orbit - Triggers **Event( "MenuOption", "30" )**\\ 30 - Additional netrek mode button: $ icon when in orbit - Triggers **Event( "MenuOption", "30" )**\\
 31 - Additional netrek mode button: i icon when in orbit - Triggers **Event( "MenuOption", "31" )**\\ 31 - Additional netrek mode button: i icon when in orbit - Triggers **Event( "MenuOption", "31" )**\\
 +32 - Customises the standard building interface 'Extra Info' option. - Triggers **Event( "MenuOption", "32" )** 
 +33 - Additonal button on the building stockroom interface - Triggers **Event( "MenuOption", "32" )**
  
scripting/reference/scriptingmainui.1583802309.txt.gz · Last modified: 2020/03/09 20:05 by mit

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki