;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;




[@015_Agent]
{
#ACT
LoadValue P1 "\QuestDiary\Judgement\Flag.txt" [015] [HumanCount]


#IF
Check [774] 1
#ACT
Goto @015_Doing
break


#IF
Large P1 20
#ACT
Goto @015_Normal
break


#IF
small P1 21
#ACT
Goto @015_GiveQuest
break
#ELSEACT
Goto @015_Normal
break


[@015_Normal]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\015NPC.txt] @Convert_015NPC_0

[@015_Doing]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\015NPC.txt] @Convert_015NPC_1

[@015_GiveQuest]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\015NPC.txt] @Convert_015NPC_2

[@015NPC_1]
begin
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\015NPC.txt] @Convert_015NPC_3

#ACT
LoadValue P1 "\QuestDiary\Judgement\Flag.txt" [015] [HumanCount]
Inc P1 1
SaveValue "\QuestDiary\Judgement\Flag.txt" [015] [HumanCount] %P1
Set [774] 1
end
}






[@015NPC_Porter]
{
#IF
Check [774] 1
#ACT
Goto @015_Potion
break
#ELSEACT
Goto @015_NoFlag
break


[@015_NoFlag]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\015NPC.txt] @Convert_015NPC_4

[@015_Potion]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\015NPC.txt] @Convert_015NPC_5

[@015_GivePotion]
begin
#IF
CheckItem 金创药（大） 50
#ACT
Take 金创药（大） 50
Set [774] 0
mov A0 "Judgement"
mov D0 15
mov D1 1
mov D2 0
mov D3 0
goto @EveryThingReward

LoadValue P1 "\QuestDiary\Judgement\Flag.txt" [015] [SuccessCount]
Inc P1 1
SaveValue "\QuestDiary\Judgement\Flag.txt" [015] [SuccessCount] %P1
Goto @Check_E02Start

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\015NPC.txt] @Convert_015NPC_6


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\015NPC.txt] @Convert_015NPC_7

[@Check_E02Start]
begin
#ACT
LoadValue P1 "\QuestDiary\Judgement\Flag.txt" [015] [SuccessCount]
LoadValue P2 "\QuestDiary\Judgement\Flag.txt" [E02] [OPEN]

#IF
Large P1 4
Equal P2 0
#ACT
SaveValue "\QuestDiary\Judgement\Flag.txt" [E02] [OPEN] 1

end







}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;