----------------任务---------------
function ItemSystem_AskEveryoneAboutMahin()
    if(GOP() == 1) then
        TUR()MSG("\n*Ask others about Mahin's whereabouts*")W99()
    else
        TUR()MSG("*Ask others about")
        CAT("\nMahin's whereabouts*")W99()
    end
end
function ItemSystem_AskEveryoneAboutMahin_Check()
    MSG("Let's ask around the village")
    CAT("\nabout where Mahin might be.")NOD()W99()
end
RGM("AskEveryoneAboutMahin","CS_mission_kanpa","Ask others about Mahin's whereabouts","ItemSystem_AskEveryoneAboutMahin","ItemSystem_AskEveryoneAboutMahin_Check")

function ItemSystem_GoHomeSleep()
    TUR()MSG("\n*Go home and sleep*")W99()
end
function ItemSystem_GoHomeSleep_Check()
    MSG("The sun has set")
    CAT("\nlet's go home and rest.")NOD()W99()
end
RGM("GoHomeSleep","CS_mission_kanpa","Go home and sleep","ItemSystem_GoHomeSleep","ItemSystem_GoHomeSleep_Check")

function ItemSystem_SearchForMahin()
    TUR()MSG("\n*Set out to find Mahin*")W99()
end
function ItemSystem_SearchForMahin_Check()
    if(GOP() == 1) then
        MSG("Mahin has been missing for three days")
        CAT("\nI need to look outside the village for him.")NOD()W99()
    else
        MSG("Mahin has been missing for")
        CAT("\nthree days")NOD()
        CAT("\nI need to look outside")
        CAT("\nthe village for him.")NOD()W99()
    end
end
RGM("SearchForMahin","CS_mission_kanpa","Set out to find Mahin","ItemSystem_SearchForMahin","ItemSystem_SearchForMahin_Check")

function ItemSystem_Fishing()
    TUR()MSG("\n*Go catch a big fish*")W99()
end
function ItemSystem_Fishing_Check()
    if(GOP() == 1) then
        MSG("Let's catch a big fish for Mr. Cat~")
        CAT("\nThen he'll help me find Mahin.")NOD()W99()
    else
        MSG("Let's catch a big fish")
        CAT("\nfor Mr. Cat~")NOD()
        CAT("\nThen he'll help me")
        CAT("\nfind Mahin.")NOD()W99()
    end
end
RGM("Fishing","CS_mission_monsterx","Go catch a big fish","ItemSystem_Fishing","ItemSystem_Fishing_Check")

function ItemSystem_BackVillageReport()
    TUR()MSG("\n*Return to village and report*")W99()
end
function ItemSystem_BackVillageReport_Check()
    if(GOP() == 1) then
        MSG("It's getting late,")
        CAT("\nI should go back and report to Jack...")NOD()W99()
    else
        MSG("It's getting late,")
        CAT("\nI should go back and")
        CAT("\nreport to Jack...")NOD()W99()
    end
end
RGM("BackVillageReport","CS_mission_kanpa","Return to village and report","ItemSystem_BackVillageReport","ItemSystem_BackVillageReport_Check")

function ItemSystem_SaveToroko()
    TUR()MSG("\n*Rescue Toroko*")W99()
end
function ItemSystem_SaveToroko_Check()
    if(GOP() == 1) then
        MSG("Toroko has been captured by monsters,")
        CAT("\nwe must rescue her...")NOD()W99()
    else
        MSG("Toroko has been captured")
        CAT("\nby monsters,")NOD()
        CAT("\nwe must rescue her...")NOD()W99()
    end
end
RGM("SaveToroko","CS_mission_jack","Rescue Toroko","ItemSystem_SaveToroko","ItemSystem_SaveToroko_Check")

function ItemSystem_AskMiseryForHelp()
    TUR()MSG("\n*Ask Misery for help*")W99()
end
function ItemSystem_AskMiseryForHelp_Check()
    if(GOP() == 1) then
        MSG("Let's try asking Misery for help")
        CAT("\nto find a way to rescue Toroko...")NOD()W99()
    else
        MSG("Let's try asking Misery")
        CAT("\nfor help")NOD()
        CAT("\nto find a way to rescue")
        CAT("\nToroko...")NOD()W99()
    end
end
RGM("AskMiseryForHelp","CS_mission_jack","Ask Misery for help","ItemSystem_AskMiseryForHelp","ItemSystem_AskMiseryForHelp_Check")

function ItemSystem_AskBalrogForHelp()
    TUR()MSG("\n*Ask Balrog for help*")W99()
