var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = { "main": { "floorIds": [ "MT0", "GM1", "GM2", "GM3", "GM4", "GM5", "GM6", "BH1", "BH2", "BH3", "BH4", "BH5", "BH6", "BH7", "BH8", "BH9", "BH10" ], "floorPartitions": [], "images": [ "1.jpg", "bear.png", "bg.jpg", "brave.png", "dragon.png", "hero.png", "shengzi.png", "winskin.png" ], "tilesets": [ "magictower.png", "VX.png", "Riqueza.png", "12.png", "026-Castle02.png", "tilesets.min.png" ], "animates": [ "atkUp", "balloonhan", "balloonmusic", "balloonnao", "balloonspeak", "balloontan", "balloonwen", "baozha", "baozha2", "bigExplosion", "bing", "blackmagic", "boss11", "boss13", "boss15", "boss8", "chanrao", "chuansong", "dark", "dark3", "darkattack", "defUp", "die", "double", "emo", "fire", "fire2", "fire3", "fire4", "fire5", "firesword", "hand", "hand2", "heal", "heidong3", "ice", "jianji", "jinshu", "jinshu2", "jinshu3", "kulou", "light", "light2", "rage_buff", "re", "red", "sg", "sur", "sword", "sword1", "sword2", "sword3", "sword4", "sword5", "sword6", "swordN", "thunder", "thunder2", "thunder3", "water", "yijianzhanqianye", "yongchang", "zhuanhua", "zone" ], "bgms": [ "mingyunshouhu.mp3", "xian.mp3" ], "sounds": [ "048-Explosion01.ogg", "049-Explosion02.ogg", "050-Explosion03.ogg", "051-Explosion04.ogg", "061-Thunderclap01.ogg", "073-Animal08.ogg", "085-Monster07.ogg", "099-Attack11.mp3", "1.flac", "120-Ice01.ogg", "121-Ice02.ogg", "122-Ice03.ogg", "129-Earth01.ogg", "130-Earth02.ogg", "131-Earth03.ogg", "2.ogg", "Ice7.mp3", "LocoHorn.ogg", "MaleScream.mp3", "Saint7.mp3", "Thunder01.ogg", "Thunder02.ogg", "Thunder03.ogg", "Water01.ogg", "Water02.ogg", "Water03.ogg", "action2.mp3", "aliu.mp3", "attack.mp3", "baoshi.mp3", "biteC.mp3", "blood.mp3", "bomb.mp3", "book.mp3", "boss11.mp3", "boss112.mp3", "boss13.mp3", "boss17.mp3", "boss8.mp3", "burst.mp3", "cancel.mp3", "centerFly.mp3", "chanrao.mp3", "chaokong.mp3", "chuansong.mp3", "chuansong2.mp3", "confirm.mp3", "cursor.mp3", "door.mp3", "emo.mp3", "equip.mp3", "error.mp3", "fire2.mp3", "fire4.mp3", "fire5.mp3", "floor.mp3", "floor2.mp3", "gem.mp3", "glz.mp3", "guixiao.mp3", "hand.mp3", "hand.wav", "hand2.mp3", "hand4.mp3", "heal.mp3", "heal1.mp3", "heal2.mp3", "heal4.mp3", "heal5.mp3", "heidong2.mp3", "heidong3.mp3", "icePickaxe.mp3", "item.mp3", "item2.mp3", "item3.mp3", "jiguan.mp3", "jump.mp3", "jump2.mp3", "keys.mp3", "leiji.mp3", "levelup.mp3", "light.mp3", "load.mp3", "luodi.mp3", "open_ui.mp3", "pickaxe.mp3", "poison.mp3", "pugong2.mp3", "recovery.mp3", "save.mp3", "selector.mp3", "shop.mp3", "slide.mp3", "sword.wav", "sword2.mp3", "sword3.mp3", "sword5.mp3", "sword5a.mp3", "sword6.mp3", "swordN.mp3", "thound.mp3", "water.mp3", "zhuanhua.mp3", "zipper.mp3", "zone.mp3", "zone.wav" ], "fonts": [], "nameMap": { "确定": "confirm.mp3", "取消": "cancel.mp3", "操作失败": "error.mp3", "光标移动": "cursor.mp3", "打开界面": "open_ui.mp3", "读档": "load.mp3", "存档": "save.mp3", "获得道具": "item.mp3", "回血": "recovery.mp3", "炸弹": "bomb.mp3", "飞行器": "centerFly.mp3", "开关门": "door.mp3", "上下楼": "floor.mp3", "跳跃": "jump.mp3", "破墙镐": "pickaxe.mp3", "破冰镐": "icePickaxe.mp3", "宝石": "gem.mp3", "阻激夹域": "zone.mp3", "穿脱装备": "equip.mp3", "背景音乐": "bgm.mp3", "攻击": "attack.mp3", "背景图": "bg.jpg", "商店": "shop.mp3", "领域": "zone" }, "levelChoose": [ { "title": "简单", "name": "Easy", "hard": 1, "color": [ 64, 255, 85, 1 ], "action": [ "简单模式赠送100瓶琼浆和100瓶玉露", { "type": "setValue", "name": "item:I415", "operator": "+=", "value": "100" }, { "type": "setValue", "name": "item:I416", "operator": "+=", "value": "100" } ] }, { "title": "困难", "name": "Hard", "hard": 3, "color": [ 255, 68, 64, 1 ], "action": [] } ], "equipName": [ "法杖", "卷轴", "法袍" ], "startBgm": "mingyunshouhu.mp3", "styles": { "startBackground": "project/images/bg.jpg", "startVerticalBackground": "project/images/bg.jpg", "startLogoStyle": "color: red", "startButtonsStyle": "background-color: #32369F; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;", "statusLeftBackground": "url(project/materials/1.png) repeat", "statusTopBackground": "url(project/materials/1.png) repeat", "toolsBackground": "url(project/materials/1.png) repeat", "floorChangingStyle": "background-color: black; color: red", "statusBarColor": [ 255, 255, 255, 1 ], "borderColor": [ 221, 242, 11, 1 ], "selectColor": [ 255, 215, 0, 1 ], "font": "Verdana" }, "splitImages": [ { "name": "dragon.png", "width": 384, "height": 96, "prefix": "dragon_" } ] }, "firstData": { "title": "旧约•圣骑士", "name": "jiuyueshengqishi", "version": "Ver 2.10.0", "floorId": "MT0", "hero": { "image": "shengzi.png", "animate": false, "name": "辉", "lv": 1, "hpmax": 1000, "hp": 1000, "manamax": -1, "mana": 100, "atk": 10, "def": 10, "mdef": 0, "money": 0, "exp": 0, "equipment": [], "items": { "constants": {}, "tools": {}, "equips": {} }, "loc": { "direction": "up", "x": 6, "y": 10 }, "flags": {}, "followers": [], "steps": 0 }, "startCanvas": [ { "type": "comment", "text": "在这里可以用事件来自定义绘制标题界面的背景图等" }, { "type": "comment", "text": "也可以直接切换到其他楼层(比如某个开始剧情楼层)进行操作。" }, { "type": "previewUI", "action": [ { "type": "fillRect", "x": 0, "y": 0, "width": "core._PX_ || core.__PIXELS__", "height": "core._PY_ || core.__PIXELS__", "style": [ 82, 82, 82, 1 ] }, { "type": "setAttribute", "align": "center" }, { "type": "fillBoldText", "x": "(core._PX_ || core.__PIXELS__) / 2", "y": 80, "style": [ 255, 255, 255, 1 ], "strokeStyle": [ 0, 0, 0, 1 ], "font": "bold 40px Verdana", "text": "${core.firstData.title}" } ] }, { "type": "setValue", "name": "flag:selection", "value": "0" }, { "type": "comment", "text": "在右下方自绘一个对话框进行显示选择项" }, { "type": "previewUI", "action": [ { "type": "fillRect", "x": 230, "y": 250, "width": 150, "height": 142, "radius": 10, "style": [ 50, 54, 159, 0.85 ] }, { "type": "strokeRect", "x": 230, "y": 250, "width": 150, "height": 142, "radius": 10, "style": [ 255, 255, 255, 1 ], "lineWidth": 2 }, { "type": "fillBoldText", "x": 305, "y": 290, "style": [ 255, 255, 255, 1 ], "font": "bold 25px Verdana", "text": "开始游戏" }, { "type": "fillBoldText", "x": 305, "y": 330, "font": "bold 25px Verdana", "text": "读取存档" }, { "type": "fillBoldText", "x": 305, "y": 370, "font": "bold 25px Verdana", "text": "回放录像" } ] }, { "type": "while", "condition": "1", "data": [ { "type": "drawSelector", "image": "winskin.png", "code": 1, "x": 245, "y": "261 + 40*flag:selection", "width": 120, "height": 40 }, { "type": "wait", "data": [ { "case": "keyboard", "keycode": "13,32", "break": true, "action": [ { "type": "switch", "condition": "flag:selection", "caseList": [ { "case": "0", "action": [ { "type": "comment", "text": "在“开始游戏”确定" }, { "type": "break", "n": 1 } ] }, { "case": "1", "action": [ { "type": "comment", "text": "在“读取存档”确定" }, { "type": "callLoad" } ] }, { "case": "2", "action": [ { "type": "comment", "text": "在“回放录像”确定" }, { "type": "if", "condition": "(!core.isReplaying())", "true": [ { "type": "function", "function": "function(){\ncore.chooseReplayFile()\n}" } ] } ] } ] } ] }, { "case": "keyboard", "keycode": "38", "break": true, "action": [ { "type": "comment", "text": "光标上键" }, { "type": "setValue", "name": "flag:selection", "value": "(flag:selection + 2) % 3" } ] }, { "case": "keyboard", "keycode": "40", "break": true, "action": [ { "type": "comment", "text": "光标下键" }, { "type": "setValue", "name": "flag:selection", "value": "(flag:selection + 1) % 3" } ] }, { "case": "mouse", "px": [ 245, 365 ], "py": [ 261, 300 ], "break": true, "action": [ { "type": "comment", "text": "点击“开始游戏”" }, { "type": "break", "n": 1 } ] }, { "case": "mouse", "px": [ 245, 365 ], "py": [ 301, 340 ], "break": true, "action": [ { "type": "comment", "text": "点击“读取存档”" }, { "type": "callLoad" } ] }, { "case": "mouse", "px": [ 245, 365 ], "py": [ 341, 380 ], "break": true, "action": [ { "type": "comment", "text": "点击“播放录像”" }, { "type": "if", "condition": "(!core.isReplaying())", "true": [ { "type": "function", "function": "function(){\ncore.chooseReplayFile()\n}" } ] } ] } ] } ] }, { "type": "setValue", "name": "flag:selection", "value": "null" }, { "type": "drawSelector", "code": 1 }, { "type": "clearMap" }, { "type": "function", "function": "function(){\ncore.control.checkBgm()\n}" }, { "type": "if", "condition": "(main.levelChoose.length == 0)", "true": [ { "type": "comment", "text": "没有难度选择:直接开始游戏" } ], "false": [ { "type": "comment", "text": "难度选择:作为样例,这里只提供了一个显示选择项。" }, { "type": "function", "function": "function(){\nvar choices = [];\nmain.levelChoose.forEach(function (one) {\n\tchoices.push({\n\t\t\"text\": one.title || '',\n\t\t\"action\": [\n\t\t\t{ \"type\": \"function\", \"function\": \"function() { core.status.hard = '\" + (one.name || '') + \"'; }\" }\n\t\t]\n\t});\n})\ncore.insertAction({ \"type\": \"choices\", \"choices\": choices });\n}" }, { "type": "comment", "text": "你也可以仿照上面的样例进行自己创建等待用户操作来处理不同的难度分歧。\n如需自己处理,请设置 core.status.hard \n(例如,自定义js脚本:core.status.hard = 'Easy' )" } ] }, { "type": "clearMap" }, { "type": "comment", "text": "接下来会执行startText中的事件" }, { "type": "comment", "text": "状态栏默认处于隐藏状态;可以使用“显示状态栏”事件进行显示。" } ], "startText": [ { "type": "comment", "text": "初始剧情" }, { "type": "setText", "background": [ 180, 180, 8, 1 ] }, { "type": "showImage", "code": 1, "image": "1.jpg", "loc": [ 0, 0 ], "opacity": 1, "time": 0 }, "很久以前,世界上曾有两位神明,光明神和黑暗神。他们掌管着世间的光明和黑暗,但千年前的一场神之战,让两位神明决裂,光明神赢得了这场神之战的胜利,于是黑暗神被驱逐到了大陆的边缘,深渊之中,随之被驱逐的,还有黑暗神的信徒们……千年以后,光明神的信徒——光明神殿所属,已经成为大陆最强大的势力。光明神殿位列大陆中央,东依东凌帝国,西傍西武帝国,南临南荒国,北靠北寒帝国。拥有二十八大家族,实力雄厚,即便是精灵王国信奉的精灵神、水神殿信奉的水神、智慧神殿信奉的智慧之神等神明,不得避其锋芒。\n我们的故事,便是从这里开始……", { "type": "hideImage", "code": 1, "time": 0 } ], "shops": [ { "id": "shop1", "text": "\t[光明神殿,N464]虔诚的信徒啊, 给我${80+10*flag:shop1}信仰就可以:", "textInList": "光明神殿", "mustEnable": false, "disablePreview": false, "choices": [ { "text": "攻击+4", "need": "status:money>=80+10*flag:shop1", "color": [ 235, 3, 44, 1 ], "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "80+10*flag:shop1" }, { "type": "setValue", "name": "flag:shop1", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "status:atk", "operator": "+=", "value": "4" } ] }, { "text": "防御+6", "need": "status:money>=80+10*flag:shop1", "color": [ 11, 252, 246, 1 ], "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "80+10*flag:shop1" }, { "type": "setValue", "name": "flag:shop1", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "status:def", "operator": "+=", "value": "6" } ] }, { "text": "护盾+12,生命上限+100,生命值+100,魔力+50", "need": "status:money>=80+10*flag:shop1", "color": [ 22, 242, 149, 1 ], "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "80+10*flag:shop1" }, { "type": "setValue", "name": "flag:shop1", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "status:mdef", "operator": "+=", "value": "12" }, { "type": "setValue", "name": "status:hpmax", "operator": "+=", "value": "100" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "100" }, { "type": "setValue", "name": "status:mana", "operator": "+=", "value": "50" } ] } ] }, { "id": "shop2", "text": "\t[四长老,N669]小圣子啊, 给我足够的金币或物品就可以:", "textInList": "四长老", "mustEnable": false, "disablePreview": false, "choices": [ { "text": "黄钥匙(40金币)", "need": "status:money>=40", "icon": "yellowKey", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "40" }, { "type": "setValue", "name": "item:yellowKey", "operator": "+=", "value": "1" } ] }, { "text": "蓝钥匙(80金币)", "need": "status:money>=80", "icon": "blueKey", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "80" }, { "type": "setValue", "name": "item:blueKey", "operator": "+=", "value": "1" } ] }, { "text": "红钥匙(200金币)", "need": "status:money>=200", "icon": "redKey", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "200" }, { "type": "setValue", "name": "item:blueKey", "operator": "+=", "value": "1" } ] }, { "text": "20金币(黄钥匙)", "need": "item:yellowKey>=1", "icon": "coin", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "item:yellowKey", "operator": "-=", "value": "1" }, { "type": "setValue", "name": "status:money", "operator": "+=", "value": "20" } ] }, { "text": "40金币(蓝钥匙)", "need": "item:blueKey>=1", "icon": "coin", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "item:blueKey", "operator": "-=", "value": "1" }, { "type": "setValue", "name": "status:money", "operator": "+=", "value": "40" } ] }, { "text": "100金币(红钥匙)", "need": "item:redKey>=1", "icon": "coin", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "item:redKey", "operator": "-=", "value": "1" }, { "type": "setValue", "name": "status:money", "operator": "+=", "value": "100" } ] } ] }, { "id": "shop3", "text": "\t[六长老,N653]小圣子啊, 给我足够的金币或物品就可以:", "textInList": "六长老", "mustEnable": false, "disablePreview": false, "choices": [ { "text": "琼浆(200金币)", "need": "status:money>=200", "icon": "I415", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "200" }, { "type": "setValue", "name": "item:I415", "operator": "+=", "value": "1" } ] }, { "text": "玉露(400金币)", "need": "status:money>=400", "icon": "I416", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "400" }, { "type": "setValue", "name": "item:I416", "operator": "+=", "value": "1" } ] }, { "text": "炸弹(500金币)", "need": "status:money>=500", "icon": "bomb", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "500" }, { "type": "setValue", "name": "item:bomb", "operator": "+=", "value": "1" } ] }, { "text": "对称飞行器(500金币)", "need": "status:money>=500", "icon": "centerFly", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "500" }, { "type": "setValue", "name": "item:centerFly", "operator": "+=", "value": "1" } ] }, { "text": "破墙镐(600金币)", "need": "status:money>=600", "icon": "pickaxe", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "600" }, { "type": "setValue", "name": "item:pickaxe", "operator": "+=", "value": "1" } ] }, { "text": "瞬移飞行器(1500金币)", "need": "status:money>=1500", "icon": "I596", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "1500" }, { "type": "setValue", "name": "item:I596", "operator": "+=", "value": "1" } ] }, { "text": "强力炸弹(2500金币)", "need": "status:money>=2500", "icon": "I407", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "2500" }, { "type": "setValue", "name": "item:I407", "operator": "+=", "value": "1" } ] }, { "text": "地震卷轴(3000金币)", "need": "status:money>=3000", "icon": "earthquake", "action": [ { "type": "comment", "text": "新版商店中需要手动扣减金币和增加访问次数" }, { "type": "setValue", "name": "status:money", "operator": "-=", "value": "3000" }, { "type": "setValue", "name": "item:earthquake", "operator": "+=", "value": "1" } ] } ] } ], "levelUp": [ { "need": "0", "title": "", "action": [ { "type": "comment", "text": "此处是初始等级,只需填写称号" } ] }, { "need": "20", "title": "", "action": [ { "type": "setValue", "name": "status:atk", "operator": "+=", "value": "10" }, { "type": "setValue", "name": "status:def", "operator": "+=", "value": "10" } ] }, { "need": "40", "title": "", "action": [ { "type": "tip", "text": "恭喜升级" } ] } ] }, "values": { "lavaDamage": 100, "poisonDamage": 10, "weakValue": 20, "redGem": 1, "blueGem": 1, "greenGem": 2, "redPotion": 50, "bluePotion": 100, "yellowPotion": 200, "greenPotion": 400, "breakArmor": 0.9, "counterAttack": 0.1, "purify": 3, "hatred": 2, "animateSpeed": 300, "moveSpeed": 100, "statusCanvasRowsOnMobile": 3, "floorChangeTime": 100 }, "flags": { "statusBarItems": [ "enableFloor", "enableName", "enableHPMax", "enableHP", "enableMana", "enableAtk", "enableDef", "enableMDef", "enableMoney", "enableKeys", "enableGreenKey", "enablePZF", "enableSkill" ], "autoScale": true, "extendToolbar": false, "flyNearStair": false, "flyRecordPosition": false, "itemFirstText": true, "equipboxButton": false, "enableAddPoint": false, "enableNegativeDamage": false, "betweenAttackMax": false, "useLoop": true, "startUsingCanvas": false, "statusCanvas": false, "enableEnemyPoint": true, "enableGentleClick": true, "ignoreChangeFloor": true, "canGoDeadZone": false, "enableMoveDirectly": true, "enableRouteFolding": true, "disableShopOnDamage": false, "blurFg": false, "hideLeftStatusBar": false } }