Skip to content

EnchantEquipmentEffect ​

Inherits: Effect < DatabaseResource < Resource

Applies an enchant effect to equipment in a specific slot Similar to ItemDefinitionEnchantScroll but works through the effect system

Properties ​

intenchant_effect_id
intequipment_slot_id
floatenchant_duration-1.0
booloverride_effect_durationtrue
boolenchant_all_slotsfalse

Methods ​

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

Property descriptions ​

int enchant_effect_id ​

The effect to apply as an enchantment

int equipment_slot_id ​

Which equipment slot to enchant

float enchant_duration = -1.0 ​

Duration override for enchantment (-1 = permanent, >0 = temporary in seconds)

bool override_effect_duration = true ​

Whether to override the effect's own duration

bool enchant_all_slots = false ​

If true and slot supports multiple items, enchant all equipped items in that slot

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Applies an enchantment to the target's equipped item in the specified slot

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.