end
function ItemSystem_AskBalrogForHelp_Check()
    if(GOP() == 1) then
        MSG("I accidentally made Misery angry")
        CAT("\nlet's go back to the hotel and ask Balrog...")NOD()W99()
    else
        MSG("I accidentally made")
        CAT("\nMisery angry")NOD()
        CAT("\nlet's go back to the")
        CAT("\nhotel and ask Balrog...")NOD()W99()
    end
end
RGM("AskBalrogForHelp","CS_mission_jack","Ask Balrog for help","ItemSystem_AskBalrogForHelp","ItemSystem_AskBalrogForHelp_Check")

function ItemSystem_SearchingForMethodsToCaptureFireflies()
    TUR()MSG("\n*Find a way to catch fireflies*")W99()
end
function ItemSystem_SearchingForMethodsToCaptureFireflies_Check()
    if(GOP() == 1) then
        MSG("Balrog told me that")
        CAT("\nMisery liked fireflies when she was young.")NOD()CLR()
        CAT("But we don't have any tools to catch fireflies,")NOD()
        CAT("\nwe need to find a method in this town.")NOD()W99()
    else
        MSG("Balrog told me that")
        CAT("\nMisery liked fireflies")
        CAT("\nwhen she was young.")NOD()CLR()
        CAT("But we don't have any tools")
        CAT("\nto catch fireflies,")NOD()
        CAT("\nwe need to find a method")
        CAT("\nin this town.")NOD()W99()
    end
end
RGM("SearchingForMethodsToCaptureFireflies","CS_mission_jack","Find a way to catch fireflies",
"ItemSystem_SearchingForMethodsToCaptureFireflies","ItemSystem_SearchingForMethodsToCaptureFireflies_Check")

function ItemSystem_GetTranslator()
    TUR()MSG("\n*Obtain a translator*")W99()
end
function ItemSystem_GetTranslator_Check()
    MSG("If we want to talk with humans,")NOD()
    CAT("\nwe need a translator.")NOD()CLR()
    CAT("Igor said the recycling shop")
    CAT("\nmight sell translators,")NOD()
    CAT("\nwe should check there.")NOD()W99()
end
RGM("GetTranslator","CS_mission_jack","Obtain a translator","ItemSystem_GetTranslator","ItemSystem_GetTranslator_Check")

function ItemSystem_AskGunsmithForHelp()
    TUR()MSG("\n*Ask the Gunsmith for help*")W99()
end
function ItemSystem_AskGunsmithForHelp_Check()
    if(GOP() == 1) then
        MSG("Chaba said the Gunsmith")
        CAT("\nmight help us find a way to catch them,")NOD()
        CAT("\nlet's check his repair shop.")NOD()W99()
    else
        MSG("Chaba said the Gunsmith")
        CAT("\nmight help us find a way")
        CAT("\nto catch them,")NOD()
        CAT("\nlet's check his repair shop.")NOD()W99()
    end
end
RGM("AskGunsmithForHelp","CS_mission_jack","Ask the Gunsmith for help","ItemSystem_AskGunsmithForHelp","ItemSystem_AskGunsmithForHelp_Check")

function ItemSystem_BringSomeDessert()
    TUR()MSG("\n*Bring dessert to the Gunsmith*")W99()
end
function ItemSystem_BringSomeDessert_Check()
    if(GOP() == 1) then
        MSG("The Gunsmith needs some dessert to")
        CAT("\nrestore his brainpower,")NOD()
        CAT("\nlet's check the cake shop.")NOD()W99()
    else
        MSG("The Gunsmith needs some")
        CAT("\ndessert to restore his")
        CAT("\nbrainpower,")NOD()
        CAT("\nlet's check the cake shop.")NOD()W99()
    end
end
RGM("BringSomeDessert","CS_mission_jack","Bring dessert to the Gunsmith","ItemSystem_BringSomeDessert","ItemSystem_BringSomeDessert_Check")

function ItemSystem_LackOfHoney()
    TUR()MSG("\n*Report about honey shortage*")W99()
end
function ItemSystem_LackOfHoney_Check()
    if(GOP() == 1) then
        MSG("Let's tell the Gunsmith why")
        CAT("\nthe cake shop can't make desserts anymore.")NOD()W99()
    else
        MSG("Let's tell the Gunsmith why")
        CAT("\nthe cake shop can't make")
        CAT("\ndesserts anymore.")NOD()W99()
    end
end
RGM("LackOfHoney","CS_mission_jack","Report about honey shortage","ItemSystem_LackOfHoney","ItemSystem_LackOfHoney_Check")

function ItemSystem_ExploreForest()
    TUR()MSG("\n*Explore the western forest*")W99()
