User Tools

Site Tools


4rpl:commands:showgamemessage

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:showgamemessage [2024/01/27 14:19] – Added emphasis on an important detail digitalizedMind4rpl:commands:showgamemessage [2024/01/27 15:10] (current) – old revision restored (2022/05/21 17:22) durikkan
Line 28: Line 28:
 If a button is shown, a message will be sent when the button is pressed. A variable named '_DATA' will contain either a 0 or 1 to indicate which button was pressed. If a button is shown, a message will be sent when the button is pressed. A variable named '_DATA' will contain either a 0 or 1 to indicate which button was pressed.
      
-In order to allow the player to close the message, a script must be registered for the message channel specified using [[4rpl:commands:registerformsg|RegisterforMsg]] and contain a [[4rpl:commands:closegamemessage|CloseGameMessage]] instruction in the callback function, with the parameter set to "True". :WARNING: The callback function can not be in the same script as the script making the call.+In order to allow the player to close the message, a script must be registered for the message channel specified using [[4rpl:commands:registerformsg|RegisterforMsg]] and contain a [[4rpl:commands:closegamemessage|CloseGameMessage]] instruction in the callback function, with the parameter set to "True" The callback function need not be the same script as the script making the call.
  
 If a message is already showing, then calling this function will do nothing. If you want to replace the message, you must first call [[CloseGameMessage]] if there is already a message showing. If a message is already showing, then calling this function will do nothing. If you want to replace the message, you must first call [[CloseGameMessage]] if there is already a message showing.
4rpl/commands/showgamemessage.txt · Last modified: 2024/01/27 15:10 by durikkan