From 0c967f8a56ffde7f1aa44969368b533c60cfafc2 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 21 Jun 2025 12:01:11 -0400 Subject: [PATCH] Add generic Aetheryte event script, document the interesting scenes This also scripts the Central Meadows Aetheryte. --- resources/scripts/Global.lua | 1 + resources/scripts/common/GenericAetheryte.lua | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 resources/scripts/common/GenericAetheryte.lua diff --git a/resources/scripts/Global.lua b/resources/scripts/Global.lua index a037530..d909c5f 100644 --- a/resources/scripts/Global.lua +++ b/resources/scripts/Global.lua @@ -65,6 +65,7 @@ registerEvent(131246, "common/GenericWarp.lua") -- Exit Bokairo Inn to Kugane registerEvent(131312, "common/GenericWarp.lua") -- Exit The Pendants Personal Suite to Crystarium registerEvent(131402, "common/GenericWarp.lua") -- Exit Andron to Old Sharlayan registerEvent(131578, "common/GenericWarp.lua") -- Exit The For'ard Cabins to Tuliyollal +registerEvent(327683, "common/GenericAetheryte.lua") -- Bentbranch Meadows Aetheryte registerEvent(720916, "custom/000/cmndefinnbed_00020.lua") registerEvent(1179657, "tosort/Chocobokeep.lua") -- Chocobokeep in Central Shroud registerEvent(1245185, "opening/OpeningLimsaLominsa.lua") diff --git a/resources/scripts/common/GenericAetheryte.lua b/resources/scripts/common/GenericAetheryte.lua new file mode 100644 index 0000000..dc78cf9 --- /dev/null +++ b/resources/scripts/common/GenericAetheryte.lua @@ -0,0 +1,14 @@ +-- generic aetheryte, use this for all of the big aetherytes + +--- scene 02 - aetheryte menu +--- scene 03 - "you have aethernet access" message and vfx + +function onTalk(target, player) + --- param has to be 1 for the menu to even show up + player:play_scene(target, EVENT_ID, 00000, 8192, 1) +end + +function onReturn(scene, results, player) + --- results [3] is 1 if the player requested to set it as their home point + player:finish_event(EVENT_ID) +end