main.floors.nandu= { "floorId": "nandu", "title": "难度选择", "name": "难度选择", "canFlyTo": false, "canUseQuickShop": true, "cannotViewMap": true, "images": [ { "name": "nanduxuanze.jpg", "canvas": "bg", "x": -80, "y": 0 } ], "item_ratio": 1, "color": [ 0, 0, 0, 1 ], "firstArrive": [ { "type": "trigger", "loc": [ 1, 0 ] } ], "events": { "4,3": null, "4,7": null, "1,0": [ { "type": "setGlobalAttribute", "name": "font", "value": "fzchyjw" }, { "type": "setText", "background": "winking.png" }, { "type": "setValue", "name": "flag:__B__", "value": "1" }, { "type": "setValue", "name": "flag:__A__", "value": "1" }, { "type": "playBgm", "name": "Swordland.mp3", "keep": true }, { "type": "setCurtain", "color": [ 0, 0, 0, 0 ], "time": 500, "keep": true }, { "type": "showImage", "code": 1, "image": "easy.png", "loc": [ 0, 64 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 2, "image": "anhard.png", "loc": [ 0, 192 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 3, "image": "ancheating.png", "loc": [ 0, 320 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 4, "image": "anhell.png", "loc": [ 0, 256 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 5, "image": "annormal.png", "loc": [ 0, 128 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 6, "image": "0easy.png", "loc": [ -160, 0 ], "opacity": 1, "time": 500 }, { "type": "if", "condition": "(flag:__B__==1)", "true": [ { "type": "setValue", "name": "flag:__B__", "value": "0" }, { "type": "setValue", "name": "flag:hard", "value": "1" }, { "type": "while", "condition": "1", "data": [ { "type": "wait" }, { "type": "if", "condition": "(flag:type==0)", "true": [ { "type": "if", "condition": "(flag:keycode==13)", "true": [ { "type": "setValue", "name": "flag:xuanzhong", "value": "1" } ], "false": [] }, { "type": "if", "condition": "(flag:keycode==32)", "true": [ { "type": "setValue", "name": "flag:xuanzhong", "value": "1" } ], "false": [] }, { "type": "if", "condition": "(flag:keycode==38)", "true": [ { "type": "setValue", "name": "flag:hard", "value": "flag:hard-1" } ], "false": [] }, { "type": "if", "condition": "(flag:keycode==40)", "true": [ { "type": "setValue", "name": "flag:hard", "value": "flag:hard+1" } ], "false": [] } ], "false": [ { "type": "if", "condition": "((flag:x<=3)&&(flag:y==2))", "true": [ { "type": "if", "condition": "(flag:hard==1)", "true": [ { "type": "setValue", "name": "flag:xuanzhong", "value": "1" } ], "false": [ { "type": "setValue", "name": "flag:hard", "value": "1" } ] } ], "false": [] }, { "type": "if", "condition": "((flag:x<=3)&&(flag:y==4))", "true": [ { "type": "if", "condition": "(flag:hard==2)", "true": [ { "type": "setValue", "name": "flag:xuanzhong", "value": "1" } ], "false": [ { "type": "setValue", "name": "flag:hard", "value": "2" } ] } ], "false": [] }, { "type": "if", "condition": "((flag:x<=3)&&(flag:y==6))", "true": [ { "type": "if", "condition": "(flag:hard==3)", "true": [ { "type": "setValue", "name": "flag:xuanzhong", "value": "1" } ], "false": [ { "type": "setValue", "name": "flag:hard", "value": "3" } ] } ], "false": [] }, { "type": "if", "condition": "((flag:x<=3)&&(flag:y==8))", "true": [ { "type": "if", "condition": "(flag:hard==4)", "true": [ { "type": "setValue", "name": "flag:xuanzhong", "value": "1" } ], "false": [ { "type": "setValue", "name": "flag:hard", "value": "4" } ] } ], "false": [] }, { "type": "if", "condition": "((flag:x<=3)&&(flag:y==10))", "true": [ { "type": "if", "condition": "(flag:hard==5)", "true": [ { "type": "setValue", "name": "flag:xuanzhong", "value": "1" } ], "false": [ { "type": "setValue", "name": "flag:hard", "value": "5" } ] } ], "false": [] } ] }, { "type": "if", "condition": "(flag:hard==6)", "true": [ { "type": "setValue", "name": "flag:hard", "value": "1" } ], "false": [] }, { "type": "if", "condition": "(flag:hard==0)", "true": [ { "type": "setValue", "name": "flag:hard", "value": "5" } ], "false": [] }, { "type": "if", "condition": "(flag:xuanzhong==1)", "true": [ { "type": "function", "function": "function(){\nswitch (core.getFlag(\"hard\")) {\ncase 1:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择简单难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\tbreak;\n\ncase 2:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择中等难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\tbreak;\ncase 3:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择困难难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\tbreak;\ncase 4:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择噩梦难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\tbreak;\ncase 5:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择作弊难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\n\tbreak;\n\n\n}\n}" } ], "false": [ { "type": "hideImage", "code": 1, "time": 0 }, { "type": "if", "condition": "(flag:hard==1)", "true": [ { "type": "showImage", "code": 6, "image": "0easy.png", "loc": [ -160, 0 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 1, "image": "easy.png", "loc": [ 0, 64 ], "opacity": 1, "time": 0 } ], "false": [ { "type": "showImage", "code": 1, "image": "aneasy.png", "loc": [ 0, 64 ], "opacity": 1, "time": 0 } ] }, { "type": "if", "condition": "(flag:hard==2)", "true": [ { "type": "showImage", "code": 6, "image": "0normal.png", "loc": [ -160, 0 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 2, "image": "normal.png", "loc": [ 0, 128 ], "opacity": 1, "time": 0 } ], "false": [ { "type": "showImage", "code": 2, "image": "annormal.png", "loc": [ 0, 128 ], "opacity": 1, "time": 0 } ] }, { "type": "if", "condition": "(flag:hard==3)", "true": [ { "type": "showImage", "code": 6, "image": "0hard.png", "loc": [ -160, 0 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 3, "image": "hard.png", "loc": [ 0, 192 ], "opacity": 1, "time": 0 } ], "false": [ { "type": "showImage", "code": 3, "image": "anhard.png", "loc": [ 0, 192 ], "opacity": 1, "time": 0 } ] }, { "type": "if", "condition": "(flag:hard==4)", "true": [ { "type": "showImage", "code": 6, "image": "0hell.png", "loc": [ -160, 0 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 4, "image": "hell.png", "loc": [ 0, 256 ], "opacity": 1, "time": 0 } ], "false": [ { "type": "showImage", "code": 4, "image": "anhell.png", "loc": [ 0, 256 ], "opacity": 1, "time": 0 } ] }, { "type": "if", "condition": "(flag:hard==5)", "true": [ { "type": "showImage", "code": 6, "image": "0cheating.png", "loc": [ -160, 0 ], "opacity": 1, "time": 0 }, { "type": "showImage", "code": 5, "image": "cheating.png", "loc": [ 0, 320 ], "opacity": 1, "time": 0 } ], "false": [ { "type": "showImage", "code": 5, "image": "ancheating.png", "loc": [ 0, 320 ], "opacity": 1, "time": 0 } ] } ] } ] }, { "type": "setCurtain", "color": [ 0, 0, 0, 1 ], "time": 0, "keep": true }, { "type": "hideImage", "code": 1, "time": 0 }, { "type": "hideImage", "code": 2, "time": 0 }, { "type": "hideImage", "code": 3, "time": 0 }, { "type": "hideImage", "code": 4, "time": 0 }, { "type": "hideImage", "code": 5, "time": 0 }, { "type": "hideImage", "code": 6, "time": 0 }, { "type": "setText", "position": "down", "background": "winskin2.png", "time": 20 }, { "type": "switch", "condition": "flag:hard", "caseList": [ { "case": "1", "action": [ { "type": "setGlobalAttribute", "name": "statusLeftBackground", "value": "url(project/images/heng1.png) 0 0/100% 100% no-repeat" }, { "type": "setGlobalAttribute", "name": "toolsBackground", "value": "url(project/images/dibu1.png) 0 0/100% 100% no-repeat" }, { "type": "update" }, { "type": "setBlock", "number": "122", "loc": [ [ 5, 5 ] ], "floorId": "MT0" } ] }, { "case": "2", "action": [ { "type": "setGlobalAttribute", "name": "statusLeftBackground", "value": "url(project/images/heng2.png) 0 0/100% 100% no-repeat" }, { "type": "setGlobalAttribute", "name": "toolsBackground", "value": "url(project/images/dibu2.png) 0 0/100% 100% no-repeat" }, { "type": "update" }, { "type": "setBlock", "number": "122", "loc": [ [ 5, 5 ] ], "floorId": "MT0" }, { "type": "setBlock", "number": "122", "loc": [ [ 5, 4 ] ], "floorId": "MT0" } ] }, { "case": "3", "action": [ { "type": "setGlobalAttribute", "name": "statusLeftBackground", "value": "url(project/images/heng3.png) 0 0/100% 100% no-repeat" }, { "type": "setGlobalAttribute", "name": "toolsBackground", "value": "url(project/images/dibu3.png) 0 0/100% 100% no-repeat" }, { "type": "update" } ] }, { "case": "4", "action": [ { "type": "setGlobalAttribute", "name": "statusLeftBackground", "value": "url(project/images/heng4.png) 0 0/100% 100% no-repeat" }, { "type": "setGlobalAttribute", "name": "toolsBackground", "value": "url(project/images/dibu4.png) 0 0/100% 100% no-repeat" }, { "type": "update" } ] }, { "case": "5", "action": [ { "type": "setGlobalAttribute", "name": "statusLeftBackground", "value": "url(project/images/heng5.png) 0 0/100% 100% no-repeat" }, { "type": "setGlobalAttribute", "name": "toolsBackground", "value": "url(project/images/dibu5.png) 0 0/100% 100% no-repeat" }, { "type": "update" }, { "type": "setBlock", "number": "122", "loc": [ [ 5, 5 ] ], "floorId": "MT0" }, { "type": "setValue", "name": "status:mdef", "value": "800" } ] } ] }, { "type": "function", "function": "function(){\nswitch(core.getFlag(\"hard\")){\n\tcase 1 :core.status.hard=\"简单\";\n\t\tbreak;\n\tcase 2 :core.status.hard=\"中等\";\n\t\tbreak;\t\n\tcase 3 :core.status.hard=\"困难\";\n\t\tbreak;\t\n\tcase 4 :core.status.hard=\"噩梦\";\n\t\tbreak;\t\n\tcase 5 :core.status.hard=\"作弊\";\n\t\tbreak;\n}\n}" }, { "type": "choices", "text": "是否跳过开始剧情", "choices": [ { "text": "否", "action": [ { "type": "setCurtain", "color": [ 0, 0, 0, 1 ], "time": 0, "keep": true }, { "type": "changeFloor", "floorId": "QISHI", "loc": [ 0, 0 ], "time": 0 }, { "type": "trigger", "loc": [ 1, 0 ] } ] }, { "text": "是", "action": [ { "type": "changeFloor", "floorId": "MT0", "loc": [ 7, 11 ], "time": 0 }, { "type": "function", "function": "function(){\ncore.plugin.donghua();\n}" }, { "type": "setCurtain", "color": [ 0, 0, 0, 0 ], "time": 0, "keep": true } ] } ] } ] } ], "2,0": [ { "type": "setCurtain", "keep": true, "time": 500 }, { "type": "playBgm", "name": "longyingsuifeng.mp3" }, { "type": "changeFloor", "floorId": "PIANTOU8", "loc": [ 8, 8 ], "direction": "up", "time": 0 }, { "type": "trigger", "loc": [ 1, 0 ] } ] }, "changeFloor": {}, "afterBattle": { "5,5": null }, "afterGetItem": {}, "afterOpenDoor": {}, "cannotMove": {}, "ratio": 1, "map": [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ], "bgmap": [ ], "fgmap": [ ], "width": 15, "height": 15, "autoEvent": { "1,0": { "0": null, "1": null, "2": null, "3": null, "4": null, "5": null, "6": null, "7": null, "8": null } }, "beforeBattle": {}, "cannotMoveIn": {} }