SwitchToEnemyAction ​
Inherits: CombatAction < Resource
Switches target to enemy based on various criteria
Properties ​
float | search_range | 20.0 |
TargetCriteria | target_criteria | TargetCriteria.NEAREST |
float | health_threshold_percent | -1.0 |
int | required_effect_id | 0 # 0 = no effect requirement |
int | required_effect_stacks | 1 |
Enumerations ​
enum TargetCriteria ​
The options of target criteria: nearest, farthest, lowest health, highest health, random.
- NEAREST =
0 - FARTHEST =
1 - LOWEST_HEALTH =
2 - HIGHEST_HEALTH =
3 - RANDOM =
4
Property descriptions ​
float search_range = 20.0 ​
How far to look for an enemy.
TargetCriteria target_criteria = TargetCriteria.NEAREST ​
Which enemy to pick (the nearest, the weakest ...).
float health_threshold_percent = -1.0 ​
-1 = ignore health threshold
int required_effect_id = 0 # 0 = no effect requirement ​
Only enemies with this effect count (0 = no filter).
int required_effect_stacks = 1 ​
How many stacks of that effect an enemy needs.