344 lines
15 KiB
JavaScript
344 lines
15 KiB
JavaScript
comment_c456ea59_6018_45ef_8bcc_211a24c627dc =
|
||
{
|
||
"_leaf": false,
|
||
"_type": "object",
|
||
"_data": {
|
||
"items": {
|
||
"_leaf": false,
|
||
"_type": "object",
|
||
"_data": {
|
||
"items": {
|
||
"_leaf": false,
|
||
"_type": "object",
|
||
"_data": {
|
||
"cls": {
|
||
"_leaf": true,
|
||
"_type": "select",
|
||
"_select": {
|
||
"values": [
|
||
"keys",
|
||
"items",
|
||
"constants",
|
||
"tools"
|
||
]
|
||
},
|
||
"_data": "只能取keys(钥匙) items(宝石、血瓶) constants(物品) tools(道具)"
|
||
},
|
||
"name": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "名称"
|
||
},
|
||
"text": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "道具在道具栏中显示的描述"
|
||
},
|
||
"isEquipment": {
|
||
"_leaf": true,
|
||
"_type": "checkbox",
|
||
"_bool": "bool",
|
||
"_data": "物品是否属于装备(仅在全塔属性的equipment为true时有效)"
|
||
}
|
||
}
|
||
},
|
||
"itemEffect": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_lint": true,
|
||
"_data": "cls为items的即捡即用类物品的效果,执行时会对这里的字符串执行eval()"
|
||
},
|
||
"itemEffectTip": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_lint": true,
|
||
"_data": "cls为items的即捡即用类物品,在获得时左上角额外显示的文字,执行时会对这里的字符串执行eval()得到字符串"
|
||
},
|
||
"useItemEffect": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_lint": true,
|
||
"_data": "cls为tools或contants时的使用物品效果,执行时会对这里的字符串执行eval()"
|
||
},
|
||
"canUseItemEffect": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_lint": true,
|
||
"_data": "cls为tools或contants时能否使用物品的判断,执行时会return这里的字符串执行eval()后的结果"
|
||
}
|
||
}
|
||
},
|
||
"items_template" : {'cls': 'items', 'name': '新物品'},
|
||
"enemys": {
|
||
"_leaf": false,
|
||
"_type": "object",
|
||
"_data": {
|
||
"name": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "名称"
|
||
},
|
||
"hp": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "生命值"
|
||
},
|
||
"atk": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "攻击力"
|
||
},
|
||
"def": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "防御力"
|
||
},
|
||
"money": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "金币"
|
||
},
|
||
"experience": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "经验"
|
||
},
|
||
"point": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "加点"
|
||
},
|
||
"special": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "特殊属性\n\n0:无,1:先攻,2:魔攻,3:坚固,4:2连击,\n5:3连击,6:n连击,7:破甲,8:反击,9:净化,\n10:模仿,11:吸血,12:中毒,13:衰弱,14:诅咒,\n15:领域,16:夹击,17:仇恨,18:阻击,19:自爆,\n20:无敌,21:退化,22:固伤,23:重生\n\n多个属性例如用[1,4,11]表示先攻2连击吸血\n模仿怪的攻防设为0就好"
|
||
},
|
||
"value": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "特殊属性的数值\n领域怪需要加value表示领域伤害的数值\n吸血怪需要在后面添加value代表吸血比例"
|
||
},
|
||
"zoneSquare": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "领域怪zoneSquare代表是否九宫格伤害"
|
||
},
|
||
"range": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "(thiseval==~~thiseval && thiseval>0)||thiseval==null",
|
||
"_data": "range可选,代表领域伤害的范围;不加默认为1"
|
||
},
|
||
"notBomb": {
|
||
"_leaf": true,
|
||
"_type": "checkbox",
|
||
"_bool": "bool",
|
||
"_data": "加入 \"notBomb\": true 代表该怪物不可被炸弹或圣锤炸掉"
|
||
},
|
||
"n": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "(thiseval==~~thiseval && thiseval>0)||thiseval==null",
|
||
"_data": "多连击需要在后面指定n代表是几连击"
|
||
},
|
||
"add": {
|
||
"_leaf": true,
|
||
"_type": "checkbox",
|
||
"_bool": "bool",
|
||
"_data": "代表吸血后是否加到自身"
|
||
},
|
||
"atkValue": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "thiseval==~~thiseval||thiseval==null",
|
||
"_data": "退化时勇士下降的攻击力点数"
|
||
},
|
||
"defValue": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "thiseval==~~thiseval||thiseval==null",
|
||
"_data": "退化时勇士下降的防御力点数"
|
||
},
|
||
"damage": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "thiseval==~~thiseval||thiseval==null",
|
||
"_data": "战前扣血的点数"
|
||
}
|
||
}
|
||
},
|
||
"enemys_template" : {'name': '新敌人', 'hp': 0, 'atk': 0, 'def': 0, 'money': 0, 'experience': 0, 'point': 0, 'special': 0},
|
||
"maps": {
|
||
"_leaf": false,
|
||
"_type": "object",
|
||
"_data": {
|
||
"id": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "false",
|
||
"_data": "图块ID"
|
||
},
|
||
"idnum": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "false",
|
||
"_data": "图块数字"
|
||
},
|
||
"cls": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "false",
|
||
"_data": "图块类别"
|
||
},
|
||
"trigger": {
|
||
"_leaf": true,
|
||
"_type": "select",
|
||
"_select": {
|
||
"values": [
|
||
null,
|
||
"openDoor",
|
||
"passNet",
|
||
"changeLight",
|
||
"ski",
|
||
"pushBox"
|
||
]
|
||
},
|
||
"_data": "图块的默认触发器"
|
||
},
|
||
"noPass": {
|
||
"_leaf": true,
|
||
"_type": "select",
|
||
"_select": {
|
||
"values": [
|
||
null,
|
||
true,
|
||
false
|
||
]
|
||
},
|
||
"_data": "图块默认可通行状态"
|
||
}
|
||
}
|
||
},
|
||
"floors": {
|
||
"_leaf": false,
|
||
"_type": "object",
|
||
"_data": {
|
||
"floor": {
|
||
"_leaf": false,
|
||
"_type": "object",
|
||
"_data": {
|
||
"floorId": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "false",
|
||
"_data": "文件名和floorId需要保持完全一致 \n楼层唯一标识符仅能由字母、数字、下划线组成,且不能由数字开头 \n推荐用法:第20层就用MT20,第38层就用MT38,地下6层就用MT_6(用下划线代替负号),隐藏3层用MT3h(h表示隐藏),等等 \n楼层唯一标识符,需要和名字完全一致 \n这里不能更改floorId,请通过另存为来实现"
|
||
},
|
||
"title": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "楼层中文名"
|
||
},
|
||
"name": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "显示在状态栏中的层数"
|
||
},
|
||
"canFlyTo": {
|
||
"_leaf": true,
|
||
"_type": "checkbox",
|
||
"_bool": "bool",
|
||
"_data": "该楼能否被楼传器飞到(不能的话在该楼也不允许使用楼传器)"
|
||
},
|
||
"canUseQuickShop": {
|
||
"_leaf": true,
|
||
"_type": "checkbox",
|
||
"_bool": "bool",
|
||
"_data": "该层是否允许使用快捷商店"
|
||
},
|
||
"defaultGround": {
|
||
"_leaf": true,
|
||
"_type": "select",
|
||
"_select": {
|
||
"values": Object.keys(editor.core.icons.icons.terrains)
|
||
},
|
||
"_data": "默认地面的图块ID(terrains中)"
|
||
},
|
||
"images": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "背景/前景图;你可以选择若干张图片来作为背景/前景素材。详细用法请参见文档“自定义素材”中的说明。"
|
||
},
|
||
"color": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "该层的默认画面色调。本项可不写(代表无色调),如果写需要是一个RGBA数组。"
|
||
},
|
||
"weather": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "该层的默认天气。本项可忽略表示晴天,如果写则第一项为\"rain\"或\"snow\"代表雨雪,第二项为1-10之间的数代表强度。"
|
||
},
|
||
"bgm": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "到达该层后默认播放的BGM。本项可忽略。"
|
||
},
|
||
"item_ratio": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_range": "(thiseval==~~thiseval && thiseval>0)||thiseval==null",
|
||
"_data": "每一层的宝石/血瓶效果,即获得宝石和血瓶时框内\"ratio\"的值。"
|
||
},
|
||
"firstArrive": {
|
||
"_leaf": true,
|
||
"_type": "event",
|
||
"_event": "firstArrive",
|
||
"_data": "第一次到该楼层触发的事件"
|
||
}
|
||
}
|
||
},
|
||
"loc": {
|
||
"_leaf": false,
|
||
"_type": "object",
|
||
"_data": {
|
||
"events": {
|
||
"_leaf": true,
|
||
"_type": "event",
|
||
"_event": "event",
|
||
"_data": "该点的可能事件列表"
|
||
},
|
||
"changeFloor": {
|
||
"_leaf": true,
|
||
"_type": "event",
|
||
"_event": "changeFloor",
|
||
"_data": "该点楼层转换事件;该事件不能和上面的events同时出现,否则会被覆盖"
|
||
},
|
||
"afterBattle": {
|
||
"_leaf": true,
|
||
"_type": "event",
|
||
"_event": "afterBattle",
|
||
"_data": "该点战斗后可能触发的事件列表"
|
||
},
|
||
"afterGetItem": {
|
||
"_leaf": true,
|
||
"_type": "event",
|
||
"_event": "afterGetItem",
|
||
"_data": "该点获得道具后可能触发的事件列表"
|
||
},
|
||
"afterOpenDoor": {
|
||
"_leaf": true,
|
||
"_type": "event",
|
||
"_event": "afterOpenDoor",
|
||
"_data": "该点开完门后可能触发的事件列表"
|
||
},
|
||
"cannotMove": {
|
||
"_leaf": true,
|
||
"_type": "textarea",
|
||
"_data": "该点不可通行的方向 \n 可以在这里定义该点不能前往哪个方向,例如悬崖边不能跳下去 \n'x,y': ['up', 'left'], // (x,y)点不能往上和左走"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
} |