最终整理版
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
extends NpcScript
|
||||
|
||||
const questID : int = ProgressCommons.Quest.SNAKE_PIT_THIEF
|
||||
const bitIndex : int = 1
|
||||
var thiefsKeyID : int = DB.GetCellHash("Thief's Key")
|
||||
|
||||
#
|
||||
func OnStart():
|
||||
var state : int = GetQuest(questID)
|
||||
if state >= ProgressCommons.SNAKE_PIT_THIEF.RIDDLE_SOLVED:
|
||||
return
|
||||
|
||||
Mes("墙上刻着第二行字:沙会吞掉脚印,水会记住脚步。")
|
||||
Mes("字迹下方有几道短线,像是在提醒你数清岔路。")
|
||||
|
||||
var newState : int = state | (1 << bitIndex)
|
||||
if newState != state:
|
||||
SetQuest(questID, newState)
|
||||
|
||||
if newState == ProgressCommons.SNAKE_PIT_THIEF.ALL_CLUES_FOUND:
|
||||
OnAllCluesFound()
|
||||
|
||||
func OnAllCluesFound():
|
||||
SetQuest(questID, ProgressCommons.SNAKE_PIT_THIEF.RIDDLE_SOLVED)
|
||||
AddItem(thiefsKeyID, 1)
|
||||
Mes("五行刻字在你脑海中拼成完整的路线。石缝弹开,你找到一把盗贼钥匙。")
|
||||
Reference in New Issue
Block a user