2024-11-10 01:10:02 +00:00
|
|
|
extends SceneBase
|
|
|
|
|
|
|
|
func _init():
|
|
|
|
sceneID = "GreenhouseCatnip"
|
|
|
|
|
|
|
|
func _run():
|
|
|
|
if(state == ""):
|
2024-12-18 00:21:19 +00:00
|
|
|
if GM.main.getModuleFlag("IssixModule", "Azazel_Catnip_noticed", false) == false:
|
|
|
|
saynn("Curious, you begin investigating. You have to sneak around cause at any moment you can spotted by some guard.")
|
2024-11-10 01:10:02 +00:00
|
|
|
|
2024-12-18 00:21:19 +00:00
|
|
|
saynn("This specific station seems to be growing quite a variety of herbs, most of which are unknown to you.")
|
|
|
|
|
|
|
|
saynn("You spotted that the doors to the greenhouse have been left opened. Right behind them you see a familiar plant - catnip.")
|
|
|
|
|
|
|
|
saynn("What do you wanna do?")
|
2024-11-10 01:10:02 +00:00
|
|
|
|
2024-12-19 23:37:21 +00:00
|
|
|
addButton("Take catnip", "Sneak in, grab one and get out", "catnip", [GlobalRegistry.createItem("CatnipPlant")])
|
2024-12-18 00:21:19 +00:00
|
|
|
addButton("Don't steal", "Too dangerous", "endthescene")
|
2024-11-10 01:10:02 +00:00
|
|
|
|
2024-12-18 00:21:19 +00:00
|
|
|
else:
|
|
|
|
saynn("While staring at plethora of different plants, you recognize one in particular - white flowers and specific smell. Catnip!")
|
|
|
|
saynn("You find and cut one of many catnip at the bottom of the stem. Time to leave.")
|
|
|
|
|
2024-12-19 23:37:21 +00:00
|
|
|
addButton("Continue", "Try to escape without being seen", "caughtcheck", [GlobalRegistry.createItem("CatnipPlant")])
|
2024-12-18 00:21:19 +00:00
|
|
|
|
|
|
|
if state == "catnip":
|
|
|
|
saynn("While staring at plethora of different plants, you recognize one in particular - white flowers and specific smell. Catnip!")
|
2024-11-10 01:10:02 +00:00
|
|
|
saynn("You find and cut one of many catnip at the bottom of the stem. Time to leave.")
|
2024-12-18 00:21:19 +00:00
|
|
|
|
2024-11-10 01:10:02 +00:00
|
|
|
addButton("Continue", "Try to escape without being seen", "caughtcheck")
|
|
|
|
|
2024-12-18 00:21:19 +00:00
|
|
|
if state == "caughtcheck":
|
|
|
|
addMessage("Seems like you got away safely")
|
|
|
|
addButton("Leave", "Leave the crime scene", "endthescene")
|
|
|
|
|
|
|
|
|
2024-11-10 01:10:02 +00:00
|
|
|
func _react(_action: String, _args):
|
2024-12-19 23:37:21 +00:00
|
|
|
if _args:
|
|
|
|
GM.pc.getInventory().addItem(_args[0])
|
|
|
|
addMessage("You stole catnip plant.")
|
|
|
|
|
2024-11-10 01:10:02 +00:00
|
|
|
if(_action == "catnip"):
|
2024-12-18 00:21:19 +00:00
|
|
|
GM.main.setModuleFlag("IssixModule", "Azazel_Catnip_noticed", true)
|
2024-11-10 01:10:02 +00:00
|
|
|
|
2024-12-18 00:21:19 +00:00
|
|
|
if(_action == "caughtcheck"):
|
|
|
|
GM.main.setModuleFlag("IssixModule", "Azazel_Catnip_taken_today", true)
|
2024-11-10 01:10:02 +00:00
|
|
|
processTime(10 * 5)
|
|
|
|
|
|
|
|
if(RNG.chance(25)):
|
|
|
|
if(GM.ES.triggerReact(Trigger.CaughtStealingInGreenhouse)):
|
|
|
|
endScene()
|
|
|
|
return
|
|
|
|
|
|
|
|
if(_action == "endthescene"):
|
|
|
|
endScene()
|
|
|
|
return
|
|
|
|
|
|
|
|
setState(_action)
|
|
|
|
|
|
|
|
# The amount of times I wrote "catnap" instead of "catnip" is insane. Thanks that one horror game franchise.
|