Issix-mod/MedicalPeekEvent.gd

29 lines
1.1 KiB
GDScript3
Raw Normal View History

2024-11-01 00:34:49 +00:00
extends EventBase
func _init():
id = "MedicalLamiaPeekEvent"
func registerTriggers(es):
es.addTrigger(self, Trigger.EnteringRoom, "med_near_wards")
2024-11-01 22:00:58 +00:00
es.addEventCheck(self, "ElizaBusy")
2024-11-01 00:34:49 +00:00
2024-11-01 22:00:58 +00:00
func react(_triggerID, _args):
if(getModuleFlag("IssixModule", "Quest_Status") == 5 and getModuleFlag("IssixModule", "Quest_Wait_Another_Day") == true):
2024-11-01 22:00:58 +00:00
runScene("MedicalLamiaPeekScene")
return true
# I don't have any other way of preventing the player from entiering the medical room so we do some forcy scene on them, they would never see that coming!
#addButton("Investigate", "Eavesdrop on large commotion in the hospital room next to you", "main")
return false
2024-11-01 00:34:49 +00:00
func getPriority():
2024-11-01 22:00:58 +00:00
return 150
2024-11-01 00:34:49 +00:00
func onButton(_method, _args):
if(_method == "main"):
runScene("MedicalLamiaPeekScene")
func eventCheck(_checkID, _args = []): # sorry player, you can't heal, Eliza is occupied by Issix's pet
if(_checkID == "ElizaBusy" and getModuleFlag("IssixModule", "Quest_Status") == 5 and getModuleFlag("IssixModule", "Quest_Wait_Another_Day") == true):
2024-11-01 22:00:58 +00:00
return {busy=true}