Skip to content

ConversationActionProceedToDiceRoll ​

Inherits: ConversationAction < Resource

Action that proceeds to a dice roll / skill check Evaluates the dice roll and proceeds to success or fail chat Uses signals for clean communication with ConversationPanelUI

Properties ​

intdice_roll_id0

Methods ​

voidexecute( player: Entity, conversation_instance: ConversationInstance )
Array[Dictionary]validate()
Stringget_description()
Stringget_action_type_name()
Stringget_action_icon()

Signals ​

dice_roll_requested( dice_roll: ConversationDiceRoll, player: Entity, conversation_instance: ConversationInstance ) ​

Emitted to ask for the dice roll: the roll, the player and the conversation.

Property descriptions ​

int dice_roll_id = 0 ​

ID of the dice roll to execute

Method descriptions ​

void execute( player: Entity, conversation_instance: ConversationInstance ) ​

Runs the action in the conversation.

Array[Dictionary] validate() ​

Checks the settings of the action. Gives the problems found (empty when it is fine).

String get_description() ​

A short text about what the action does, for the editor.

String get_action_type_name() ​

The name of the kind of action, for the editor.

String get_action_icon() ​

The symbol of the kind of action, for the editor.