1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-05-12 14:47:46 +00:00
kawari/resources/scripts/opening/OpeningGridania.lua
Joshua Goins e237cbe84d Create GenericWarp script to handle simple warps
It turns out that most warps are just a yes/no, and can be handled by
one single script. I scripted the lift attendants from Bulwark Hall <->
Airship Landing <-> Drowning Wench this way.
2025-05-05 23:30:36 -04:00

24 lines
557 B
Lua

--- load defines from Opening Excel sheet, which has this and we don't need to hardcode it'
POS_START = 2299848
function Scene00000(player)
player:play_scene(EVENT_ID, 00000, 4959237, 1)
end
function Scene00001(player)
player:play_scene(EVENT_ID, 00001, 4959237, 1)
end
function onEnterTerritory(player, zone)
--- move the player into the starting position
start_pos = zone:get_pop_range(POS_START)
player:set_position(start_pos)
Scene00000(player);
end
function onSceneFinished(player, scene)
if scene == 0 then
Scene00001(player)
end
end