Skip to content

ModifyGroupBehaviorAction ​

Inherits: EncounterAction < Resource

Modifies the group's overall behavior and aggression level

Properties ​

UniqueEncounterData.GroupBehaviornew_group_behaviorUniqueEncounterData.GroupBehavior.AGGRESSIVE
intnew_max_attackers0 # 0 = use behavior default
floatbehavior_duration0.0 # 0 = permanent change
boolrevert_to_originalfalse

Variables ​

UniqueEncounterData.GroupBehaviororiginal_behavior
intoriginal_max_attackers
floatbehavior_timer0.0
boolhas_original_storedfalse

Methods ​

voidprocess( delta: float )
voidrevert_behavior_now()
voidreset_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