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 GoPeaceTownFireCave()
    PRI()FAO(1)TRA("CS_peace_town_firecave","E0093",6,12)
end

function GoDarkPath()
    PRI()FAO(3)TRA("CS_darkpath","E0091",74,15)
end

function GateOpen()
    KEY()
    ANP("TorchMechanism",0,1)--维持所有火炬不再熄灭
    WAI(50)
    ANP("SunstoneGate","up")
    WAI(128)
    ANP("SunstoneGate","stop")
    MS3("\n太阳石闸门暂时已打开。")NOD()
    --通过的话就会关闭
    SNP("sys_trigger_v_allplayer",4,19,0,"mainLayer","GateClose")
end

function GateClose()
    DNP("GateClose")
    KEY()
    MM0()
    FAO(2)
    MOV(4,20,PLY())
    MOV(5,20,1-PLY())
    FAI(0)
    WAI(50)
    --关闭闸门
    ANP("SunstoneGate","down")
    WAI(128)
    ANP("SunstoneGate","stop")
end