Skip to content

ChangeEncounterBehaviorAction ​

Inherits: EventAction < Resource

Action to dynamically change a Encounter's formation and behavior Updated to work with new EncounterState enum system.

Properties ​

intencounter_id0
UniqueEncounterData.Formationnew_formationUniqueEncounterData.Formation.NONE
UniqueEncounterData.GroupBehaviornew_group_behaviorUniqueEncounterData.GroupBehavior.BALANCED
boolapply_formation_immediatelytrue
floatbehavior_duration0.0 # 0 = permanent

Variables ​

EncounterGroupencounter

Methods ​

Stringget_function_description()
EncounterGroupfind_encounter( name: int )
Dictionarysave()
voidload_data( data: Dictionary )

Property descriptions ​

int encounter_id = 0 ​

Name of the Encounter to manipulate

UniqueEncounterData.Formation new_formation = UniqueEncounterData.Formation.NONE ​

The formation the group takes.

UniqueEncounterData.GroupBehavior new_group_behavior = UniqueEncounterData.GroupBehavior.BALANCED ​

How the group acts from now on.

bool apply_formation_immediately = true ​

True when the group moves into the formation at once, false when it takes it over time.

float behavior_duration = 0.0 # 0 = permanent ​

How many seconds the new behavior lasts (0 = for good).

Variable descriptions ​

EncounterGroup encounter ​

Reference to the special encounter

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

EncounterGroup find_encounter( name: int ) ​

Find a special encounter by its name

Dictionary save() ​

Save action state

void load_data( data: Dictionary ) ​

Load action state