ChangeEncounterBehaviorAction ​
Inherits: EventAction < Resource
Action to dynamically change a Encounter's formation and behavior Updated to work with new EncounterState enum system.
Properties ​
int | encounter_id | 0 |
UniqueEncounterData.Formation | new_formation | UniqueEncounterData.Formation.NONE |
UniqueEncounterData.GroupBehavior | new_group_behavior | UniqueEncounterData.GroupBehavior.BALANCED |
bool | apply_formation_immediately | true |
float | behavior_duration | 0.0 # 0 = permanent |
Variables ​
EncounterGroup | encounter |
Methods ​
String | get_function_description() |
EncounterGroup | find_encounter( name: int ) |
Dictionary | save() |
void | load_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