HealthConditionalEffect ​
Inherits: ConditionalEffect < CompositeEffect < Effect < DatabaseResource < Resource
Applies child effects based on the health percentage of the target or originator.
Properties ​
HealthTarget | health_target | HealthTarget.TARGET |
HealthComparison | health_comparison | HealthComparison.BELOW |
float | threshold_percent | 50.0 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
String | get_editor_description() |
Enumerations ​
enum HealthTarget ​
The options of health target: target, originator.
- TARGET =
0 - ORIGINATOR =
1
enum HealthComparison ​
The options of health comparison: below, above.
- BELOW =
0 - ABOVE =
1
Property descriptions ​
Condition Settings
HealthTarget health_target = HealthTarget.TARGET ​
Whose health is checked (the target or the originator).
HealthComparison health_comparison = HealthComparison.BELOW ​
How the health is compared with the percentage (below, above ...).
float threshold_percent = 50.0 ​
Health percentage threshold (0–100)
Method descriptions ​
void specific_effect_logic( effect_instance: EffectInstance ) ​
What the effect does to its target when it is applied.
String get_editor_description() ​
A short text for the effect editor that says what the effect does.