EffectUnlockInteractable ​
Inherits: Effect < DatabaseResource < Resource
Attempts to unlock a locked InteractableObject Can use a base success chance modified by a stat from the originator
Properties ​
float | base_success_chance | 1.0 |
bool | use_stat_modifier | false |
int | stat_id | 0 |
float | stat_per_percent | 10.0 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
Array[Dictionary] | validate() |
bool | is_one_off_application() |
Property descriptions ​
float base_success_chance = 1.0 ​
Base chance to successfully unlock (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., "Lockpicking", "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 ) ​
Attempt to unlock the target interactable
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