Skip to content

Dialoggestures

This package can modify the NPCs' gestures during dialogue to better bring out emotions.

Dependencies

Initialization

N/A

Implementation

Dialoggestures.d on GitHub

Functions

DIAG

With this function the dialog gestures for all NPCs can be overridden. To understand the principle, it is recommended to take a look at the examples.

The full name of the animation can be described as follows:

DIAG_Prefix + aniName + DIAG_Suffix + ((rand() % (max - (min - 1))) + min).ToString("00");
DIAG_Prefix and DIAG_Suffix are user constants.

func void DIAG(var string AniName, var int Min, var int Max)
Parameters
  • var string AniName
    The new dialogue gesture
  • var int Min
    Lowest animation number
  • var int Max
    Highest animation number

DIAG_Reset

Resets the dialog gestures to the default.

func void DIAG_Reset()

DIAG_SetAni

Sets animation directly.

func void DIAG_SetAni(var string AniName)
Parameters
  • var string AniName
    Animation name

DIAG_SetMinMax

Sets animation numbers directly.

func void DIAG_SetMinMax(var int min, var int max)
Parameters
  • var int min
    Lowest animation number
  • var int max
    Highest animation number

Examples

Note

See Examples in the Trialoge article.