From ecba7f726f70b37126d852c38c7e3eec7b04d730 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 9 Jul 2026 22:15:54 -0400 Subject: feat: old standalone trigger systems completely unified into trigger->condition->action system --- data/objects/tutorial_lever.yaml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'data/objects/tutorial_lever.yaml') diff --git a/data/objects/tutorial_lever.yaml b/data/objects/tutorial_lever.yaml index 371e70b..51960d0 100644 --- a/data/objects/tutorial_lever.yaml +++ b/data/objects/tutorial_lever.yaml @@ -5,22 +5,20 @@ hidden: true inroom_description: A stone lever protrudes from the base of the rock formation. name: stone lever on_use: - - action: - messages: - - delay: 0 - message: You pull the stone lever down. A mechanism clicks into place somewhere in the glade. - set_player_flags: - unlocked_rock_cover: 1 - condition: + - condition: not: true player_flag: unlocked_rock_cover value: 1 - - action: - messages: - - delay: 0 - message: You push the stone lever back up. The mechanism disengages with a soft clunk. - set_player_flags: - unlocked_rock_cover: 0 - condition: + steps: + - messages: + - You pull the stone lever down. A mechanism clicks into place somewhere in the glade. + set_player_flags: + unlocked_rock_cover: 1 + - condition: player_flag: unlocked_rock_cover value: 1 + steps: + - messages: + - You push the stone lever back up. The mechanism disengages with a soft clunk. + set_player_flags: + unlocked_rock_cover: 0 -- cgit v1.2.3