end
function ItemSystem_ExploreForest_Check()
    MSG("The Gunsmith said he saw a")
    CAT("\nbeehive in the western forest,")NOD()
    CAT("\nlet's explore there.")NOD()W99()
end
RGM("ExploreForest","CS_mission_jack","Explore the western forest","ItemSystem_ExploreForest","ItemSystem_ExploreForest_Check")

function ItemSystem_BringHoneycombToGunsmith()
    if(GOP() == 1) then
        TUR()MSG("\n*Bring honeycomb to the Gunsmith*")W99()
    else
        TUR()MSG("*Bring honeycomb to")
        CAT("\nthe Gunsmith*")W99()
    end
end
function ItemSystem_BringHoneycombToGunsmith_Check()
    if(GOP() == 1) then
        MSG("Let's bring the honeycomb to the Gunsmith,")NOD()
        CAT("\nhe'll help us extract honey from it.")NOD()W99()
    else
        MSG("Let's bring the honeycomb") 
        CAT("\nto the Gunsmith,")NOD()
        CAT("\nhe'll help us extract")
        CAT("\nhoney from it.")NOD()W99()
    end
end
RGM("BringHoneycombToGunsmith","CS_mission_jack","Bring honeycomb to the Gunsmith","ItemSystem_BringHoneycombToGunsmith","ItemSystem_BringHoneycombToGunsmith_Check")

function ItemSystem_BringHoneyToBaker()
    TUR()MSG("\n*Bring honey to the baker*")W99()
end
function ItemSystem_BringHoneyToBaker_Check()
    if(GOP() == 1) then
        MSG("Let's bring the honey to the baker,")NOD()
        CAT("\nthen he can continue making desserts.")NOD()W99()
    else
        MSG("Let's bring the honey to")
        CAT("\nthe baker,")NOD()
        CAT("\nthen he can continue making")
        CAT("\ndesserts.")NOD()W99()
    end
end
RGM("BringHoneyToBaker","CS_mission_jack","Bring honey to the baker","ItemSystem_BringHoneyToBaker","ItemSystem_BringHoneyToBaker_Check")

function ItemSystem_BringDoughnutToGunsmith()
    TUR()MSG("\n*Bring dessert to the Gunsmith*")W99()
end
function ItemSystem_BringDoughnutToGunsmith_Check()
    if(GOP() == 1) then
        MSG("Let's bring the dessert to the Gunsmith,")NOD()
        CAT("\nthen he can add new functions to the gun.")NOD()W99()
    else
        MSG("Let's bring the dessert to")
        CAT("\nthe Gunsmith,")NOD()
        CAT("\nthen he can add new functions")
        CAT("\nto the gun.")NOD()W99()
    end
end
RGM("BringDoughnutToGunsmith","CS_mission_jack","Bring dessert to the Gunsmith","ItemSystem_BringDoughnutToGunsmith","ItemSystem_BringDoughnutToGunsmith_Check")

function ItemSystem_CatchFirefly()
    TUR()MSG("\n*Go catch fireflies*")W99()
end
function ItemSystem_CatchFirefly_Check()
    if(GOP() == 1) then
        MSG("Fireflies are in the western cave,")NOD()
        CAT("\nlet's catch some for Misery.")NOD()W99()
    else
        MSG("Fireflies are in the")
        CAT("\nwestern cave,")NOD()
        CAT("\nlet's catch some for")
        CAT("\nMisery.")NOD()W99()
    end
end
RGM("CatchFirefly","CS_mission_jack","Go catch fireflies","ItemSystem_CatchFirefly","ItemSystem_CatchFirefly_Check")

function ItemSystem_GiveToMisery()
    TUR()MSG("\n*Give fireflies to Misery*")W99()
end
function ItemSystem_GiveToMisery_Check()
    if(GOP() == 1) then
        MSG("If we give fireflies to Misery,")NOD()
        CAT("\nmaybe she'll be in a better mood and help us.")NOD()W99()
    else
        MSG("If we give fireflies to Misery,")NOD()
        CAT("\nmaybe she'll be in a better")
        CAT("\nmood and help us.")NOD()W99()
    end
end
RGM("GiveToMisery","CS_mission_jack","Give fireflies to Misery","ItemSystem_GiveToMisery","ItemSystem_GiveToMisery_Check")

function ItemSystem_GoFindJenka()
    TUR()MSG("\n*Find Jenka*")W99()
end
function ItemSystem_GoFindJenka_Check()
    if(GOP() == 1) then
        MSG("Leave town, pass through the Fire Cavern,")
        CAT("\nand find Jenka,")NOD()
        CAT("\nGrandma Jenka can help us find Toroko.")NOD()W99()
    else
        MSG("Leave town, pass through the") 
        CAT("\nFire Cavern, and find Jenka,")NOD()
        CAT("\nGrandma Jenka can help us")
        CAT("\nfind Toroko.")NOD()W99()
    end
