ModifyGroupBehaviorAction ​
Inherits: EncounterAction < Resource
Modifies the group's overall behavior and aggression level
Properties ​
UniqueEncounterData.GroupBehavior | new_group_behavior | UniqueEncounterData.GroupBehavior.AGGRESSIVE |
int | new_max_attackers | 0 # 0 = use behavior default |
float | behavior_duration | 0.0 # 0 = permanent change |
bool | revert_to_original | false |
Variables ​
UniqueEncounterData.GroupBehavior | original_behavior | |
int | original_max_attackers | |
float | behavior_timer | 0.0 |
bool | has_original_stored | false |
Methods ​
void | process( delta: float ) |
void | revert_behavior_now() |
void | reset_action() |
Property descriptions ​
UniqueEncounterData.GroupBehavior new_group_behavior = UniqueEncounterData.GroupBehavior.AGGRESSIVE ​
How the group acts from now on.
int new_max_attackers = 0 # 0 = use behavior default ​
How many members may attack at once (0 = no change).
float behavior_duration = 0.0 # 0 = permanent change ​
How many seconds the change lasts (0 = for good).
bool revert_to_original = false ​
If true, reverts after duration
Variable descriptions ​
UniqueEncounterData.GroupBehavior original_behavior ​
Track original behavior for reverting
int original_max_attackers ​
How many members could attack before the change.
float behavior_timer = 0.0 ​
How many seconds the change has lasted.
bool has_original_stored = false ​
True once the old values were kept.
Method descriptions ​
void process( delta: float ) ​
Process method for timed behavior changes
void revert_behavior_now() ​
Manually revert behavior (can be called by other systems)
void reset_action() ​
Reset the action state