From 5ea48c1f91298b42924f6865ffc30810cceec2d3 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 13 Jul 2026 20:36:26 -0400 Subject: feat(admin): triggers organized by directory, support duplicate and delete --- data/.admin_history.json | 2 +- data/triggers/player_flag/announce_99_copy.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 data/triggers/player_flag/announce_99_copy.yaml (limited to 'data') diff --git a/data/.admin_history.json b/data/.admin_history.json index 85b92cf..6628a6e 100644 --- a/data/.admin_history.json +++ b/data/.admin_history.json @@ -1 +1 @@ -{"history":[{"time":"2026-07-13T19:53:39-04:00","description":"update room 1010","file_path":"data/rooms/intro/1010.yaml","old_content":"block_transport: false\ncolor: D3\ndescription: []\nexits:\n north:\n room: 1009\n west:\n room: 1007\nhazard: \"\"\nid: 1010\nitem_spawns: []\nmobs: []\nname: 'Room #1010'\nobjects: []\non_enter: []\ntriggers: []\n","new_content":"block_transport: false\ncolor: D3\ndescription: []\nexits:\n north:\n room: 1009\n west:\n room: 1007\nhazard: \"\"\nid: 1010\nitem_spawns: []\nmobs: []\nname: 'Room #1010'\nobjects:\n - id: 000_test_object\non_enter: []\ntriggers: []\n","is_delete":false,"is_create":false},{"time":"2026-07-13T19:53:49-04:00","description":"update room 1010","file_path":"data/rooms/intro/1010.yaml","old_content":"block_transport: false\ncolor: D3\ndescription: []\nexits:\n north:\n room: 1009\n west:\n room: 1007\nhazard: \"\"\nid: 1010\nitem_spawns: []\nmobs: []\nname: 'Room #1010'\nobjects:\n - id: 000_test_object\non_enter: []\ntriggers: []\n","new_content":"block_transport: false\ncolor: D3\ndescription: []\nexits:\n north:\n room: 1009\n west:\n room: 1007\nhazard: \"\"\nid: 1010\nitem_spawns: []\nmobs: []\nname: 'Room #1010'\nobjects: []\non_enter: []\ntriggers: []\n","is_delete":false,"is_create":false}],"redo":null} \ No newline at end of file +{"history":[{"time":"2026-07-13T20:31:17-04:00","description":"Created trigger announce_99_copy","file_path":"data/triggers/player_flag/announce_99_copy.yaml","old_content":"","new_content":"on_player_flag: \"\"\nsteps: []\n","is_delete":false,"is_create":true},{"time":"2026-07-13T20:31:17-04:00","description":"Update trigger announce_99_copy","file_path":"data/triggers/player_flag/announce_99_copy.yaml","old_content":"on_player_flag: \"\"\nsteps: []\n","new_content":"steps:\n - broadcast_global: '%p has reached level 99 %v!'\non_player_flag: announce_99_skill\n","is_delete":false,"is_create":false}],"redo":null} \ No newline at end of file diff --git a/data/triggers/player_flag/announce_99_copy.yaml b/data/triggers/player_flag/announce_99_copy.yaml new file mode 100644 index 0000000..2c3f789 --- /dev/null +++ b/data/triggers/player_flag/announce_99_copy.yaml @@ -0,0 +1,3 @@ +steps: + - broadcast_global: '%p has reached level 99 %v!' +on_player_flag: announce_99_skill -- cgit v1.2.3