end
RGM("GoFindJenka","CS_mission_jack","Find Jenka","ItemSystem_GoFindJenka","ItemSystem_GoFindJenka_Check")

function ItemSystem_SaveEveryone()
    TUR()MSG("\n*Rescue everyone*")W99()
end
function ItemSystem_SaveEveryone_Check()
    if(GOP() == 1) then
        MSG("Everyone is locked in an iron cage by monsters,")NOD()
        CAT("\nwe need to find a way to rescue them.")NOD()W99()
    else
        MSG("Everyone is locked in an")
        CAT("\niron cage by monsters,")NOD()
        CAT("\nwe need to find a way to")
        CAT("\nrescue them.")NOD()W99()
    end
end
RGM("SaveEveryone","CS_mission_jack","Rescue everyone","ItemSystem_SaveEveryone","ItemSystem_SaveEveryone_Check")

function ItemSystem_BringSomeFood()
    TUR()MSG("\n*Find food for everyone*")W99()
end
function ItemSystem_BringSomeFood_Check()
    if(GOP() == 1) then
        MSG("Sue and the others are starving in the iron cage,")NOD()
        CAT("\nlet's find something edible nearby for them...")NOD()W99()
    else
        MSG("Sue and the others are")
        CAT("\nstarving in the iron cage,")NOD()
        CAT("\nlet's find something")
        CAT("\nedible nearby for them...")NOD()W99()
    end
end
RGM("BringSomeFood","CS_mission_jack","Find food for everyone","ItemSystem_BringSomeFood","ItemSystem_BringSomeFood_Check")

function ItemSystem_ExploreEscapeRoutes()
    TUR()MSG("\n*Explore escape routes*")W99()
end
function ItemSystem_ExploreEscapeRoutes_Check()
    if(GOP() == 1) then
        MSG("Before rescuing everyone,")NOD()
        CAT("\nlet's explore nearby areas for escape routes.")NOD()W99()
    else
        MSG("Before rescuing everyone,")NOD()
        CAT("\nlet's explore nearby") 
        CAT("\nareas for escape routes.")NOD()W99()
    end
end
RGM("ExploreEscapeRoutes","CS_mission_jack","Explore escape routes","ItemSystem_ExploreEscapeRoutes","ItemSystem_ExploreEscapeRoutes_Check")

function ItemSystem_SaveEveryone_King()
    TUR()MSG("\n*Rescue everyone*")W99()
end
function ItemSystem_SaveEveryone_King_Check()
    if(GOP() == 1) then
        MSG("Everyone has been captured by monsters,")NOD()
        CAT("\nlet's head deeper into the cave and save them!")NOD()W99()
    else
        MSG("Everyone has been captured") 
        CAT("\nby monsters,")NOD()
        CAT("\nlet's head deeper into the")
        CAT("\ncave and save them!")NOD()W99()
    end
end
RGM("SaveEveryoneKing","CS_mission_king","Rescue everyone","ItemSystem_SaveEveryone_King","ItemSystem_SaveEveryone_King_Check")

function ItemSystem_SaveEveryone_Curly()
    TUR()MSG("\n*Save Everyone*")W99()
end
function ItemSystem_SaveEveryone_Curly_Check()
    if(GOP() == 1) then
        MSG("Everyone has been captured by monsters,")NOD()
        CAT("\nDefeat all enemies and save everyone!")NOD()W99()
    else
        MSG("Everyone has been captured") 
        CAT("\nby monsters,")NOD()
        CAT("\nDefeat all enemies and")
        CAT("\nsave everyone!")NOD()W99()
    end
end
RGM("SaveEveryoneCurly","CS_mission_curly","Save Everyone","ItemSystem_SaveEveryone_Curly","ItemSystem_SaveEveryone_Curly_Check")

function ItemSystem_FindMahinFinally()
    TUR()MSG("\n*Find Mahin*")W99()
end
function ItemSystem_FindMahinFinally_Check()
    if(GOP() == 1) then
        MSG("Mahin must be somewhere around here,")NOD()
        CAT("\nI have to find him.")NOD()W99()
    else
        MSG("Mahin must be somewhere")
        CAT("\naround here,")NOD()
        CAT("\nI have to find him.")NOD()W99()
    end
end
RGM("FindMahinFinally","CS_mission_kanpa","Find Mahin","ItemSystem_FindMahinFinally","ItemSystem_FindMahinFinally_Check")