messages.base module

Provides wrapper classes for the _messages.create_message function.

class messages.dialog._DialogBase[source]

Bases: object

Base Dialog class used to send Dialog messages to players.

_get_player_level(userid)[source]

Return the current dialog message level for the given player.

static _get_text(message, player, **tokens)[source]

Return the text for the given message.

static _set_keyvalues(keyvalues, player, **tokens)[source]

Set any class specific KeyValues.

As a base, this does nothing. Inheriting classes need to define their own method to handle setting their specific values.

send(*player_indexes, **tokens)[source]

Send the Dialog message to the appropriate recipients.

Parameters:
message_type

Raise an error if the inheriting class does not have their own.

time = 0
title = ''