Skip to content

AccessEntityInventoryEffect ​

Inherits: Effect < DatabaseResource < Resource

Opens the inventory of the target entity (if they are an Entity) Similar to LootInteraction but applied through the effect system

Properties ​

floatbase_success_chance1.0
booluse_stat_modifierfalse
intstat_id0
floatstat_per_percent10.0

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()
Array[Dictionary]validate()
boolis_one_off_application()

Property descriptions ​

float base_success_chance = 1.0 ​

Base chance to successfully open inventory (0.0-1.0)

Stat Modifier

bool use_stat_modifier = false ​

Whether to modify success chance based on a stat

int stat_id = 0 ​

Name of the stat to use (e.g., "Pickpocket", "Dexterity")

float stat_per_percent = 10.0 ​

How much of the stat equals 1% success chance (e.g., 10 = 10 stat points = 1% chance)

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Opens the target's inventory if they're an Entity

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.

Array[Dictionary] validate() ​

Validation

bool is_one_off_application() ​

What this effect does it does once, when it is applied: a loaded save does not do it again