test
This commit is contained in:
1 parent
4564588494
commit
eedbd3d457
19 files changed
+1081
-470
No files matched your search
+227
-172
@@ -1,173 +1,228 @@
|
||||
data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
{
|
||||
"main" : {
|
||||
"floorIds" : [
|
||||
"sample0", "sample1", "sample2", "sample3", "MT0"
|
||||
],
|
||||
"images" : [
|
||||
"bg.jpg"
|
||||
],
|
||||
"animates" : [
|
||||
"hand", "sword", "zone"
|
||||
],
|
||||
"bgms" : [
|
||||
'bgm.mp3'
|
||||
],
|
||||
"sounds" : [
|
||||
'floor.mp3', 'attack.mp3', 'door.mp3', 'item.mp3', 'zone.mp3', 'jump.mp3'
|
||||
],
|
||||
"startBackground" : "bg.jpg",
|
||||
"startLogoStyle" : "color: black",
|
||||
"levelChoose" : [["简单","Easy"],["普通","Normal"],["困难","Hard"],["噩梦","Hell"]],
|
||||
"statusLeftBackground": "url(project/images/ground.png) repeat",
|
||||
"statusTopBackground": "url(project/images/ground.png) repeat",
|
||||
"toolsBackground": "url(project/images/ground.png) repeat",
|
||||
"borderColor": "white"
|
||||
},
|
||||
"firstData" : {
|
||||
"title": "魔塔样板",
|
||||
"name": "template",
|
||||
"version": "Ver 2.4",
|
||||
"floorId": "sample0",
|
||||
"hero": {
|
||||
"name": "阳光",
|
||||
'lv': 1,
|
||||
"hpmax": 9999,
|
||||
"hp": 1000,
|
||||
"atk": 100,
|
||||
"def": 100,
|
||||
"mdef": 100,
|
||||
"money": 100,
|
||||
"experience": 0,
|
||||
"items": {
|
||||
"keys": {
|
||||
"yellowKey": 0,
|
||||
"blueKey": 0,
|
||||
"redKey": 0
|
||||
},
|
||||
"constants": {},
|
||||
"tools": {}
|
||||
},
|
||||
"flyRange": [],
|
||||
"loc": {"direction": "up", "x": 6, "y": 10},
|
||||
"flags": {},
|
||||
"steps": 0,
|
||||
},
|
||||
"startText": [
|
||||
"Hi,欢迎来到 HTML5 魔塔样板!\n\n本样板由艾之葵制作,可以让你在不会写任何代码\n的情况下也能做出属于自己的H5魔塔!",
|
||||
"这里游戏开始时的剧情。\n定义在data.js的startText处。\n\n你可以在这里写上自己的内容。",
|
||||
"赶快来试一试吧!"
|
||||
],
|
||||
"shops": [
|
||||
{
|
||||
"id": "moneyShop1",
|
||||
"name": "贪婪之神",
|
||||
"icon": "blueShop",
|
||||
"textInList": "1F金币商店",
|
||||
"use": "money",
|
||||
"need": "20+10*times*(times+1)",
|
||||
"text": "勇敢的武士啊,给我${need}金币就可以:",
|
||||
"choices": [
|
||||
{"text": "生命+800", "effect": "status:hp+=800"},
|
||||
{"text": "攻击+4", "effect": "status:atk+=4"},
|
||||
{"text": "防御+4", "effect": "status:def+=4"},
|
||||
{"text": "魔防+10", "effect": "status:mdef+=10"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "expShop1",
|
||||
"name": "经验之神",
|
||||
"icon": "pinkShop",
|
||||
"textInList": "1F经验商店",
|
||||
"use": "experience",
|
||||
"need": "-1",
|
||||
"text": "勇敢的武士啊,给我若干经验就可以:",
|
||||
"choices": [
|
||||
{"text": "等级+1", "need": "100", "effect": "status:lv+=1;status:hp+=1000;status:atk+=7;status:def+=7"},
|
||||
{"text": "攻击+5", "need": "30", "effect": "status:atk+=5"},
|
||||
{"text": "防御+5", "need": "30", "effect": "status:def+=5"},
|
||||
]
|
||||
}
|
||||
],
|
||||
"levelUp": [
|
||||
{},
|
||||
{"need": 20, "name": "第二级", "effect": "status:hp+=2*(status:atk+status:def);status:atk+=10;status:def+=10"},
|
||||
{"need": 40, "effect": function () {
|
||||
core.insertAction("恭喜升级!");
|
||||
core.status.hero.hp *= 2;
|
||||
core.status.hero.atk += 100;
|
||||
core.status.hero.def += 100;
|
||||
}},
|
||||
]
|
||||
},
|
||||
|
||||
"values" : {
|
||||
"lavaDamage": 100,
|
||||
"poisonDamage": 10,
|
||||
"weakValue": 20,
|
||||
"redJewel": 3,
|
||||
"blueJewel": 3,
|
||||
"greenJewel": 5,
|
||||
"redPotion": 100,
|
||||
"bluePotion": 250,
|
||||
"yellowPotion": 500,
|
||||
"greenPotion": 800,
|
||||
"sword0": 0,
|
||||
"shield0": 0,
|
||||
"sword1": 10,
|
||||
"shield1": 10,
|
||||
"sword2": 20,
|
||||
"shield2": 20,
|
||||
"sword3": 40,
|
||||
"shield3": 40,
|
||||
"sword4": 80,
|
||||
"shield4": 80,
|
||||
"sword5": 160,
|
||||
"shield5": 160,
|
||||
"moneyPocket": 500,
|
||||
'breakArmor': 0.9,
|
||||
'counterAttack': 0.1,
|
||||
'purify': 3,
|
||||
'hatred': 2,
|
||||
'maxValidHp': null,
|
||||
'animateSpeed': 300,
|
||||
},
|
||||
|
||||
"flags" : {
|
||||
"enableFloor": true,
|
||||
"enableLv": false,
|
||||
"enableHPMax": false,
|
||||
"enableMDef": true,
|
||||
"enableMoney": true,
|
||||
"enableExperience": false,
|
||||
"enableLevelUp": false,
|
||||
"enableKeys": true,
|
||||
"enablePZF": false,
|
||||
"enableDebuff": false,
|
||||
"flyNearStair": true,
|
||||
"pickaxeFourDirections": false,
|
||||
"bombFourDirections": false,
|
||||
"snowFourDirections": false,
|
||||
"bigKeyIsBox": false,
|
||||
"equipment": false,
|
||||
"enableAddPoint": false,
|
||||
"enableNegativeDamage": false,
|
||||
"hatredDecrease": true,
|
||||
"betweenAttackCeil": false,
|
||||
"useLoop": false,
|
||||
"startDirectly": false,
|
||||
"canOpenBattleAnimate": true,
|
||||
"showBattleAnimateConfirm": false,
|
||||
"battleAnimate": false,
|
||||
"displayEnemyDamage": true,
|
||||
"displayCritical": true,
|
||||
"displayExtraDamage": true,
|
||||
"enableGentleClick": true,
|
||||
"potionWhileRouting": false,
|
||||
"enableViewMaps": true,
|
||||
"portalWithoutTrigger": true,
|
||||
"canGoDeadZone": false,
|
||||
"enableMoveDirectly": true,
|
||||
"clickMoveDirectly": true,
|
||||
}
|
||||
data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
{
|
||||
"main": {
|
||||
"floorIds": [
|
||||
"sample0",
|
||||
"sample1",
|
||||
"sample2",
|
||||
"sample3",
|
||||
"MT0"
|
||||
],
|
||||
"images": [
|
||||
"bg.jpg"
|
||||
],
|
||||
"animates": [
|
||||
"hand",
|
||||
"sword",
|
||||
"zone"
|
||||
],
|
||||
"bgms": [
|
||||
"bgm.mp3"
|
||||
],
|
||||
"sounds": [
|
||||
"floor.mp3",
|
||||
"attack.mp3",
|
||||
"door.mp3",
|
||||
"item.mp3",
|
||||
"equip.mp3",
|
||||
"zone.mp3",
|
||||
"jump.mp3"
|
||||
],
|
||||
"startBackground": "bg.jpg",
|
||||
"startLogoStyle": "color: black",
|
||||
"levelChoose": [
|
||||
[
|
||||
"简单",
|
||||
"Easy"
|
||||
],
|
||||
[
|
||||
"普通",
|
||||
"Normal"
|
||||
],
|
||||
[
|
||||
"困难",
|
||||
"Hard"
|
||||
],
|
||||
[
|
||||
"噩梦",
|
||||
"Hell"
|
||||
]
|
||||
],
|
||||
"equipName": [
|
||||
"武器",
|
||||
"盾牌"
|
||||
],
|
||||
"statusLeftBackground": "url(project/images/ground.png) repeat",
|
||||
"statusTopBackground": "url(project/images/ground.png) repeat",
|
||||
"toolsBackground": "url(project/images/ground.png) repeat",
|
||||
"borderColor": "white"
|
||||
},
|
||||
"firstData": {
|
||||
"title": "魔塔样板",
|
||||
"name": "template",
|
||||
"version": "Ver 2.4",
|
||||
"floorId": "sample0",
|
||||
"hero": {
|
||||
"name": "阳光",
|
||||
"lv": 1,
|
||||
"hpmax": 9999,
|
||||
"hp": 1000,
|
||||
"atk": 100,
|
||||
"def": 100,
|
||||
"mdef": 100,
|
||||
"money": 100,
|
||||
"experience": 0,
|
||||
"equipment": [
|
||||
"blank",
|
||||
"blank"
|
||||
],
|
||||
"items": {
|
||||
"keys": {
|
||||
"yellowKey": 0,
|
||||
"blueKey": 0,
|
||||
"redKey": 0
|
||||
},
|
||||
"constants": {},
|
||||
"tools": {},
|
||||
"equips": {}
|
||||
},
|
||||
"flyRange": [],
|
||||
"loc": {
|
||||
"direction": "up",
|
||||
"x": 6,
|
||||
"y": 10
|
||||
},
|
||||
"flags": {},
|
||||
"steps": 0
|
||||
},
|
||||
"startText": [
|
||||
"Hi,欢迎来到 HTML5 魔塔样板!\n\n本样板由艾之葵制作,可以让你在不会写任何代码\n的情况下也能做出属于自己的H5魔塔!",
|
||||
"这里游戏开始时的剧情。\n定义在data.js的startText处。\n\n你可以在这里写上自己的内容。",
|
||||
"赶快来试一试吧!"
|
||||
],
|
||||
"shops": [
|
||||
{
|
||||
"id": "moneyShop1",
|
||||
"name": "贪婪之神",
|
||||
"icon": "blueShop",
|
||||
"textInList": "1F金币商店",
|
||||
"use": "money",
|
||||
"need": "20+10*times*(times+1)",
|
||||
"text": "勇敢的武士啊,给我${need}金币就可以:",
|
||||
"choices": [
|
||||
{
|
||||
"text": "生命+800",
|
||||
"effect": "status:hp+=800"
|
||||
},
|
||||
{
|
||||
"text": "攻击+4",
|
||||
"effect": "status:atk+=4"
|
||||
},
|
||||
{
|
||||
"text": "防御+4",
|
||||
"effect": "status:def+=4"
|
||||
},
|
||||
{
|
||||
"text": "魔防+10",
|
||||
"effect": "status:mdef+=10"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "expShop1",
|
||||
"name": "经验之神",
|
||||
"icon": "pinkShop",
|
||||
"textInList": "1F经验商店",
|
||||
"use": "experience",
|
||||
"need": "-1",
|
||||
"text": "勇敢的武士啊,给我若干经验就可以:",
|
||||
"choices": [
|
||||
{
|
||||
"text": "等级+1",
|
||||
"need": "100",
|
||||
"effect": "status:lv+=1;status:hp+=1000;status:atk+=7;status:def+=7"
|
||||
},
|
||||
{
|
||||
"text": "攻击+5",
|
||||
"need": "30",
|
||||
"effect": "status:atk+=5"
|
||||
},
|
||||
{
|
||||
"text": "防御+5",
|
||||
"need": "30",
|
||||
"effect": "status:def+=5"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"levelUp": [
|
||||
{},
|
||||
{
|
||||
"need": 20,
|
||||
"name": "第二级",
|
||||
"effect": "status:hp+=2*(status:atk+status:def);status:atk+=10;status:def+=10"
|
||||
},
|
||||
{
|
||||
"need": 40,
|
||||
"effect": "function () {\r\n\t\t\tcore.insertAction(\"恭喜升级!\");\r\n\t\t\tcore.status.hero.hp *= 2;\r\n\t\t\tcore.status.hero.atk += 100;\r\n\t\t\tcore.status.hero.def += 100;\r\n\t\t}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"values": {
|
||||
"lavaDamage": 100,
|
||||
"poisonDamage": 10,
|
||||
"weakValue": 20,
|
||||
"redJewel": 3,
|
||||
"blueJewel": 3,
|
||||
"greenJewel": 5,
|
||||
"redPotion": 100,
|
||||
"bluePotion": 250,
|
||||
"yellowPotion": 500,
|
||||
"greenPotion": 800,
|
||||
"moneyPocket": 500,
|
||||
"breakArmor": 0.9,
|
||||
"counterAttack": 0.1,
|
||||
"purify": 3,
|
||||
"hatred": 2,
|
||||
"maxValidHp": null,
|
||||
"animateSpeed": 300
|
||||
},
|
||||
"flags": {
|
||||
"enableFloor": true,
|
||||
"enableLv": false,
|
||||
"enableHPMax": false,
|
||||
"enableMDef": true,
|
||||
"enableMoney": true,
|
||||
"enableExperience": false,
|
||||
"enableLevelUp": false,
|
||||
"enableKeys": true,
|
||||
"enablePZF": false,
|
||||
"enableDebuff": false,
|
||||
"flyNearStair": true,
|
||||
"pickaxeFourDirections": false,
|
||||
"bombFourDirections": false,
|
||||
"snowFourDirections": false,
|
||||
"bigKeyIsBox": false,
|
||||
"equipment": true,
|
||||
"equipboxBotton": false,
|
||||
"enableAddPoint": false,
|
||||
"enableNegativeDamage": false,
|
||||
"hatredDecrease": true,
|
||||
"betweenAttackCeil": false,
|
||||
"useLoop": false,
|
||||
"startDirectly": false,
|
||||
"canOpenBattleAnimate": true,
|
||||
"showBattleAnimateConfirm": false,
|
||||
"battleAnimate": false,
|
||||
"displayEnemyDamage": true,
|
||||
"displayCritical": true,
|
||||
"displayExtraDamage": true,
|
||||
"enableGentleClick": true,
|
||||
"potionWhileRouting": false,
|
||||
"enableViewMaps": true,
|
||||
"portalWithoutTrigger": true,
|
||||
"canGoDeadZone": false,
|
||||
"enableMoveDirectly": true,
|
||||
"clickMoveDirectly": true
|
||||
}
|
||||
}
|
||||
+205
-110
@@ -1,120 +1,215 @@
|
||||
main.floors.sample0 =
|
||||
main.floors.sample0=
|
||||
{
|
||||
"floorId": "sample0", // 这里需要改楼层名,请和文件名及下面的floorId保持完全一致
|
||||
// 楼层唯一标识符仅能由字母、数字、下划线组成,且不能由数字开头
|
||||
// 推荐用法:第20层就用MT20,第38层就用MT38,地下6层就用MT_6(用下划线代替负号),隐藏3层用MT3h(h表示隐藏),等等
|
||||
// 楼层唯一标识符,需要和名字完全一致
|
||||
"title": "样板 0 层", // 楼层中文名
|
||||
"name": "0", // 显示在状态栏中的层数
|
||||
"canFlyTo": true, // 该楼能否被楼传器飞到(不能的话在该楼也不允许使用楼传器)
|
||||
"canUseQuickShop": true, // 该层是否允许使用快捷商店
|
||||
"defaultGround": "ground", // 默认地面的图块ID(terrains中)
|
||||
"images": [], // 该层默认显示的所有图片;详细用法请查看文档“自定义素材”中的说明。
|
||||
// "color": [0,0,0,0.3] // 该层的默认画面色调。本项可不写(代表无色调),如果写需要是一个RGBA数组。
|
||||
// "weather": ["snow",5], // 该层的默认天气。本项可忽略表示晴天,如果写则第一项为"rain"或"snow"代表雨雪,第二项为1-10之间的数代表强度。
|
||||
"bgm": "bgm.mp3", // 到达该层后默认播放的BGM。本项可忽略。
|
||||
"item_ratio": 2, // 该层的宝石/血瓶倍率
|
||||
"map": [ // 地图数据,需要是13x13,建议使用地图生成器来生成
|
||||
[0, 0, 220, 0, 0, 20, 87, 3, 65, 64, 44, 43, 42],
|
||||
[0, 246, 0, 246, 0, 20, 0, 3, 58, 59, 60, 61, 41],
|
||||
[219, 0, 0, 0, 219, 20, 0, 3, 57, 26, 62, 63, 40],
|
||||
[20, 20, 125, 20, 20, 20, 0, 3, 53, 54, 55, 56, 39],
|
||||
[216, 247, 263, 235, 248, 6, 0, 3, 49, 50, 51, 52, 38],
|
||||
[6, 6, 125, 6, 6, 6, 0, 1, 45, 46, 47, 48, 37],
|
||||
[224, 254, 212, 262, 204, 5, 0, 1, 31, 32, 34, 33, 36],
|
||||
[201, 261, 217, 264, 207, 5, 0, 1, 27, 28, 29, 30, 35],
|
||||
[5, 5, 125, 5, 5, 5, 0, 1, 21, 22, 23, 24, 25],
|
||||
[0, 0, 237, 0, 0, 0, 45, 1, 1, 1, 121, 1, 1],
|
||||
[4, 4, 133, 4, 4, 4, 0, 0, 0, 0, 0, 85, 124],
|
||||
[87, 11, 12, 13, 14, 4, 4, 2, 2, 2, 122, 2, 2],
|
||||
[88, 89, 90, 91, 92, 93, 94, 2, 81, 82, 83, 84, 86],
|
||||
"floorId": "sample0",
|
||||
"title": "样板 0 层",
|
||||
"name": "0",
|
||||
"canFlyTo": true,
|
||||
"canUseQuickShop": true,
|
||||
"defaultGround": "ground",
|
||||
"images": [],
|
||||
"bgm": "bgm.mp3",
|
||||
"item_ratio": 2,
|
||||
"map": [
|
||||
[ 0, 0,220, 0, 0, 20, 87, 3, 65, 64, 44, 43, 42],
|
||||
[ 0,246, 0,246, 0, 20, 0, 3, 58, 59, 60, 61, 41],
|
||||
[219, 0, 0, 0,219, 20, 0, 3, 57, 26, 62, 63, 40],
|
||||
[ 20, 20,125, 20, 20, 20, 0, 3, 53, 54, 55, 56, 39],
|
||||
[216,247,263,235,248, 6, 0, 3, 49, 50, 51, 52, 38],
|
||||
[ 6, 6,125, 6, 6, 6, 0, 1, 45, 46, 47, 48, 37],
|
||||
[224,254,212,262,204, 5, 0, 1, 31, 32, 34, 33, 36],
|
||||
[201,261,217,264,207, 5, 0, 1, 27, 28, 29, 30, 35],
|
||||
[ 5, 5,125, 5, 5, 5, 0, 1, 21, 22, 23, 24, 25],
|
||||
[ 0, 0,237, 0, 0, 0, 45, 1, 1, 1,121, 1, 1],
|
||||
[ 4, 4,133, 4, 4, 4, 0, 0, 0, 0, 0, 85,124],
|
||||
[ 87, 11, 12, 13, 14, 4, 4, 2, 2, 2,122, 2, 2],
|
||||
[ 88, 89, 90, 91, 92, 93, 94, 2, 81, 82, 83, 84, 86]
|
||||
],
|
||||
"firstArrive": [
|
||||
"\t[样板提示]首次到达某层可以触发 firstArrive 事件,该事件可类似于RMXP中的“自动执行脚本”。\n\n本事件支持一切的事件类型,常常用来触发对话,例如:",
|
||||
"\t[hero]\b[up,hero]我是谁?我从哪来?我又要到哪去?",
|
||||
"\t[仙子,fairy]你问我...?我也不知道啊...",
|
||||
"本层主要对道具、门、怪物等进行介绍,有关事件的各种信息在下一层会有更为详细的说明。"
|
||||
],
|
||||
"events": {
|
||||
"10,9": [
|
||||
"\t[老人,man]这些是本样板支持的所有的道具。\n\n道具分为三类:items, constants, tools。\nitems 为即捡即用类道具,例如宝石、血瓶、剑盾等。\nconstants 为永久道具,例如怪物手册、楼层传送器、幸运金币等。\ntools 为消耗类道具,例如破墙镐、炸弹、中心对称飞行器等。\n\n后两类道具在工具栏中可以看到并使用。",
|
||||
"\t[老人,man]\b[up]有关道具效果,定义在items.js中。\n目前大多数道具已有默认行为,如有自定义的需求则需在items.js中修改代码。",
|
||||
"\t[老人,man]constants 和 tools 各最多只允许12种,多了会导致图标溢出。",
|
||||
"\t[老人,man]\b[up]拾取道具结束后可触发 afterGetItem 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
|
||||
{
|
||||
"type": "hide",
|
||||
"time": 500
|
||||
}
|
||||
],
|
||||
"firstArrive": [ // 第一次到该楼层触发的事件
|
||||
"\t[样板提示]首次到达某层可以触发 firstArrive 事件,该事件可类似于RMXP中的“自动执行脚本”。\n\n本事件支持一切的事件类型,常常用来触发对话,例如:",
|
||||
"\t[hero]\b[up,hero]我是谁?我从哪来?我又要到哪去?",
|
||||
"\t[仙子,fairy]你问我...?我也不知道啊...",
|
||||
"本层主要对道具、门、怪物等进行介绍,有关事件的各种信息在下一层会有更为详细的说明。",
|
||||
"10,11": [
|
||||
"\t[老人,woman]这些是门,需要对应的钥匙打开。\n机关门必须使用特殊的开法。",
|
||||
"\t[老人,woman]开门后可触发 afterOpenDoor 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
|
||||
{
|
||||
"type": "hide",
|
||||
"time": 500
|
||||
}
|
||||
],
|
||||
"events": { // 该楼的所有可能事件列表
|
||||
"10,9": [ // 守着道具的老人
|
||||
"\t[老人,man]这些是本样板支持的所有的道具。\n\n道具分为三类:items, constants, tools。\nitems 为即捡即用类道具,例如宝石、血瓶、剑盾等。\nconstants 为永久道具,例如怪物手册、楼层传送器、幸运金币等。\ntools 为消耗类道具,例如破墙镐、炸弹、中心对称飞行器等。\n\n后两类道具在工具栏中可以看到并使用。",
|
||||
"\t[老人,man]\b[up]有关道具效果,定义在items.js中。\n目前大多数道具已有默认行为,如有自定义的需求则需在items.js中修改代码。",
|
||||
"\t[老人,man]constants 和 tools 各最多只允许12种,多了会导致图标溢出。",
|
||||
"\t[老人,man]\b[up]拾取道具结束后可触发 afterGetItem 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
|
||||
{"type": "hide", "time": 500} // 消失
|
||||
],
|
||||
"10,11": [ // 守着门的老人
|
||||
"\t[老人,woman]这些是门,需要对应的钥匙打开。\n机关门必须使用特殊的开法。",
|
||||
"\t[老人,woman]开门后可触发 afterOpenDoor 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
|
||||
{"type": "hide", "time": 500}
|
||||
],
|
||||
"2,10": [ // 守着楼梯、传送门、路障的老人
|
||||
"\t[少女,npc0]这些是路障、楼梯、传送门。",
|
||||
"\t[少女,npc0]血网的伤害数值、中毒后每步伤害数值、衰弱时攻防下降的数值,都在 data.js 内定义。\n\n路障同样会尽量被自动寻路绕过。",
|
||||
"\t[少女,npc0]楼梯和传送门需要在changeFloor中定义目标楼层和位置,可参见样板里已有的的写法。",
|
||||
{"type": "hide", "time": 500}
|
||||
],
|
||||
"2,8": [ // 守着第一批怪物的老人
|
||||
"\t[老人,magician]这些都是各种各样的怪物,所有怪物的数据都在enemys.js中设置。",
|
||||
"\t[老人,magician]这批怪物分别为:普通、先攻、魔攻、坚固、2连击、3连击、4连击、破甲、反击、净化。",
|
||||
"\t[老人,magician]打败怪物后可触发 afterBattle 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
|
||||
{"type": "hide", "time": 500}
|
||||
],
|
||||
"2,5": [ // 守着第二批怪物的老人
|
||||
"\t[老人,magician]模仿、吸血、中毒、衰弱、诅咒。\n\n请注意吸血怪需要设置value为吸血数值,可参见样板中黑暗大法师的写法。",
|
||||
{"type": "hide", "time": 500}
|
||||
],
|
||||
"2,3": [ // 守着第三批怪物的老人
|
||||
"\t[老人,magician]领域、夹击。\n请注意领域怪需要设置value为伤害数值,可参见样板中初级巫师的写法。",
|
||||
"\t[老人,magician]夹击和领域同时发生时先计算领域,再夹击。\n自动寻路同样会尽量绕过你设置的这些点。",
|
||||
{"type": "hide", "time": 500}
|
||||
],
|
||||
"12,10": { // 隐藏的仙子
|
||||
"enable": false, // enable: false代表初始时禁用事件
|
||||
"data": [
|
||||
"\t[仙子,fairy]只有楼上启用事件后,才能看到我并可以和我对话来触发事件。",
|
||||
{"type": "hide", "time": 500}
|
||||
]
|
||||
},
|
||||
"2,10": [
|
||||
"\t[少女,npc0]这些是路障、楼梯、传送门。",
|
||||
"\t[少女,npc0]血网的伤害数值、中毒后每步伤害数值、衰弱时攻防下降的数值,都在 data.js 内定义。\n\n路障同样会尽量被自动寻路绕过。",
|
||||
"\t[少女,npc0]楼梯和传送门需要在changeFloor中定义目标楼层和位置,可参见样板里已有的的写法。",
|
||||
{
|
||||
"type": "hide",
|
||||
"time": 500
|
||||
}
|
||||
],
|
||||
"2,8": [
|
||||
"\t[老人,magician]这些都是各种各样的怪物,所有怪物的数据都在enemys.js中设置。",
|
||||
"\t[老人,magician]这批怪物分别为:普通、先攻、魔攻、坚固、2连击、3连击、4连击、破甲、反击、净化。",
|
||||
"\t[老人,magician]打败怪物后可触发 afterBattle 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
|
||||
{
|
||||
"type": "hide",
|
||||
"time": 500
|
||||
}
|
||||
],
|
||||
"2,5": [
|
||||
"\t[老人,magician]模仿、吸血、中毒、衰弱、诅咒。\n\n请注意吸血怪需要设置value为吸血数值,可参见样板中黑暗大法师的写法。",
|
||||
{
|
||||
"type": "hide",
|
||||
"time": 500
|
||||
}
|
||||
],
|
||||
"2,3": [
|
||||
"\t[老人,magician]领域、夹击。\n请注意领域怪需要设置value为伤害数值,可参见样板中初级巫师的写法。",
|
||||
"\t[老人,magician]夹击和领域同时发生时先计算领域,再夹击。\n自动寻路同样会尽量绕过你设置的这些点。",
|
||||
{
|
||||
"type": "hide",
|
||||
"time": 500
|
||||
}
|
||||
],
|
||||
"12,10": {
|
||||
"enable": false,
|
||||
"data": [
|
||||
"\t[仙子,fairy]只有楼上启用事件后,才能看到我并可以和我对话来触发事件。",
|
||||
{
|
||||
"type": "hide",
|
||||
"time": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"changeFloor": {
|
||||
"6,0": {
|
||||
"floorId": "sample1",
|
||||
"stair": "downFloor"
|
||||
},
|
||||
"changeFloor": { // 楼层转换事件;该事件不能和上面的events有冲突(同位置点),否则会被覆盖
|
||||
"6,0": {"floorId": "sample1", "stair": "downFloor"}, // 目标点:sample1层的下楼梯位置
|
||||
"0,11": {"floorId": "sample0", "loc": [0,12]}, // 目标点:sample0层的x=0,y=12位置
|
||||
"0,12": {"floorId": "sample0", "stair": "upFloor"}, // 注意,目标层有多个楼梯的话,写stair可能会导致到达位置不确定。这时候推荐写loc指明目标点位置。
|
||||
"1,12": {"floorId": "sample0", "loc": [1,12]},
|
||||
"2,12": {"floorId": "sample0", "loc": [2,12]},
|
||||
"3,12": {"floorId": "sample0", "loc": [6,1], "direction": "up"}, // 切换楼层后勇士面对上方
|
||||
"4,12": {"floorId": "sample0", "loc": [0,9], "direction": "left", "time": 1000}, // 切换楼层后勇士面对左边,切换动画1000ms
|
||||
"5,12": {"floorId": "sample0", "loc": [6,10], "time": 0, "portalWithoutTrigger": false}, // time=0表示无切换时间
|
||||
"6,12": {"floorId": "sample0", "loc": [10,10], "direction": "left", "time": 1000},
|
||||
"0,11": {
|
||||
"floorId": "sample0",
|
||||
"loc": [
|
||||
0,
|
||||
12
|
||||
]
|
||||
},
|
||||
"afterBattle": { // 战斗后可能触发的事件列表
|
||||
"2,6": ["\t[ghostSkeleton]不可能,你怎么可能打败我!\n(一个打败怪物触发的事件)"],
|
||||
"0,12": {
|
||||
"floorId": "sample0",
|
||||
"stair": "upFloor"
|
||||
},
|
||||
"afterGetItem": { // 获得道具后可能触发的事件列表
|
||||
"11,8": ["由于状态栏放不下,绿钥匙和铁门钥匙均视为tools,放入工具栏中。\n碰到绿门和铁门仍然会自动使用开门。"],
|
||||
"8,6": ["由于吸血和夹击等的存在,血瓶默认自动被绕路。\n你可以修改data.js中的系统Flag来设置这一项。"],
|
||||
"8,7": ["如需修改消耗品的效果,请前往 data.js ,找到并修改values内对应的具体数值即可。\n如果有更高级的需求(如每个区域宝石数值变化),详见doc文档内的做法说明。"],
|
||||
"10,7": ["在 data.js 的系统Flag中设置是否启用魔防。\n如果不启用魔防则不会在状态栏显示。"],
|
||||
"9,5": [
|
||||
"每层楼的 canFlyTo 决定了该楼层能否被飞到。\n\n不能被飞到的楼层也无法使用楼层传送器。",
|
||||
"飞行的楼层顺序由 main.js 中 floorIds 加载顺序所决定。\n\n是否必须在楼梯边使用楼传器由 data.js 中的系统Flag所决定。"
|
||||
"1,12": {
|
||||
"floorId": "sample0",
|
||||
"loc": [
|
||||
1,
|
||||
12
|
||||
]
|
||||
},
|
||||
"2,12": {
|
||||
"floorId": "sample0",
|
||||
"loc": [
|
||||
2,
|
||||
12
|
||||
]
|
||||
},
|
||||
"3,12": {
|
||||
"floorId": "sample0",
|
||||
"loc": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"10,5": ["破墙镐是破面前的墙壁还是四个方向的墙壁,由data.js中的系统Flag所决定。"],
|
||||
"8,4": [
|
||||
"炸弹是只能炸面前的怪物还是四个方向的怪物,由data.js中的系统Flag所决定。\n如只能炸前方怪物则和上面的圣锤等价。\n不能被炸的怪物在enemys中可以定义,可参见样板里黑衣魔王和黑暗大法师的写法。",
|
||||
"direction": "up"
|
||||
},
|
||||
"4,12": {
|
||||
"floorId": "sample0",
|
||||
"loc": [
|
||||
0,
|
||||
9
|
||||
],
|
||||
"10,4": ["“上楼”和“下楼”的目标层由 main.js 的 floorIds顺序所决定。"],
|
||||
"9,2": ["该道具默认是大黄门钥匙,如需改为钥匙盒直接修改 data.js 中的系统Flag即可。"],
|
||||
"10,2": ["屠龙匕首目前未被定义,可能需要自行实现功能。\n有关如何实现一个道具功能参见doc文档。"],
|
||||
"direction": "left",
|
||||
"time": 1000
|
||||
},
|
||||
"afterOpenDoor": { // 开完门后可能触发的事件列表
|
||||
"11,12": ["你开了一个绿门,触发了一个afterOpenDoor事件"]
|
||||
"5,12": {
|
||||
"floorId": "sample0",
|
||||
"loc": [
|
||||
6,
|
||||
10
|
||||
],
|
||||
"time": 0,
|
||||
"portalWithoutTrigger": false
|
||||
},
|
||||
"cannotMove": { // 每个图块不可通行的方向
|
||||
// 可以在这里定义每个点不能前往哪个方向,例如悬崖边不能跳下去
|
||||
// "x,y": ["up", "left"], // (x,y)点不能往上和左走
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
"6,12": {
|
||||
"floorId": "sample0",
|
||||
"loc": [
|
||||
10,
|
||||
10
|
||||
],
|
||||
"direction": "left",
|
||||
"time": 1000
|
||||
}
|
||||
},
|
||||
"afterBattle": {
|
||||
"2,6": [
|
||||
"\t[ghostSkeleton]不可能,你怎么可能打败我!\n(一个打败怪物触发的事件)"
|
||||
]
|
||||
},
|
||||
"afterGetItem": {
|
||||
"11,8": [
|
||||
"由于状态栏放不下,绿钥匙和铁门钥匙均视为tools,放入工具栏中。\n碰到绿门和铁门仍然会自动使用开门。"
|
||||
],
|
||||
"8,6": [
|
||||
"由于吸血和夹击等的存在,血瓶默认自动被绕路。\n你可以修改data.js中的系统Flag来设置这一项。"
|
||||
],
|
||||
"8,7": [
|
||||
"如需修改消耗品的效果,请前往 data.js ,找到并修改values内对应的具体数值即可。\n如果有更高级的需求(如每个区域宝石数值变化),详见doc文档内的做法说明。"
|
||||
],
|
||||
"10,7": [
|
||||
"在 data.js 的系统Flag中设置是否启用装备栏按钮。\n如果启用则装备栏按钮会代替楼层传送器按钮"
|
||||
],
|
||||
"9,5": [
|
||||
"每层楼的 canFlyTo 决定了该楼层能否被飞到。\n\n不能被飞到的楼层也无法使用楼层传送器。",
|
||||
"飞行的楼层顺序由 main.js 中 floorIds 加载顺序所决定。\n\n是否必须在楼梯边使用楼传器由 data.js 中的系统Flag所决定。"
|
||||
],
|
||||
"10,5": [
|
||||
"破墙镐是破面前的墙壁还是四个方向的墙壁,由data.js中的系统Flag所决定。"
|
||||
],
|
||||
"8,4": [
|
||||
"炸弹是只能炸面前的怪物还是四个方向的怪物,由data.js中的系统Flag所决定。\n如只能炸前方怪物则和上面的圣锤等价。\n不能被炸的怪物在enemys中可以定义,可参见样板里黑衣魔王和黑暗大法师的写法。"
|
||||
],
|
||||
"10,4": [
|
||||
"“上楼”和“下楼”的目标层由 main.js 的 floorIds顺序所决定。"
|
||||
],
|
||||
"9,2": [
|
||||
"该道具默认是大黄门钥匙,如需改为钥匙盒直接修改 data.js 中的系统Flag即可。"
|
||||
],
|
||||
"10,2": [
|
||||
"屠龙匕首目前未被定义,可能需要自行实现功能。\n有关如何实现一个道具功能参见doc文档。"
|
||||
],
|
||||
"12,7": [
|
||||
"在 data.js 的系统Flag中设置是否启用装备栏。\n如果不启用则装备会直接增加属性。"
|
||||
],
|
||||
"12,6": [
|
||||
"在 data.js 的系统Flag中设置是否启用装备栏按钮。\n如果启用则装备栏按钮会替代楼传按钮。"
|
||||
],
|
||||
"12,5": [
|
||||
"装备的种类由全塔属性中的equipName决定,equiptype的值就是该类型在equipName中的顺序,例如默认情况下equiptype为0代表武器,同时只有euqiptype为0的装备的攻击动画生效"
|
||||
]
|
||||
},
|
||||
"afterOpenDoor": {
|
||||
"11,12": [
|
||||
"你开了一个绿门,触发了一个afterOpenDoor事件"
|
||||
]
|
||||
},
|
||||
"cannotMove": {},
|
||||
}
|
||||
+15
-44
@@ -15,17 +15,22 @@ functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
core.material.items.bomb.text = "可以炸掉勇士四周的怪物";
|
||||
if (core.flags.snowFourDirections)
|
||||
core.material.items.bomb.text = "可以将四周的熔岩变成平地";
|
||||
// 是否启用装备栏
|
||||
if (core.flags.equipboxBotton) {
|
||||
core.statusBar.image.fly.src = core.statusBar.icons.equipbox.src;
|
||||
core.flags.equipment = true;
|
||||
}
|
||||
if (core.flags.equipment) {
|
||||
core.material.items.sword1.cls = 'constants';
|
||||
core.material.items.sword2.cls = 'constants';
|
||||
core.material.items.sword3.cls = 'constants';
|
||||
core.material.items.sword4.cls = 'constants';
|
||||
core.material.items.sword5.cls = 'constants';
|
||||
core.material.items.shield1.cls = 'constants';
|
||||
core.material.items.shield2.cls = 'constants';
|
||||
core.material.items.shield3.cls = 'constants';
|
||||
core.material.items.shield4.cls = 'constants';
|
||||
core.material.items.shield5.cls = 'constants';
|
||||
core.material.items.sword1.cls = 'equips';
|
||||
core.material.items.sword2.cls = 'equips';
|
||||
core.material.items.sword3.cls = 'equips';
|
||||
core.material.items.sword4.cls = 'equips';
|
||||
core.material.items.sword5.cls = 'equips';
|
||||
core.material.items.shield1.cls = 'equips';
|
||||
core.material.items.shield2.cls = 'equips';
|
||||
core.material.items.shield3.cls = 'equips';
|
||||
core.material.items.shield4.cls = 'equips';
|
||||
core.material.items.shield5.cls = 'equips';
|
||||
}
|
||||
},
|
||||
////// 不同难度分别设置初始属性 //////
|
||||
@@ -501,40 +506,6 @@ functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
this.test = function () {
|
||||
console.log("插件函数执行测试");
|
||||
}
|
||||
|
||||
var _useEquipment = function (itemId, name, type) { // 具体的装备使用效果
|
||||
if (itemId.indexOf(name)==0) {
|
||||
var now=core.getFlag(name, name+"0");
|
||||
|
||||
if (typeof core.values[now] == 'number') {
|
||||
core.status.hero[type] -= core.values[now];
|
||||
}
|
||||
else {
|
||||
core.status.hero.atk -= core.values[now].atk || 0;
|
||||
core.status.hero.def -= core.values[now].def || 0;
|
||||
core.status.hero.mdef -= core.values[now].mdef || 0;
|
||||
}
|
||||
|
||||
if (typeof core.values[itemId] == 'number') {
|
||||
core.status.hero[type] += core.values[itemId];
|
||||
}
|
||||
else {
|
||||
core.status.hero.atk += core.values[itemId].atk || 0;
|
||||
core.status.hero.def += core.values[itemId].def || 0;
|
||||
core.status.hero.mdef += core.values[itemId].mdef || 0;
|
||||
}
|
||||
|
||||
core.setItem(now, 1);
|
||||
core.setItem(itemId, 0);
|
||||
core.setFlag(name, itemId);
|
||||
core.drawTip("已装备"+core.material.items[itemId].name);
|
||||
}
|
||||
}
|
||||
|
||||
this.useEquipment = function (itemId) { // 使用装备
|
||||
_useEquipment(itemId, "sword", "atk");
|
||||
_useEquipment(itemId, "shield", "def");
|
||||
}
|
||||
|
||||
// 可以在任何地方(如afterXXX或自定义脚本事件)调用函数,方法为 core.plugin.xxx();
|
||||
|
||||
|
||||
+1
-2
@@ -203,13 +203,12 @@ icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
|
||||
'greenPotion': 22,
|
||||
'yellowPotion': 23,
|
||||
'lifeWand': 33,
|
||||
'sword0': 60,
|
||||
'blank': 60,
|
||||
'sword1': 50,
|
||||
'sword2': 51,
|
||||
'sword3': 52,
|
||||
'sword4': 53,
|
||||
'sword5': 54,
|
||||
'shield0': 61,
|
||||
'shield1': 55,
|
||||
'shield2': 56,
|
||||
'shield3': 57,
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 31 KiB |
+84
-67
@@ -46,54 +46,100 @@ items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
"name": "绿血瓶"
|
||||
},
|
||||
"sword1": {
|
||||
"cls": "items",
|
||||
"cls": "item",
|
||||
"name": "铁剑",
|
||||
"text": "一把很普通的铁剑"
|
||||
"text": "一把很普通的铁剑",
|
||||
"equipType": 0,
|
||||
"equipEffect": {
|
||||
"atk": 10
|
||||
},
|
||||
"animate": "sword"
|
||||
},
|
||||
"sword2": {
|
||||
"cls": "items",
|
||||
"name": "银剑",
|
||||
"text": "一把很普通的银剑"
|
||||
"text": "一把很普通的银剑",
|
||||
"equipType": 0,
|
||||
"equipEffect": {
|
||||
"atk": 20
|
||||
},
|
||||
"animate": "sword"
|
||||
},
|
||||
"sword3": {
|
||||
"cls": "items",
|
||||
"name": "骑士剑",
|
||||
"text": "一把很普通的骑士剑"
|
||||
"text": "一把很普通的骑士剑",
|
||||
"equipType": 0,
|
||||
"equipEffect": {
|
||||
"atk": 40
|
||||
},
|
||||
"animate": "sword"
|
||||
},
|
||||
"sword4": {
|
||||
"cls": "items",
|
||||
"name": "圣剑",
|
||||
"text": "一把很普通的圣剑"
|
||||
"text": "一把很普通的圣剑",
|
||||
"equipType": 0,
|
||||
"equipEffect": {
|
||||
"atk": 80
|
||||
},
|
||||
"animate": "sword"
|
||||
},
|
||||
"sword5": {
|
||||
"cls": "items",
|
||||
"name": "神圣剑",
|
||||
"text": "一把很普通的神圣剑"
|
||||
"text": "一把很普通的神圣剑",
|
||||
"equipType": 0,
|
||||
"equipEffect": {
|
||||
"atk": 100
|
||||
},
|
||||
"animate": "sword"
|
||||
},
|
||||
"shield1": {
|
||||
"cls": "items",
|
||||
"name": "铁盾",
|
||||
"text": "一个很普通的铁盾"
|
||||
"text": "一个很普通的铁盾",
|
||||
"equipType": 1,
|
||||
"equipEffect": {
|
||||
"def": 10
|
||||
},
|
||||
},
|
||||
"shield2": {
|
||||
"cls": "items",
|
||||
"name": "银盾",
|
||||
"text": "一个很普通的银盾"
|
||||
"text": "一个很普通的银盾",
|
||||
"equipType": 1,
|
||||
"equipEffect": {
|
||||
"def": 20
|
||||
},
|
||||
},
|
||||
"shield3": {
|
||||
"cls": "items",
|
||||
"name": "骑士盾",
|
||||
"text": "一个很普通的骑士盾"
|
||||
"text": "一个很普通的骑士盾",
|
||||
"equipType": 1,
|
||||
"equipEffect": {
|
||||
"def": 40
|
||||
},
|
||||
},
|
||||
"shield4": {
|
||||
"cls": "items",
|
||||
"name": "圣盾",
|
||||
"text": "一个很普通的圣盾"
|
||||
"text": "一个很普通的圣盾",
|
||||
"equipType": 1,
|
||||
"equipEffect": {
|
||||
"def": 80
|
||||
},
|
||||
},
|
||||
"shield5": {
|
||||
"cls": "items",
|
||||
"name": "神圣盾",
|
||||
"text": "一个很普通的神圣盾"
|
||||
"text": "一个很普通的神圣盾",
|
||||
"equipType": 1,
|
||||
"equipEffect": {
|
||||
"def": 100,
|
||||
"mdef": 100
|
||||
},
|
||||
},
|
||||
"superPotion": {
|
||||
"cls": "items",
|
||||
@@ -103,16 +149,6 @@ items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
"cls": "items",
|
||||
"name": "金钱袋"
|
||||
},
|
||||
"sword0": {
|
||||
"cls": "constants",
|
||||
"name": "空剑",
|
||||
"text": "使用可脱掉当前装备的剑。"
|
||||
},
|
||||
"shield0": {
|
||||
"cls": "constants",
|
||||
"name": "空盾",
|
||||
"text": "使用可脱掉当前装备的盾。"
|
||||
},
|
||||
"book": {
|
||||
"cls": "constants",
|
||||
"name": "怪物手册",
|
||||
@@ -232,7 +268,13 @@ items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
"cls": "tools",
|
||||
"name": "跳跃靴",
|
||||
"text": "能跳跃到前方两格处"
|
||||
}
|
||||
},
|
||||
"blank": {
|
||||
"cls": "blank",
|
||||
"name": " ",
|
||||
"text": " ",
|
||||
"animate": "hand"
|
||||
},
|
||||
},
|
||||
"itemEffect": {
|
||||
"redJewel": "core.status.hero.atk += core.values.redJewel * ratio",
|
||||
@@ -243,16 +285,16 @@ items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
"bluePotion": "core.status.hero.hp += core.values.bluePotion * ratio",
|
||||
"yellowPotion": "core.status.hero.hp += core.values.yellowPotion * ratio",
|
||||
"greenPotion": "core.status.hero.hp += core.values.greenPotion * ratio",
|
||||
"sword1": "core.status.hero.atk += core.values.sword1",
|
||||
"sword2": "core.status.hero.atk += core.values.sword2",
|
||||
"sword3": "core.status.hero.atk += core.values.sword3",
|
||||
"sword4": "core.status.hero.atk += core.values.sword4",
|
||||
"sword5": "core.status.hero.atk += core.values.sword5",
|
||||
"shield1": "core.status.hero.def += core.values.shield1",
|
||||
"shield2": "core.status.hero.def += core.values.shield2",
|
||||
"shield3": "core.status.hero.def += core.values.shield3",
|
||||
"shield4": "core.status.hero.def += core.values.shield4",
|
||||
"shield5": "core.status.hero.def += core.values.shield5",
|
||||
"sword1": "core.status.hero.atk += 10",
|
||||
"sword2": "core.status.hero.atk += 20",
|
||||
"sword3": "core.status.hero.atk += 40",
|
||||
"sword4": "core.status.hero.atk += 80",
|
||||
"sword5": "core.status.hero.atk += 100",
|
||||
"shield1": "core.status.hero.def += 10",
|
||||
"shield2": "core.status.hero.def += 20",
|
||||
"shield3": "core.status.hero.def += 40",
|
||||
"shield4": "core.status.hero.def += 80",
|
||||
"shield5": "core.status.hero.def += 100;core.status.hero.mdef += 100",
|
||||
"bigKey": "core.status.hero.items.keys.yellowKey++;core.status.hero.items.keys.blueKey++;core.status.hero.items.keys.redKey++;",
|
||||
"superPotion": "core.status.hero.hp *= 2",
|
||||
"moneyPocket": "core.status.hero.money += core.values.moneyPocket"
|
||||
@@ -266,16 +308,16 @@ items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
"bluePotion": "',生命+'+core.values.bluePotion * ratio",
|
||||
"yellowPotion": "',生命+'+core.values.yellowPotion * ratio",
|
||||
"greenPotion": "',生命+'+core.values.greenPotion * ratio",
|
||||
"sword1": "',攻击+'+core.values.sword1",
|
||||
"sword2": "',攻击+'+core.values.sword2",
|
||||
"sword3": "',攻击+'+core.values.sword3",
|
||||
"sword4": "',攻击+'+core.values.sword4",
|
||||
"sword5": "',攻击+'+core.values.sword5",
|
||||
"shield1": "',防御+'+core.values.shield1",
|
||||
"shield2": "',防御+'+core.values.shield2",
|
||||
"shield3": "',防御+'+core.values.shield3",
|
||||
"shield4": "',防御+'+core.values.shield4",
|
||||
"shield5": "',防御+'+core.values.shield5",
|
||||
"sword1": ",攻击+10",
|
||||
"sword2": ",攻击+20",
|
||||
"sword3": ",攻击+40",
|
||||
"sword4": ",攻击+80",
|
||||
"sword5": ",攻击+100",
|
||||
"shield1": ",防御+10",
|
||||
"shield2": ",防御+20",
|
||||
"shield3": ",防御+40",
|
||||
"shield4": ",防御+80",
|
||||
"shield5": ",防御+100,魔防+100",
|
||||
"bigKey": "',全钥匙+1'",
|
||||
"superPotion": "',生命值翻倍'",
|
||||
"moneyPocket": "',金币+'+core.values.moneyPocket"
|
||||
@@ -297,18 +339,6 @@ items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
"weakWine": "core.setFlag('weak', false);\ncore.status.hero.atk += core.getFlag('weakAtk', core.values.weakValue);\ncore.status.hero.def += core.getFlag('weakDef', core.values.weakValue);",
|
||||
"curseWine": "core.setFlag('curse', false);",
|
||||
"superWine": "core.setFlag('poison', false);\nif (core.hasFlag('weak')) {\n core.setFlag('weak', false);\n core.status.hero.atk += core.getFlag('weakAtk', core.values.weakValue);\n core.status.hero.def += core.getFlag('weakDef', core.values.weakValue);\n}\ncore.setFlag('curse', false);",
|
||||
"sword0": "core.plugin.useEquipment(itemId)",
|
||||
"sword1": "core.plugin.useEquipment(itemId)",
|
||||
"sword2": "core.plugin.useEquipment(itemId)",
|
||||
"sword3": "core.plugin.useEquipment(itemId)",
|
||||
"sword4": "core.plugin.useEquipment(itemId)",
|
||||
"sword5": "core.plugin.useEquipment(itemId)",
|
||||
"shield0": "core.plugin.useEquipment(itemId)",
|
||||
"shield1": "core.plugin.useEquipment(itemId)",
|
||||
"shield2": "core.plugin.useEquipment(itemId)",
|
||||
"shield3": "core.plugin.useEquipment(itemId)",
|
||||
"shield4": "core.plugin.useEquipment(itemId)",
|
||||
"shield5": "core.plugin.useEquipment(itemId)",
|
||||
"lifeWand": "core.insertAction([\n\t{\"type\": \"input\", \"text\": \"请输入生命魔杖使用次数:(0-${item:lifeWand})\"},\n\t{\"type\": \"if\", \"condition\": \"flag:input<=item:lifeWand\",\n\t\t\"true\": [\n\t\t\t{\"type\": \"setValue\", \"name\": \"item:lifeWand\", \"value\": \"item:lifeWand-flag:input\"},\n\t\t\t{\"type\": \"setValue\", \"name\": \"status:hp\", \"value\": \"status:hp+flag:input*100\"},\n\t\t\t\"成功使用${flag:input}次生命魔杖,恢复${flag:input*100}点生命。\"\n\t\t],\n\t\t\"false\": [\"输入不合法!\"]\n\t},\n]);\ncore.setItem('lifeWand', core.itemCount('lifeWand')+1);",
|
||||
"jumpShoes": "core.insertAction({\"type\":\"jumpHero\",\"loc\":[core.nextX(2),core.nextY(2)]});"
|
||||
},
|
||||
@@ -329,19 +359,6 @@ items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
"weakWine": "core.hasFlag('weak')",
|
||||
"curseWine": "core.hasFlag('curse')",
|
||||
"superWine": "core.hasFlag('poison') || core.hasFlag('weak') || core.hasFlag('curse')",
|
||||
"sword0": "true",
|
||||
"sword1": "true",
|
||||
"sword2": "true",
|
||||
"sword3": "true",
|
||||
"sword4": "true",
|
||||
"sword5": "true",
|
||||
"shield0": "true",
|
||||
"shield1": "true",
|
||||
"shield2": "true",
|
||||
"shield3": "true",
|
||||
"shield4": "true",
|
||||
"shiled5": "true",
|
||||
"shield5": "true",
|
||||
"lifeWand": "true",
|
||||
"jumpShoes": "var nx=core.nextX(2),ny=core.nextY(2);nx>=0&&nx<core.bigmap.width&&ny>=0&&ny<core.bigmap.height&&core.getBlock(nx,ny)==null"
|
||||
}
|
||||
|
||||
@@ -77,8 +77,6 @@ maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
|
||||
'63':{'cls': 'items', 'id': 'moneyPocket'}, // 金钱袋
|
||||
'64':{'cls': 'items', 'id': 'shoes'}, // 绿鞋
|
||||
'65':{'cls': 'items', 'id': 'hammer'}, // 圣锤
|
||||
'66':{'cls': 'items', 'id': 'sword0'}, // 空剑
|
||||
'67':{'cls': 'items', 'id': 'shield0'}, // 空盾
|
||||
'68':{'cls': 'items', 'id': 'lifeWand'}, // 生命魔杖
|
||||
'69':{'cls': 'items', 'id': 'jumpShoes'}, // 生命魔杖
|
||||
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user