function E0090()
    MNA()CMU("CS_Vivi")FAI(0)
end
function E0091()
    MNA()CMU("CS_Vivi")FAI(1)
end
function E0092()
    MNA()CMU("CS_Vivi")FAI(2)
end
function E0093()
    MNA()CMU("CS_Vivi")FAI(3)
end
function E0094()
    MNA()CMU("CS_Vivi")FAI(4)
end

function Door_GoPeaceTown()
    PRI()MM0()SOU("CS_011_door")ANP("Door_GoPeaceTown",0,1)FAO(2)TRA("CS_peace_town","E0090",82,15)
end

function Chaba1()
    if(FLJ("RepairKeeperIsGunSmith")) then
        KEY()MS3("The repair shop owner is actually a gunsmith...")NOD()
        CAT("\nPerhaps he can help you out.")NOD()
    elseif(FLJ("ChatWithChaba")) then
        Chaba1_chat()
    else
        KEY()
        MS3("Yo,")NOD()
        CAT("\nSurprised to see a Mimiga here.")NOD()
        CAT("\nAren't you afraid of us?")NOD()CLR()
        FAC("jack_normal")CAT("\nWhy, you ask?")NOD()CLR()
        FAC()CAT("We Gaudi are creatures that")
        CAT("\nfeed on Mimigas.")NOD()
        CAT("\nBut we wouldn't dare cause trouble")
        CAT("\nin this town,")NOD()
        CAT("\nafter all, it's called 'Peace Town.'")NOD()CLR()
        FAC("jack_normal")CAT("Speaking of which,") 
        CAT("\nthis place looks empty,")NOD()
        CAT("\nlike something's missing,") 
        CAT("\ndoesn't it?")NOD()CLR()
        FAC()CAT("That's right,")NOD()
        CAT("\nnot long ago our boss") 
        CAT("\nfound a new supply source,")NOD()
        CAT("\nand needed money for the deal no matter what...")NOD()
        CAT("\nSo he sold off all the equipment around here,")NOD()
        CAT("\nleaving me with just these few lamps.")NOD()CLR()
        FLP("ChatWithChaba")
        Chaba1_chat()
    end
end

function Chaba1_chat()
    KEY()
    MS3("\nSo, what did you need me for?")NOD()CLR()
    if(FLJ("ChatWithBalrog_GoodLuck")) then
        WayToCatchFirefly()
    else
        Nothing()
    end
end

function Nothing()
    KEY()
    FAC("jack_normal")MS3("\nNothing really...")NOD()
end

function WayToCatchFirefly()
    KEY()
    FAC("jack_normal")MS3("\nDo you know about fireflies?")NOD()CLR()
    FAC()CAT("Of course I do.")NOD()
    CAT("\nThere are some in the cave west of town.")NOD()
    CAT("\nAre you trying to catch fireflies?")NOD()CLR()
    FAC("jack_normal")CAT("That's right,")NOD()
    CAT("\nBut we don't have a way")
    CAT("\nto capture them...")NOD()
    CAT("\nOur weapons would probably") 
    CAT("\njust kill them,")NOD()CLR()
    FAC()CAT("A Bubbler and Fireball, you see...")NOD()
    CAT("\nCould I take a look at them for a moment?")YNJ()CLR()
    if(YES()) then
        FAC("jack_normal")CAT("\nI guess so.")NOD()CLR()
        AMC("hide_gun")
        GIT("Bubbler")
        FAC()CAT("Handed over the Bubbler.")NOD()
        GIT("Fireball")
        CAT("\nHanded over the Fireball.")NOD()CLR()
        GIT()
        SOU("CS_071_little_crash")
        CAT("\nHAH!!")NOD()CLR()
        FAC("jack_normal")CAT("Hey! What are you doing")
        CAT("\nwith our guns?!")NOD()CLR()
        FAC()CAT("Just seeing if they could be combined...")NOD()
        CAT("\nNo reaction at all. How boring.")NOD()CLR()
        CAT("But I suppose it makes sense.")NOD()
        CAT("\nWater-type and fire-type guns")
        CAT("\nwouldn't likely react together anyway.")NOD()CLR()
        FAC("jack_><")CAT("Good thing there was no reaction...")NOD()
        CAT("\n(Otherwise one of us would be")
        CAT("\nout of luck)")NOD()CLR()
        AMC("show_gun")
        GIT("Bubbler")
        FAC()CAT("Got the Bubbler back.")NOD()
        GIT("Fireball")
        CAT("\nGot the Fireball back.")NOD()CLR()
        GIT()
    else
        FAC("jack_normal")CAT("No way!")NOD()
        CAT("\nThese guns are our most") 
        CAT("\nimportant possessions.")NOD()
        CAT("\nWe can't just hand them") 
        CAT("\nover to anyone.")NOD()CLR()
        FAC()CAT("\nI suppose that's true...")NOD()CLR()
    end
    FAC("jack_normal")CAT("You seem to know quite a bit")
    CAT("\nabout guns, huh?")NOD()
    CAT("\nAnd you even know their names.")NOD()CLR()
    FAC()CAT("Those two are indeed that gunsmith's work.")NOD()CLR()
    CAT("But he doesn't make guns anymore.")NOD()
    CAT("\nInstead, he opened a repair shop.")NOD()CLR()
    CAT("With his skills,")NOD()
    CAT("\nhe could definitely help you out.")NOD()CLR()
    FAC("jack_normal")CAT("\nThanks for chatting with me so much!")NOD()CLR()
    FAC()CAT("No problem. I'm Chaba.")NOD()
    CAT("\nFeel free to drop by anytime.")NOD()
    FLP("RepairKeeperIsGunSmith")
    MSA("AskGunsmithForHelp")
end

function ChabaGoHome()
    KEY()
    HMC()
    CMU("CS_Jenka")
    FAI(2)
    MS3("Finally off work...")NOD()
    CAT("\nWonder how those two armed kids are doing.")NOD()
    CAT("\nWhen I think about that look in their eyes,")
    CAT("\nI can't shake the feeling something")
    CAT("\nbig is about to happen...")NOD()CLR()
    CAT("Enough thinking, I'm exhausted.")NOD()
    CAT("\nTime to head home and crash.")NOD()CLO()
    FAO(0)
    TRA("CS_gaudi_city","ChabaGoHome",162,43)
end