ShowAsHelpMessage - Message

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Message Script

Displays a help message on screen for a specified duration at specified intervals until a specified number of showings occurs or until a user event takes place.

Syntax[edit | edit source]

Function ShowAsHelpMessage(string asEvent, float afDuration, float afInterval, int aiMaxTimes) native

Parameters[edit | edit source]

  • asEvent: The event which both identifies and ends the help message. There can be only one message per event and once the event occurs, the message will not display again. To redisplay a message or display a new message for an event, use ResetHelpMessage. Button Tag Replacement.
  • afDuration: How long should the message appear before going away? A value <= 0 means no time limit.
  • afInterval: How much time should elapse in between showings of the message.
  • aiMaxTimes: After this many times being shown, the message will stop appearing. A value <= 0 means no occurrence limit.

Example[edit | edit source]

; Display a message telling the player to press the jump button.
; In this example, the message's text would be something like "Press [Jump] to jump."
Message.ShowAsHelpMessage("Jump", 5, 30, 3)

See Also[edit | edit source]