最终整理版

This commit is contained in:
2026-06-03 17:04:06 +08:00
commit 959055ce90
1240 changed files with 80570 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
extends NpcScript
# Reward items
var appleID : int = DB.GetCellHash("Apple")
# Required items
var dorianKeyID : int = DB.GetCellHash("Dorian's Key")
var gabrielKeyID : int = DB.GetCellHash("Gabriel's Key")
var marvinKeyID : int = DB.GetCellHash("Marvin's Key")
#
func OnStart():
match GetQuest(ProgressCommons.Quest.SPLATYNA_OFFERING):
ProgressCommons.SPLATYNA_OFFERING.INACTIVE: Inactive()
ProgressCommons.SPLATYNA_OFFERING.STARTED: TryOpen()
_: Empty()
func Inactive():
Chat("This chest seems to be sealed.")
func TryOpen():
if IsMonsterAlive("Splatyna"):
Chat("A dark presence is still around.")
else:
# Chest is not open, try to open it
if not IsTriggering():
Trigger()
# Chest is opened, you can withdraw your reward
if HasSpace(1):
SetQuest(ProgressCommons.Quest.SPLATYNA_OFFERING, ProgressCommons.SPLATYNA_OFFERING.REWARDS_WITHDREW)
AddItem(appleID, 5)
func Empty():
Chat("This chest is empty.")