Skip to content

Commit 570406d

Browse files
committed
Add evaluate option to Value Placeholder
1 parent 0eb10c9 commit 570406d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/api/components/components.svelte.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ class SkillDowngradeTrigger extends FabledTrigger {
680680
super({
681681
name: 'Skill Downgrade',
682682
description: 'Applies skill effects when a player loses a level in a skill. The placeholders `api-refund`, `api-skill`, and `api-level` provide details about the downgrade.',
683-
keywords: 'skill, downgrade, level down, player, API, refund, skill name, level',
683+
keywords: 'skill, downgrade, level down, player, API, refund, skill name, level'
684684
});
685685
}
686686

@@ -5328,6 +5328,8 @@ class ValuePlaceholderMechanic extends FabledMechanic {
53285328
.setTooltip('The type of value to store. Number values require numeric placeholders. String values can be used in messages or commands'),
53295329
new StringSelect('Placeholder', 'placeholder', '{value}')
53305330
.setTooltip('The placeholder string to use. Can contain multiple placeholders if using the String type'),
5331+
new BooleanSelect('Evaluate', 'evaluate', false)
5332+
.setTooltip('If true, the placeholder will be evaluated before being stored. If <code>false</code>, the raw placeholder string will be stored, effectively creating a pass-by-reference system. <code>true</code> is essentially pass-by-value.'),
53315333
new BooleanSelect('Save', 'save', false)
53325334
.setTooltip('If true, save the key value to persistent value. Persistent value is not lost when the player leaves the server and is stored separately on each account')
53335335

0 commit comments

Comments
 (0)