Skip to content

TauntEffect ​

Inherits: Effect < DatabaseResource < Resource

Forces the target to target the originator for the duration of the effect (give it a duration: an effect without one ends at once). An NPC attacks the originator whatever its threat table says (and the originator's threat can be put at the top, so the NPC stays on him after the taunt); a player or a companion gets the originator selected and locked on. See docs/systems/ability-mechanics-plan.md, section 6.

Properties ​

boolset_threat_to_toptrue
floatthreat_margin10.0

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()
boolis_one_off_application()

Property descriptions ​

Taunt

bool set_threat_to_top = true ​

Put the originator's threat above everyone else's on a taunted NPC, so it keeps attacking him after the taunt

float threat_margin = 10.0 ​

How far above the highest threat

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

What the effect does to its target when it is applied.

void on_apply_finished( effect_instance: EffectInstance ) ​

Called when the effect ends: takes back what it did.

String get_effect_description() ​

The text of the effect for tooltips, with its values filled in.

String get_editor_description() ​

A short text for the effect editor that says what the effect does.

bool is_one_off_application() ​

The taunt is a lasting state (the forced target comes back when it ends)