Issix-mod/Events/GreenhouseCatnipEvent.gd

30 lines
1.4 KiB
GDScript3
Raw Normal View History

2024-11-10 01:10:02 +00:00
extends EventBase
func _init():
id = "AzazelCatnipEvent"
func registerTriggers(es):
es.addTrigger(self, Trigger.EnteringRoom, "main_green_corridor9")
func run(_triggerID, _args):
2024-12-18 00:21:19 +00:00
if(GM.main.getModuleFlag("IssixModule", "Azazel_Catnip_noticed", false) == false):
if "feline" in GM.pc.getSpecies():
saynn("You approach greenhouses, each one looks like a huge long tent with lots of artificial lights inside. Your sensitive nose catches a whiff of a peculiar smell coming from one of the greenhouses, something very primal to your very instincts...")
addButton("Investigate", "Find the source of smell", "greenhouse")
elif RNG.chance(50):
saynn("While minding your business you notice a sign which depicts a crossed out feline. This strikes you as very odd, why would felines be banned from what appears to be a single greenhouse?")
addButton("Investigate", "Try to find out what's up?", "greenhouse")
else:
saynn("While going through the greenhouses you remember a familiar greenhouse that had catnip in it. You could try and get some for yourself, or someone else.")
2024-11-10 01:10:02 +00:00
if(!GM.main.getModuleFlag("IssixModule", "Azazel_Catnip_taken_today")):
2024-12-18 00:21:19 +00:00
addButtonUnlessLate("Steal", "Try and steal something", "greenhouse")
2024-11-10 01:10:02 +00:00
else:
addDisabledButton("Steal", "Too dangerous to do this again today")
func getPriority():
return 0
func onButton(_method, _args):
2024-12-18 00:21:19 +00:00
if(_method == "greenhouse"):
2024-11-10 01:10:02 +00:00
runScene("GreenhouseCatnip")