最终整理版
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
extends NpcScript
|
||||
|
||||
const questID : int = ProgressCommons.Quest.SNAKE_PIT_THIEF
|
||||
const bitIndex : int = 2
|
||||
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