更新文档注释内容

This commit is contained in:
ckcz123 2020-05-10 16:30:18 +08:00
parent 4b503e1663
commit 7db5abe7e4
13 changed files with 210 additions and 263 deletions

View File

@ -130,7 +130,7 @@
.etable table th, .etable table th,
.etable table td { .etable table td {
padding: 6px 13px; padding: 5px;
border: 1px solid #dfe2e5; border: 1px solid #dfe2e5;
} }
@ -154,7 +154,7 @@
} }
.etable tr > :nth-child(2) { .etable tr > :nth-child(2) {
width: 20% width: 22%
} }
.etable tr > :nth-child(3) { .etable tr > :nth-child(3) {
@ -162,7 +162,7 @@
} }
.etable tr > :nth-child(4) { .etable tr > :nth-child(4) {
width: 25%; width: 23%;
padding: 0; padding: 0;
} }

View File

@ -45,11 +45,11 @@ editor_table_wrapper = function (editor) {
editor_table.prototype.checkboxSetMember = function (value,key,prefixString) { editor_table.prototype.checkboxSetMember = function (value,key,prefixString) {
return /* html */`${prefixString}<input key='${key}' type='checkbox' class='checkboxSetMember' onchange='editor.table.checkboxSetMemberOnchange(this)' ${(value ? 'checked ' : '')}/>\n`; return /* html */`${prefixString}<input key='${key}' type='checkbox' class='checkboxSetMember' onchange='editor.table.checkboxSetMemberOnchange(this)' ${(value ? 'checked ' : '')}/>\n`;
} }
editor_table.prototype.editGrid = function (showComment) { editor_table.prototype.editGrid = function (showComment, showEdit) {
var html = ""; var list = [];
if (showComment) html += "<button onclick='editor.table.onCommentBtnClick(this)'>显示完整注释</button><br/>"; if (showComment) list.push("<button onclick='editor.table.onCommentBtnClick(this)'>注释</button>");
html += "<button onclick='editor.table.onEditBtnClick(this)'>编辑表格内容</button>"; if (showEdit) list.push("<button onclick='editor.table.onEditBtnClick(this)'>编辑</button>");
return html; return list.join('&nbsp;');
} }
editor_table.prototype.title = function () { editor_table.prototype.title = function () {
@ -60,12 +60,12 @@ editor_table_wrapper = function (editor) {
return /* html */`<tr><td>----</td><td>----</td><td>${field}</td><td>----</td></tr>\n` return /* html */`<tr><td>----</td><td>----</td><td>${field}</td><td>----</td></tr>\n`
} }
editor_table.prototype.tr = function (guid, field, shortField, commentHTMLescape, cobjstr, shortCommentHTMLescape, tdstr) { editor_table.prototype.tr = function (guid, field, shortField, commentHTMLescape, cobjstr, shortComment, tdstr, type) {
return /* html */`<tr id="${guid}"> return /* html */`<tr id="${guid}">
<td title="${field}">${shortField}</td> <td title="${field}">${shortField}</td>
<td title="${commentHTMLescape}" cobj="${cobjstr}">${shortCommentHTMLescape}</td> <td title="${commentHTMLescape}" cobj="${cobjstr}">${shortComment || commentHTMLescape}</td>
<td><div class="etableInputDiv">${tdstr}</div></td> <td><div class="etableInputDiv">${tdstr}</div></td>
<td>${editor.table.editGrid(commentHTMLescape != shortCommentHTMLescape)}</td> <td>${editor.table.editGrid(shortComment, type != 'select' && type != 'checkbox' && type != 'checkboxSet')}</td>
</tr>\n` </tr>\n`
} }
@ -235,16 +235,16 @@ editor_table_wrapper = function (editor) {
var thiseval = vobj; var thiseval = vobj;
var comment = String(cobj._data); var comment = String(cobj._data);
var charlength = 10; var charlength = 15;
// "['a']['b']" => "b" // "['a']['b']" => "b"
var shortField = field.split("']").slice(-2)[0].split("['").slice(-1)[0]; var shortField = field.split("']").slice(-2)[0].split("['").slice(-1)[0];
// 把长度超过 charlength 的字符改成 固定长度+...的形式 // 把长度超过 charlength 的字符改成 固定长度+...的形式
// shortField = (shortField.length < charlength ? shortField : shortField.slice(0, charlength) + '...'); shortField = (shortField.length < charlength ? shortField : shortField.slice(0, charlength) + '...');
// 完整的内容转义后供悬停查看 // 完整的内容转义后供悬停查看
var commentHTMLescape = editor.util.HTMLescape(comment); var commentHTMLescape = editor.util.HTMLescape(comment);
// 把长度超过 charlength 的字符改成 固定长度+...的形式 // 把长度超过 charlength 的字符改成 固定长度+...的形式
var shortCommentHTMLescape = (comment.length < charlength ? commentHTMLescape : editor.util.HTMLescape(comment.slice(0, charlength)) + '...'); // var shortCommentHTMLescape = (comment.length < charlength ? commentHTMLescape : editor.util.HTMLescape(comment.slice(0, charlength)) + '...');
var cobjstr = Object.assign({}, cobj); var cobjstr = Object.assign({}, cobj);
delete cobjstr._data; delete cobjstr._data;
@ -252,7 +252,7 @@ editor_table_wrapper = function (editor) {
cobjstr = editor.util.HTMLescape(JSON.stringify(cobjstr)); cobjstr = editor.util.HTMLescape(JSON.stringify(cobjstr));
var tdstr = editor.table.objToTd(obj, commentObj, field, cfield, vobj, cobj) var tdstr = editor.table.objToTd(obj, commentObj, field, cfield, vobj, cobj)
var outstr = editor.table.tr(guid, field, shortField, commentHTMLescape, cobjstr, shortCommentHTMLescape, tdstr) var outstr = editor.table.tr(guid, field, shortField, commentHTMLescape, cobjstr, cobj._docs, tdstr, cobj._type)
return [outstr, guid]; return [outstr, guid];
} }

View File

@ -25,33 +25,38 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"equips" "equips"
] ]
}, },
"_docs": "道具类别",
"_data": "只能取items(宝石、血瓶) constants(永久物品) tools(消耗道具) equips(装备)" "_data": "只能取items(宝石、血瓶) constants(永久物品) tools(消耗道具) equips(装备)"
}, },
"name": { "name": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_data": "名称" "_data": "道具名称"
}, },
"text": { "text": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "道具描述",
"_data": "道具在道具栏中显示的描述" "_data": "道具在道具栏中显示的描述"
}, },
"hideInToolbox": { "hideInToolbox": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "道具栏中隐藏",
"_data": "是否不显示在道具栏中" "_data": "是否不显示在道具栏中"
}, },
"equip": { "equip": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "道具的装备属性",
"_data": "装备属性设置仅对cls为equips有效。\n如果此项不为null需要是一个对象里面可含\"type\"\"atk\"\"def\"\"mdef\"\"animate\"五项,分别对应装备部位、攻防魔防和动画。\n具体详见文档元件说明-装备)和已有的几个装备的写法。" "_data": "装备属性设置仅对cls为equips有效。\n如果此项不为null需要是一个对象里面可含\"type\"\"atk\"\"def\"\"mdef\"\"animate\"五项,分别对应装备部位、攻防魔防和动画。\n具体详见文档元件说明-装备)和已有的几个装备的写法。"
}, },
"hideInReplay": { "hideInReplay": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "回放不绘制道具栏",
"_data": "是否回放时不绘制道具栏。\n如果此项为true则在回放录像时使用本道具将不会绘制道具栏页面而是直接使用。\n此项建议在会频繁连续多次使用的道具开启如开启技能或者《镜子》那样的镜像切换等等" "_data": "是否回放时不绘制道具栏。\n如果此项为true则在回放录像时使用本道具将不会绘制道具栏页面而是直接使用。\n此项建议在会频繁连续多次使用的道具开启如开启技能或者《镜子》那样的镜像切换等等"
} }
} }
@ -61,6 +66,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_lint": true, "_lint": true,
"_docs": "即捡即用效果",
"_data": "即捡即用类物品的效果仅对cls为items有效。" "_data": "即捡即用类物品的效果仅对cls为items有效。"
}, },
"itemEffectTip": { "itemEffectTip": {
@ -68,12 +74,14 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_lint": true, "_lint": true,
"_docs": "即捡即用提示",
"_data": "即捡即用类物品在获得时提示的文字仅对cls为items有效。" "_data": "即捡即用类物品在获得时提示的文字仅对cls为items有效。"
}, },
"useItemEvent": { "useItemEvent": {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "item", "_event": "item",
"_docs": "碰触或使用事件",
"_data": "碰触或使用本道具所执行的事件" "_data": "碰触或使用本道具所执行的事件"
}, },
"useItemEffect": { "useItemEffect": {
@ -81,6 +89,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_lint": true, "_lint": true,
"_docs": "使用效果",
"_data": "道具效果仅对cls为tools或constants有效。" "_data": "道具效果仅对cls为tools或constants有效。"
}, },
"canUseItemEffect": { "canUseItemEffect": {
@ -88,6 +97,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_lint": true, "_lint": true,
"_docs": "能否使用条件",
"_data": "当前能否使用该道具仅对cls为tools或constants有效。" "_data": "当前能否使用该道具仅对cls为tools或constants有效。"
}, },
"equipCondition": { "equipCondition": {
@ -95,6 +105,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_lint": true, "_lint": true,
"_docs": "能否装备条件",
"_data": "能装备某个装备的条件仅对cls为equips有效。\n与canUseItemEffect不同这里null代表可以装备。" "_data": "能装备某个装备的条件仅对cls为equips有效。\n与canUseItemEffect不同这里null代表可以装备。"
} }
} }
@ -116,6 +127,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "手册映射ID",
"_data": "在怪物手册中映射到的怪物ID。如果此项不为null则在怪物手册中将用目标ID来替换该怪物原本的ID。\n此项应被运用在同一个怪物的多朝向上。\n例如如果想定义同一个怪物的向下和向左的行走图则需要建立两个属性完全相同的怪物。\n但是这样会导致在怪物手册中同时存在向下和向左的两种怪物的显示。\n可以将朝向左的怪物的displayIdInBook项指定为朝向下的怪物ID这样在怪物手册中则会归一化只显示一个。" "_data": "在怪物手册中映射到的怪物ID。如果此项不为null则在怪物手册中将用目标ID来替换该怪物原本的ID。\n此项应被运用在同一个怪物的多朝向上。\n例如如果想定义同一个怪物的向下和向左的行走图则需要建立两个属性完全相同的怪物。\n但是这样会导致在怪物手册中同时存在向下和向左的两种怪物的显示。\n可以将朝向左的怪物的displayIdInBook项指定为朝向下的怪物ID这样在怪物手册中则会归一化只显示一个。"
}, },
"hp": { "hp": {
@ -152,56 +164,66 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==null || thiseval instanceof Array || (thiseval==~~thiseval && thiseval>=0)", "_range": "thiseval==null || thiseval instanceof Array || (thiseval==~~thiseval && thiseval>=0)",
"_docs": "特殊属性",
"_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:重生,24:激光,25:光环\n26:支援,27:捕捉\n多个属性例如用[1,4,11]表示先攻2连击吸血" "_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:重生,24:激光,25:光环\n26:支援,27:捕捉\n多个属性例如用[1,4,11]表示先攻2连击吸血"
}, },
"value": { "value": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "特殊属性值",
"_data": "特殊属性的数值\n如领域/阻激/激光怪的伤害值;吸血怪的吸血比例;光环怪增加生命的比例" "_data": "特殊属性的数值\n如领域/阻激/激光怪的伤害值;吸血怪的吸血比例;光环怪增加生命的比例"
}, },
"zoneSquare": { "zoneSquare": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "九宫格领域",
"_data": "领域怪是否九宫格伤害" "_data": "领域怪是否九宫格伤害"
}, },
"range": { "range": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "(thiseval==~~thiseval && thiseval>0)||thiseval==null", "_range": "(thiseval==~~thiseval && thiseval>0)||thiseval==null",
"_docs": "领域范围",
"_data": "领域伤害的范围不加默认为1" "_data": "领域伤害的范围不加默认为1"
}, },
"notBomb": { "notBomb": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "是否不可炸",
"_data": "该怪物不可被炸" "_data": "该怪物不可被炸"
}, },
"n": { "n": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "(thiseval==~~thiseval && thiseval>0)||thiseval==null", "_range": "(thiseval==~~thiseval && thiseval>0)||thiseval==null",
"_docs": "连击数",
"_data": "多连击的连击数" "_data": "多连击的连击数"
}, },
"add": { "add": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "吸血加自身",
"_data": "吸血后是否加到自身;光环是否叠加" "_data": "吸血后是否加到自身;光环是否叠加"
}, },
"atkValue": { "atkValue": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==~~thiseval||thiseval==null", "_range": "thiseval==~~thiseval||thiseval==null",
"_docs": "退化扣攻击",
"_data": "退化时勇士下降的攻击力点数;光环怪增加攻击的比例" "_data": "退化时勇士下降的攻击力点数;光环怪增加攻击的比例"
}, },
"defValue": { "defValue": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==~~thiseval||thiseval==null", "_range": "thiseval==~~thiseval||thiseval==null",
"_docs": "退化扣防御",
"_data": "退化时勇士下降的防御力点数;光环怪增加防御的比例" "_data": "退化时勇士下降的防御力点数;光环怪增加防御的比例"
}, },
"damage": { "damage": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==~~thiseval||thiseval==null", "_range": "thiseval==~~thiseval||thiseval==null",
"_docs": "固伤",
"_data": "战前扣血的点数" "_data": "战前扣血的点数"
} }
} }
@ -250,11 +272,13 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"custom" "custom"
] ]
}, },
"_docs": "触发器",
"_data": "该图块的默认触发器" "_data": "该图块的默认触发器"
}, },
"canPass": { "canPass": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "可通行性",
"_data": "该图块是否可以通行true代表可以通行false代表不可通行" "_data": "该图块是否可以通行true代表可以通行false代表不可通行"
}, },
"script": { "script": {
@ -262,6 +286,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_lint": true, "_lint": true,
"_docs": "碰触脚本",
"_data": "触碰到该图块时自动执行的脚本内容;此脚本会在该点的触发器执行前执行" "_data": "触碰到该图块时自动执行的脚本内容;此脚本会在该点的触发器执行前执行"
}, },
"cannotOut": { "cannotOut": {
@ -271,6 +296,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"prefix":["上: ","下: ","<br>左: ","右: "], "prefix":["上: ","下: ","<br>左: ","右: "],
"key":["up","down","left","right"] "key":["up","down","left","right"]
}, },
"_docs": "不可出方向",
"_data": "该图块的不可出方向\n可以在这里定义在该图块时不能前往哪个方向可以达到悬崖之类的效果\n例如 [\"up\", \"left\"] 代表在该图块时不能往上和左走\n此值对背景层、事件层、前景层上的图块均有效" "_data": "该图块的不可出方向\n可以在这里定义在该图块时不能前往哪个方向可以达到悬崖之类的效果\n例如 [\"up\", \"left\"] 代表在该图块时不能往上和左走\n此值对背景层、事件层、前景层上的图块均有效"
}, },
"cannotIn": { "cannotIn": {
@ -280,27 +306,32 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"prefix":["上: ","下: ","<br>左: ","右: "], "prefix":["上: ","下: ","<br>左: ","右: "],
"key":["up","down","left","right"] "key":["up","down","left","right"]
}, },
"_docs": "不可入方向",
"_data": "该图块的不可入方向\n可以在这里定义不能朝哪个方向进入该图块可以达到悬崖之类的效果\n例如 [\"down\"] 代表不能从该图块的上方点朝向下进入此图块\n此值对背景层、事件层、前景层上的图块均有效" "_data": "该图块的不可入方向\n可以在这里定义不能朝哪个方向进入该图块可以达到悬崖之类的效果\n例如 [\"down\"] 代表不能从该图块的上方点朝向下进入此图块\n此值对背景层、事件层、前景层上的图块均有效"
}, },
"canBreak": { "canBreak": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "可破震",
"_data": "该图块是否可被破墙或地震" "_data": "该图块是否可被破墙或地震"
}, },
"animate": { "animate": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==~~thiseval||thiseval==null", "_range": "thiseval==~~thiseval||thiseval==null",
"_docs": "动画帧数",
"_data": "该图块的全局动画帧数。\n如果此项为null则对于除了npc48外使用素材默认帧数npc48默认是1帧即静止。" "_data": "该图块的全局动画帧数。\n如果此项为null则对于除了npc48外使用素材默认帧数npc48默认是1帧即静止。"
}, },
"doorInfo": { "doorInfo": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "门信息",
"_data": "该图块的门信息,是一个三元数组。\n第一项为所需要的钥匙信息第二项为开此门时的音效第三项为关此门时的音效。仅对animates生效。" "_data": "该图块的门信息,是一个三元数组。\n第一项为所需要的钥匙信息第二项为开此门时的音效第三项为关此门时的音效。仅对animates生效。"
}, },
"faceIds": { "faceIds": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "行走图朝向",
"_data": "行走图朝向仅对NPC有效。可以在这里定义同一个NPC的多个朝向行走图。\n比如 {\"up\":\"N333\",\"down\":\"N334\",\"left\":\"N335\",\"right\":\"N336\"} 就将该素材的上下左右朝向分别绑定到N333,N334,N335和N336四个图块。\n在勇士撞上NPC时或NPC在移动时会自动选择最合适的朝向图块如果存在定义来进行绘制。" "_data": "行走图朝向仅对NPC有效。可以在这里定义同一个NPC的多个朝向行走图。\n比如 {\"up\":\"N333\",\"down\":\"N334\",\"left\":\"N335\",\"right\":\"N336\"} 就将该素材的上下左右朝向分别绑定到N333,N334,N335和N336四个图块。\n在勇士撞上NPC时或NPC在移动时会自动选择最合适的朝向图块如果存在定义来进行绘制。"
} }
} }
@ -318,60 +349,71 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "false", "_range": "false",
"_docs": "楼层ID",
"_data": "文件名和floorId需要保持完全一致 \n楼层唯一标识符仅能由字母、数字、下划线组成且不能由数字开头 \n推荐用法第20层就用MT20第38层就用MT38地下6层就用MT_6用下划线代替负号隐藏3层用MT3hh表示隐藏等等 \n楼层唯一标识符需要和名字完全一致 \n这里不能更改floorId,请通过另存为来实现" "_data": "文件名和floorId需要保持完全一致 \n楼层唯一标识符仅能由字母、数字、下划线组成且不能由数字开头 \n推荐用法第20层就用MT20第38层就用MT38地下6层就用MT_6用下划线代替负号隐藏3层用MT3hh表示隐藏等等 \n楼层唯一标识符需要和名字完全一致 \n这里不能更改floorId,请通过另存为来实现"
}, },
"title": { "title": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "楼层中文名",
"_data": "楼层中文名,将在切换楼层和浏览地图时显示" "_data": "楼层中文名,将在切换楼层和浏览地图时显示"
}, },
"name": { "name": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "状态栏显示",
"_data": "显示在状态栏中的层数" "_data": "显示在状态栏中的层数"
}, },
"width": { "width": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "false", "_range": "false",
"_docs": "宽度",
"_data": "地图x方向大小,这里不能更改,仅能在新建地图时设置,null视为13" "_data": "地图x方向大小,这里不能更改,仅能在新建地图时设置,null视为13"
}, },
"height": { "height": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "false", "_range": "false",
"_docs": "高度",
"_data": "地图y方向大小,这里不能更改,仅能在新建地图时设置,null视为13" "_data": "地图y方向大小,这里不能更改,仅能在新建地图时设置,null视为13"
}, },
"canFlyTo": { "canFlyTo": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "可飞",
"_data": "该楼能否被楼传器飞到(不能的话在该楼也不允许使用楼传器)" "_data": "该楼能否被楼传器飞到(不能的话在该楼也不允许使用楼传器)"
}, },
"canUseQuickShop": { "canUseQuickShop": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "可快捷商店",
"_data": "该层是否允许使用快捷商店" "_data": "该层是否允许使用快捷商店"
}, },
"cannotViewMap": { "cannotViewMap": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "不可浏览",
"_data": "该层是否不允许被浏览地图看到;如果勾上则浏览地图会跳过该层" "_data": "该层是否不允许被浏览地图看到;如果勾上则浏览地图会跳过该层"
}, },
"cannotMoveDirectly": { "cannotMoveDirectly": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "不可瞬移",
"_data": "该层是否不允许瞬间移动;如果勾上则不可在此层进行瞬移" "_data": "该层是否不允许瞬间移动;如果勾上则不可在此层进行瞬移"
}, },
"firstArrive": { "firstArrive": {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "firstArrive", "_event": "firstArrive",
"_docs": "首次到达事件",
"_data": "第一次到该楼层触发的事件,可以双击进入事件编辑器。" "_data": "第一次到该楼层触发的事件,可以双击进入事件编辑器。"
}, },
"eachArrive": { "eachArrive": {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "eachArrive", "_event": "eachArrive",
"_docs": "每次到达事件",
"_data": "每次到该楼层触发的事件可以双击进入事件编辑器该事件会在firstArrive执行后再执行。" "_data": "每次到该楼层触发的事件可以双击进入事件编辑器该事件会在firstArrive执行后再执行。"
}, },
"parallelDo": { "parallelDo": {
@ -379,38 +421,45 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_lint": true, "_lint": true,
"_data": "在该层楼时执行的并行事件处理。\n可以在这里写上任意需要自动执行的脚本比如打怪自动开门等。\n详见文档-事件-并行事件处理。" "_docs": "并行处理脚本",
"_data": "在该层楼时执行的并行脚本处理。\n可以在这里写上任意需要自动执行的脚本比如打怪自动开门等。\n详见文档-事件-并行事件处理。"
}, },
"upFloor": { "upFloor": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==null||((thiseval instanceof Array) && thiseval.length==2)", "_range": "thiseval==null||((thiseval instanceof Array) && thiseval.length==2)",
"_docs": "上楼点",
"_data": "该层上楼点,如[2,3]。\n如果此项不为null则楼层转换时的stair:upFloor以及楼传器的落点会被替换成该点而不是该层的上楼梯。" "_data": "该层上楼点,如[2,3]。\n如果此项不为null则楼层转换时的stair:upFloor以及楼传器的落点会被替换成该点而不是该层的上楼梯。"
}, },
"downFloor": { "downFloor": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==null||((thiseval instanceof Array) && thiseval.length==2)", "_range": "thiseval==null||((thiseval instanceof Array) && thiseval.length==2)",
"_docs": "下楼点",
"_data": "该层下楼点,如[2,3]。\n如果此项不为null则楼层转换时的stair:downFloor以及楼传器的落点会被替换成该点而不是该层的下楼梯。" "_data": "该层下楼点,如[2,3]。\n如果此项不为null则楼层转换时的stair:downFloor以及楼传器的落点会被替换成该点而不是该层的下楼梯。"
}, },
"defaultGround": { "defaultGround": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "地面图块",
"_data": "默认地面的图块ID此项修改后需要刷新才能看到效果。不填则默认是ground" "_data": "默认地面的图块ID此项修改后需要刷新才能看到效果。不填则默认是ground"
}, },
"images": { "images": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "楼层贴图",
"_data": "背景/前景图;你可以选择若干张图片来作为背景/前景素材。详细用法请参见文档“自定义素材”中的说明。" "_data": "背景/前景图;你可以选择若干张图片来作为背景/前景素材。详细用法请参见文档“自定义素材”中的说明。"
}, },
"color": { "color": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "色调",
"_data": "该层的默认画面色调。本项可不写代表无色调如果写需要是一个RGBA数组如[255,0,0,0.3]" "_data": "该层的默认画面色调。本项可不写代表无色调如果写需要是一个RGBA数组如[255,0,0,0.3]"
}, },
"weather": { "weather": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "天气",
"_data": "该层的默认天气。本项可忽略表示晴天,如果写则第一项为\"rain\"\"snow\"或\"fog\"代表雨雪雾第二项为1-10之间的数代表强度。\n如[\"rain\", 8]代表8级雨天。" "_data": "该层的默认天气。本项可忽略表示晴天,如果写则第一项为\"rain\"\"snow\"或\"fog\"代表雨雪雾第二项为1-10之间的数代表强度。\n如[\"rain\", 8]代表8级雨天。"
}, },
"bgm": { "bgm": {
@ -419,17 +468,20 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_select": { "_select": {
"values": [null].concat(Object.keys(editor.core.material.bgms)) "values": [null].concat(Object.keys(editor.core.material.bgms))
}, },
"_docs": "背景音乐",
"_data": "到达该层后默认播放的BGM。本项可忽略或者为一个定义过的背景音乐如\"bgm.mp3\"。" "_data": "到达该层后默认播放的BGM。本项可忽略或者为一个定义过的背景音乐如\"bgm.mp3\"。"
}, },
"item_ratio": { "item_ratio": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "(thiseval==~~thiseval && thiseval>=0)||thiseval==null", "_range": "(thiseval==~~thiseval && thiseval>=0)||thiseval==null",
"_docs": "宝石血瓶效果",
"_data": "每一层的宝石/血瓶效果,即获得宝石和血瓶时框内\"ratio\"的值。" "_data": "每一层的宝石/血瓶效果,即获得宝石和血瓶时框内\"ratio\"的值。"
}, },
"underGround": { "underGround": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "是否是地下层",
"_data": "是否是地下层如果该项为true则同层传送将传送至上楼梯" "_data": "是否是地下层如果该项为true则同层传送将传送至上楼梯"
} }
} }
@ -441,6 +493,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "event", "_event": "event",
"_docs": "普通事件",
"_data": "该点的可能事件列表,可以双击进入事件编辑器。" "_data": "该点的可能事件列表,可以双击进入事件编辑器。"
}, },
"autoEvent": { "autoEvent": {
@ -457,7 +510,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "autoEvent", "_event": "autoEvent",
"_data": "自动事件" "_data": "自动事件"
} }
} }
}, },
@ -465,30 +518,38 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "changeFloor", "_event": "changeFloor",
"_docs": "楼层转换",
"_data": "该点楼层转换事件该事件不能和上面的events同时出现否则会被覆盖" "_data": "该点楼层转换事件该事件不能和上面的events同时出现否则会被覆盖"
}, },
"afterBattle": { "afterBattle": {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "afterBattle", "_event": "afterBattle",
"_docs": "战后事件",
"_data": "该点战斗后可能触发的事件列表,可以双击进入事件编辑器。" "_data": "该点战斗后可能触发的事件列表,可以双击进入事件编辑器。"
}, },
"afterGetItem": { "afterGetItem": {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "afterGetItem", "_event": "afterGetItem",
"_docs": "道具后事件",
"_data": "该点获得道具后可能触发的事件列表,可以双击进入事件编辑器。" "_data": "该点获得道具后可能触发的事件列表,可以双击进入事件编辑器。"
}, },
"afterOpenDoor": { "afterOpenDoor": {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "afterOpenDoor", "_event": "afterOpenDoor",
"_docs": "开门后事件",
"_data": "该点开完门后可能触发的事件列表,可以双击进入事件编辑器。" "_data": "该点开完门后可能触发的事件列表,可以双击进入事件编辑器。"
}, },
"cannotMove": { "cannotMove": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "checkboxSet",
"_range": "thiseval==null||(thiseval instanceof Array)", "_checkboxSet": {
"prefix":["上: ","下: ","<br>左: ","右: "],
"key":["up","down","left","right"]
},
"_docs": "不可通行性",
"_data": "该点不可通行的方向 \n 可以在这里定义该点不能前往哪个方向,可以达到悬崖之类的效果\n例如 [\"up\", \"left\"] 代表该点不能往上和左走" "_data": "该点不可通行的方向 \n 可以在这里定义该点不能前往哪个方向,可以达到悬崖之类的效果\n例如 [\"up\", \"left\"] 代表该点不能往上和左走"
}, },
} }

View File

@ -14,131 +14,153 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "editor.mode.checkFloorIds(thiseval)", "_range": "editor.mode.checkFloorIds(thiseval)",
"_docs": "楼层列表",
"_data": "在这里按顺序放所有的楼层;其顺序直接影响到楼层传送器、浏览地图和上/下楼器的顺序" "_data": "在这里按顺序放所有的楼层;其顺序直接影响到楼层传送器、浏览地图和上/下楼器的顺序"
}, },
"images": { "images": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "editor.mode.checkImages(thiseval)", "_range": "editor.mode.checkImages(thiseval)",
"_docs": "本塔使用图片",
"_data": "在此存放所有可能使用的图片tilesets除外 \n图片可以被作为背景图的一部分也可以直接用自定义事件进行显示。 \n 图片名不能使用中文,不能带空格或特殊字符;可以直接改名拼音就好 \n 建议对于较大的图片,在网上使用在线的“图片压缩工具(http://compresspng.com/zh/)”来进行压缩,以节省流量 \n 依次向后添加" "_data": "在此存放所有可能使用的图片tilesets除外 \n图片可以被作为背景图的一部分也可以直接用自定义事件进行显示。 \n 图片名不能使用中文,不能带空格或特殊字符;可以直接改名拼音就好 \n 建议对于较大的图片,在网上使用在线的“图片压缩工具(http://compresspng.com/zh/)”来进行压缩,以节省流量 \n 依次向后添加"
}, },
"tilesets": { "tilesets": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "editor.mode.checkImages(thiseval)", "_range": "editor.mode.checkImages(thiseval)",
"_docs": "本塔额外素材",
"_data": "在此存放额外素材的图片名, \n可以自定导入任意张素材图片无需PS无需注册即可直接在游戏中使用 \n 形式如[\"1.png\", \"2.png\"] ,将需要的素材图片放在images目录下 \n 素材的宽高必须都是32的倍数且图片上的总图块数不超过1000即最多有1000个32*32的图块在该图片上" "_data": "在此存放额外素材的图片名, \n可以自定导入任意张素材图片无需PS无需注册即可直接在游戏中使用 \n 形式如[\"1.png\", \"2.png\"] ,将需要的素材图片放在images目录下 \n 素材的宽高必须都是32的倍数且图片上的总图块数不超过1000即最多有1000个32*32的图块在该图片上"
}, },
"animates": { "animates": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "editor.mode.checkUnique(thiseval)", "_range": "editor.mode.checkUnique(thiseval)",
"_docs": "本塔使用动画",
"_data": "在此存放所有可能使用的动画必须是animate格式在这里不写后缀名 \n动画必须放在animates目录下文件名不能使用中文不能带空格或特殊字符 \n \"jianji\", \"thunder\" 根据需求自行添加" "_data": "在此存放所有可能使用的动画必须是animate格式在这里不写后缀名 \n动画必须放在animates目录下文件名不能使用中文不能带空格或特殊字符 \n \"jianji\", \"thunder\" 根据需求自行添加"
}, },
"bgms": { "bgms": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "editor.mode.checkUnique(thiseval)", "_range": "editor.mode.checkUnique(thiseval)",
"_docs": "本塔使用音乐",
"_data": "在此存放所有的bgm和文件名一致。 \n音频名不能使用中文不能带空格或特殊字符可以直接改名拼音就好" "_data": "在此存放所有的bgm和文件名一致。 \n音频名不能使用中文不能带空格或特殊字符可以直接改名拼音就好"
}, },
"sounds": { "sounds": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "editor.mode.checkUnique(thiseval)", "_range": "editor.mode.checkUnique(thiseval)",
"_docs": "本塔使用音效",
"_data": "在此存放所有的SE和文件名一致 \n音频名不能使用中文不能带空格或特殊字符可以直接改名拼音就好" "_data": "在此存放所有的SE和文件名一致 \n音频名不能使用中文不能带空格或特殊字符可以直接改名拼音就好"
}, },
"nameMap": { "nameMap": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "文件名映射",
"_data": "文件名映射目前仅对images, animates, bgms, sounds有效。\n例如定义 {\"精灵石.mp3\":\"jinglingshi.mp3\"} 就可以使用\ncore.playBgm(\"精灵石.mp3\") 或对应的事件来播放该bgm。" "_data": "文件名映射目前仅对images, animates, bgms, sounds有效。\n例如定义 {\"精灵石.mp3\":\"jinglingshi.mp3\"} 就可以使用\ncore.playBgm(\"精灵石.mp3\") 或对应的事件来播放该bgm。"
}, },
"startBackground": { "startBackground": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "标题背景",
"_data": "标题界面的背景建议使用jpg格式以压缩背景图空间" "_data": "标题界面的背景建议使用jpg格式以压缩背景图空间"
}, },
"startLogoStyle": { "startLogoStyle": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "标题样式",
"_data": "标题样式:可以改变颜色,也可以写\"display: none\"来隐藏标题" "_data": "标题样式:可以改变颜色,也可以写\"display: none\"来隐藏标题"
}, },
"startButtonsStyle": { "startButtonsStyle": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "标题按钮样式",
"_data": "标题界面按钮的样式caret-color指的是当前选中项的边框颜色" "_data": "标题界面按钮的样式caret-color指的是当前选中项的边框颜色"
}, },
"levelChoose": { "levelChoose": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval instanceof Array && thiseval.length>=1 && thiseval[0] instanceof Array && thiseval[0].length==2", "_range": "thiseval instanceof Array && thiseval.length>=1 && thiseval[0] instanceof Array && thiseval[0].length==2",
"_docs": "难度分歧",
"_data": "难度选择每个数组的第一个是其在标题界面显示的难度第二个是在游戏内部传输的字符串会显示在状态栏修改此处后需要在project/functions中作相应更改。\n如果需直接开始游戏将下面的startDirectly开关打开即可。" "_data": "难度选择每个数组的第一个是其在标题界面显示的难度第二个是在游戏内部传输的字符串会显示在状态栏修改此处后需要在project/functions中作相应更改。\n如果需直接开始游戏将下面的startDirectly开关打开即可。"
}, },
"equipName": { "equipName": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "(thiseval instanceof Array && thiseval.length<=6)||thiseval==null", "_range": "(thiseval instanceof Array && thiseval.length<=6)||thiseval==null",
"_docs": "装备孔",
"_data": "装备位名称为不超过6个的数组此项的顺序与equiptype数值关联例如可写[\"武器\",\"防具\",\"首饰\"]等等。" "_data": "装备位名称为不超过6个的数组此项的顺序与equiptype数值关联例如可写[\"武器\",\"防具\",\"首饰\"]等等。"
}, },
"startBgm": { "startBgm": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "标题音乐",
"_data": "在标题界面应该播放的bgm内容" "_data": "在标题界面应该播放的bgm内容"
}, },
"statusLeftBackground": { "statusLeftBackground": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "横屏状态栏",
"_data": "横屏时左侧状态栏的背景样式,可以定义背景图、平铺方式等。\n具体请网上搜索\"css background\"了解写法。\n如果弄一张图片作为背景图推荐写法\n\"url(project/images/XXX.png) 0 0/100% 100% no-repeat\"\n图片最好进行一些压缩等操作节省流量。" "_data": "横屏时左侧状态栏的背景样式,可以定义背景图、平铺方式等。\n具体请网上搜索\"css background\"了解写法。\n如果弄一张图片作为背景图推荐写法\n\"url(project/images/XXX.png) 0 0/100% 100% no-repeat\"\n图片最好进行一些压缩等操作节省流量。"
}, },
"statusTopBackground": { "statusTopBackground": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "竖屏状态栏",
"_data": "竖屏时上方状态栏的背景样式,可以定义背景图、平铺方式等。\n具体请网上搜索\"css background\"了解写法。\n如果弄一张图片作为背景图推荐写法\n\"url(project/images/XXX.png) 0 0/100% 100% no-repeat\"\n图片最好进行一些压缩等操作节省流量。" "_data": "竖屏时上方状态栏的背景样式,可以定义背景图、平铺方式等。\n具体请网上搜索\"css background\"了解写法。\n如果弄一张图片作为背景图推荐写法\n\"url(project/images/XXX.png) 0 0/100% 100% no-repeat\"\n图片最好进行一些压缩等操作节省流量。"
}, },
"toolsBackground": { "toolsBackground": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_data": "竖屏时下方道具栏的背景样式,可以定义背景图、平铺方式等。\n具体请网上搜索\"css background\"了解写法。\n如果弄一张图片作为背景图推荐写法\n\"url(project/images/XXX.png) 0 0/100% 100% no-repeat\"\n图片最好进行一些压缩等操作节省流量。" "_docs": "竖屏工具栏",
"_data": "竖屏时下方工具栏的背景样式,可以定义背景图、平铺方式等。\n具体请网上搜索\"css background\"了解写法。\n如果弄一张图片作为背景图推荐写法\n\"url(project/images/XXX.png) 0 0/100% 100% no-repeat\"\n图片最好进行一些压缩等操作节省流量。"
}, },
"borderColor": { "borderColor": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "边框色",
"_data": "边框颜色,包括游戏边界的边框和对话框边框等。" "_data": "边框颜色,包括游戏边界的边框和对话框边框等。"
}, },
"statusBarColor": { "statusBarColor": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "状态栏文字色",
"_data": "状态栏的文字颜色,默认是白色" "_data": "状态栏的文字颜色,默认是白色"
}, },
"hardLabelColor": { "hardLabelColor": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "难度标签色",
"_data": "难度显示的颜色,默认是红色" "_data": "难度显示的颜色,默认是红色"
}, },
"floorChangingBackground": { "floorChangingBackground": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "转场背景色",
"_data": "楼层转换界面的背景样式可以使用纯色默认值black也可以使用图片参见状态栏的图片写法" "_data": "楼层转换界面的背景样式可以使用纯色默认值black也可以使用图片参见状态栏的图片写法"
}, },
"floorChangingTextColor": { "floorChangingTextColor": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "转场文字色",
"_data": "楼层转换界面的文字颜色,默认是白色" "_data": "楼层转换界面的文字颜色,默认是白色"
}, },
"font": { "font": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "全局字体",
"_data": "游戏中使用的字体默认是Verdana" "_data": "游戏中使用的字体默认是Verdana"
} }
} }
@ -150,6 +172,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "游戏名",
"_data": "游戏名,将显示在标题页面以及切换楼层的界面中" "_data": "游戏名,将显示在标题页面以及切换楼层的界面中"
}, },
"name": { "name": {
@ -157,12 +180,14 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_range": "/^[a-zA-Z0-9_]{1,30}$/.test(thiseval)", "_range": "/^[a-zA-Z0-9_]{1,30}$/.test(thiseval)",
"_docs": "唯一英文标识符",
"_data": "游戏的唯一英文标识符。由英文、数字、下划线组成不能超过30个字符。\n此项必须修改其将直接影响到存档的定位" "_data": "游戏的唯一英文标识符。由英文、数字、下划线组成不能超过30个字符。\n此项必须修改其将直接影响到存档的定位"
}, },
"version": { "version": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_docs": "游戏版本",
"_data": "当前游戏版本;版本不一致的存档不能通用。" "_data": "当前游戏版本;版本不一致的存档不能通用。"
}, },
"floorId": { "floorId": {
@ -172,6 +197,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"values": data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d.main.floorIds "values": data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d.main.floorIds
}, },
"_range": "data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d.main.floorIds.indexOf(thiseval)!==-1", "_range": "data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d.main.floorIds.indexOf(thiseval)!==-1",
"_docs": "初始楼层",
"_data": "初始楼层的ID" "_data": "初始楼层的ID"
}, },
"hero": { "hero": {
@ -181,33 +207,34 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_string": true, "_string": true,
"_data": "勇士名;可以改成喜欢的" "_data": "勇士名"
}, },
"lv": { "lv": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==~~thiseval &&thiseval>0", "_range": "thiseval==~~thiseval &&thiseval>0",
"_data": "初始等级,该项必须为正整数" "_data": "初始等级"
}, },
"hpmax": { "hpmax": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "初始生命上限只有在enableHPMax开启时才有效" "_data": "初始上限"
}, },
"hp": { "hp": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "初始生命" "_data": "初始生命"
}, },
"manamax": { "manamax": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "魔力上限",
"_data": "魔力上限此项非负才会生效null或小于0都不会生效" "_data": "魔力上限此项非负才会生效null或小于0都不会生效"
}, },
"mana": { "mana": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "初始魔力只在enableMana开启时才有效" "_data": "初始魔力"
}, },
"atk": { "atk": {
"_leaf": true, "_leaf": true,
@ -238,7 +265,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval instanceof Array", "_range": "thiseval instanceof Array",
"_data": "初始装上的装,此处建议请直接留空数组" "_data": "初始装备"
}, },
"items": { "items": {
"_type": "object", "_type": "object",
@ -247,18 +274,21 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval instanceof Object && !(thiseval instanceof Array)", "_range": "thiseval instanceof Object && !(thiseval instanceof Array)",
"_docs": "永久道具",
"_data": "初始永久道具个数,例如初始送手册可以写 {\"book\": 1}" "_data": "初始永久道具个数,例如初始送手册可以写 {\"book\": 1}"
}, },
"tools": { "tools": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval instanceof Object && !(thiseval instanceof Array)", "_range": "thiseval instanceof Object && !(thiseval instanceof Array)",
"_docs": "消耗道具",
"_data": "初始消耗道具个数,例如初始有两破可以写 {\"pickaxe\": 2}" "_data": "初始消耗道具个数,例如初始有两破可以写 {\"pickaxe\": 2}"
}, },
"equips": { "equips": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval instanceof Object && !(thiseval instanceof Array)", "_range": "thiseval instanceof Object && !(thiseval instanceof Array)",
"_docs": "初始装备个数",
"_data": "初始装备个数,例如初始送铁剑可以写 {\"sword1\": 1}" "_data": "初始装备个数,例如初始送铁剑可以写 {\"sword1\": 1}"
} }
} }
@ -269,7 +299,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"direction": { "direction": {
"_leaf": true, "_leaf": true,
"_type": "select", "_type": "select",
"_data": "勇士初始方向", "_data": "初始朝向",
"_select": { "_select": {
"values": [ "values": [
"up", "up",
@ -282,12 +312,12 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"x": { "x": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "勇士初始x坐标" "_data": "初始x坐标"
}, },
"y": { "y": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "勇士初始y坐标" "_data": "初始y坐标"
} }
} }
}, },
@ -295,12 +325,18 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval instanceof Object && !(thiseval instanceof Array)", "_range": "thiseval instanceof Object && !(thiseval instanceof Array)",
"_data": "游戏过程中的变量或flags" "_data": "游戏变量"
},
"followers": {
"_leaf": true,
"_type": "textarea",
"_range": "thiseval instanceof Array",
"_data": "跟随者列表"
}, },
"steps": { "steps": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "行走步数统计" "_data": "行走步数"
} }
} }
}, },
@ -309,6 +345,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "event", "_type": "event",
"_event": "firstArrive", "_event": "firstArrive",
"_range": "thiseval==null || thiseval instanceof Array", "_range": "thiseval==null || thiseval instanceof Array",
"_docs": "标题事件化",
"_data": "标题界面事件化,可以使用事件流的形式来绘制开始界面等。\n需要开启startUsingCanvas这个开关。\n详见文档-个性化-标题界面事件化。" "_data": "标题界面事件化,可以使用事件流的形式来绘制开始界面等。\n需要开启startUsingCanvas这个开关。\n详见文档-个性化-标题界面事件化。"
}, },
"startText": { "startText": {
@ -316,6 +353,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "event", "_type": "event",
"_event": "firstArrive", "_event": "firstArrive",
"_range": "thiseval==null || thiseval instanceof Array", "_range": "thiseval==null || thiseval instanceof Array",
"_docs": "开场剧情",
"_data": "游戏开始前剧情,可以执行任意自定义事件。\n双击进入事件编辑器。\n如果无剧情直接留一个空数组即可。" "_data": "游戏开始前剧情,可以执行任意自定义事件。\n双击进入事件编辑器。\n如果无剧情直接留一个空数组即可。"
}, },
"shops": { "shops": {
@ -323,6 +361,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "event", "_type": "event",
"_event": "shop", "_event": "shop",
"_range": "thiseval instanceof Array", "_range": "thiseval instanceof Array",
"_docs": "全局商店",
"_data": "全局商店,是一个数组,可以双击进入事件编辑器。" "_data": "全局商店,是一个数组,可以双击进入事件编辑器。"
}, },
"levelUp": { "levelUp": {
@ -330,6 +369,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "event", "_type": "event",
"_event": "level", "_event": "level",
"_range": "thiseval==null || thiseval instanceof Array", "_range": "thiseval==null || thiseval instanceof Array",
"_docs": "等级提升",
"_data": "经验升级所需要的数值,是一个数组,可以双击进行编辑。 \n 第一项为初始等级仅title生效 \n 每一个里面可以含有三个参数 need, title, action \n need为所需要的经验数值可以是个表达式。请确保need依次递增 \n title为该等级的名称也可以省略代表使用系统默认值本项将显示在状态栏中 \n action为本次升级所执行的事件可由若干项组成" "_data": "经验升级所需要的数值,是一个数组,可以双击进行编辑。 \n 第一项为初始等级仅title生效 \n 每一个里面可以含有三个参数 need, title, action \n need为所需要的经验数值可以是个表达式。请确保need依次递增 \n title为该等级的名称也可以省略代表使用系统默认值本项将显示在状态栏中 \n action为本次升级所执行的事件可由若干项组成"
} }
} }
@ -340,76 +380,89 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"lavaDamage": { "lavaDamage": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "经过血网受到的伤害" "_data": "血网伤害"
}, },
"poisonDamage": { "poisonDamage": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "中毒后每步受到的伤害" "_data": "中毒伤害"
}, },
"weakValue": { "weakValue": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "衰弱效果",
"_data": "衰弱状态下攻防减少的数值\n如果此项不小于1则作为实际下降的数值比如10就是攻防各下降10\n如果在0到1之间则为下降的比例比如0.3就是下降30%的攻防)" "_data": "衰弱状态下攻防减少的数值\n如果此项不小于1则作为实际下降的数值比如10就是攻防各下降10\n如果在0到1之间则为下降的比例比如0.3就是下降30%的攻防)"
}, },
"redJewel": { "redJewel": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "红宝石效果",
"_data": "红宝石加攻击的数值" "_data": "红宝石加攻击的数值"
}, },
"blueJewel": { "blueJewel": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "蓝宝石效果",
"_data": "蓝宝石加防御的数值" "_data": "蓝宝石加防御的数值"
}, },
"greenJewel": { "greenJewel": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "绿宝石效果",
"_data": "绿宝石加魔防的数值" "_data": "绿宝石加魔防的数值"
}, },
"redPotion": { "redPotion": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "红血瓶效果",
"_data": "红血瓶加血数值" "_data": "红血瓶加血数值"
}, },
"bluePotion": { "bluePotion": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "蓝血瓶效果",
"_data": "蓝血瓶加血数值" "_data": "蓝血瓶加血数值"
}, },
"yellowPotion": { "yellowPotion": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "黄血瓶效果",
"_data": "黄血瓶加血数值" "_data": "黄血瓶加血数值"
}, },
"greenPotion": { "greenPotion": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "绿血瓶效果",
"_data": "绿血瓶加血数值" "_data": "绿血瓶加血数值"
}, },
"breakArmor": { "breakArmor": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "破甲比例",
"_data": "破甲的比例战斗前怪物附加角色防御的x倍作为伤害" "_data": "破甲的比例战斗前怪物附加角色防御的x倍作为伤害"
}, },
"counterAttack": { "counterAttack": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "反击比例",
"_data": "反击的比例战斗时怪物每回合附加角色攻击的x倍作为伤害无视角色防御" "_data": "反击的比例战斗时怪物每回合附加角色攻击的x倍作为伤害无视角色防御"
}, },
"purify": { "purify": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "净化比例",
"_data": "净化的比例战斗前怪物附加勇士魔防的x倍作为伤害" "_data": "净化的比例战斗前怪物附加勇士魔防的x倍作为伤害"
}, },
"hatred": { "hatred": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "仇恨增值",
"_data": "仇恨属性中,每杀死一个怪物获得的仇恨值" "_data": "仇恨属性中,每杀死一个怪物获得的仇恨值"
}, },
"animateSpeed": { "animateSpeed": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_docs": "全局动画时间",
"_data": "全局动画时间即怪物振动频率一般300比较合适" "_data": "全局动画时间即怪物振动频率一般300比较合适"
} }
} }
@ -495,26 +548,31 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"flyNearStair": { "flyNearStair": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "楼传楼梯边",
"_data": "传送器是否需要在楼梯边使用如果flyRecordPosition开启则此项对箭头也有效。" "_data": "传送器是否需要在楼梯边使用如果flyRecordPosition开启则此项对箭头也有效。"
}, },
"flyRecordPosition": { "flyRecordPosition": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "楼传平面模式",
"_data": "传送器平面塔模式;此模式下楼层传送器将飞到上次离开该楼层的位置。" "_data": "传送器平面塔模式;此模式下楼层传送器将飞到上次离开该楼层的位置。"
}, },
"pickaxeFourDirections": { "pickaxeFourDirections": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "四向破墙镐",
"_data": "使用破墙镐是否四个方向都破坏如果false则只破坏面前的墙壁" "_data": "使用破墙镐是否四个方向都破坏如果false则只破坏面前的墙壁"
}, },
"bombFourDirections": { "bombFourDirections": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "四向炸弹",
"_data": "使用炸弹是否四个方向都会炸如果false则只炸面前的怪物即和圣锤等价" "_data": "使用炸弹是否四个方向都会炸如果false则只炸面前的怪物即和圣锤等价"
}, },
"snowFourDirections": { "snowFourDirections": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "四向破冰稿",
"_data": "使用冰冻徽章是否四个方向都会消除熔岩如果false则只消除面前的熔岩" "_data": "使用冰冻徽章是否四个方向都会消除熔岩如果false则只消除面前的熔岩"
}, },
"bigKeyIsBox": { "bigKeyIsBox": {
@ -525,112 +583,134 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"steelDoorWithoutKey": { "steelDoorWithoutKey": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "铁门不消耗",
"_data": "铁门是否不需要钥匙开启。如果此项为true则无需钥匙也可以开铁门。" "_data": "铁门是否不需要钥匙开启。如果此项为true则无需钥匙也可以开铁门。"
}, },
"itemFirstText": { "itemFirstText": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "首次道具提示",
"_data": "首次获得道具是否提示" "_data": "首次获得道具是否提示"
}, },
"equipment": { "equipment": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "剑盾装备",
"_data": "剑和盾是否作为装备。如果此项为true则作为装备需要在装备栏使用否则将直接加属性。" "_data": "剑和盾是否作为装备。如果此项为true则作为装备需要在装备栏使用否则将直接加属性。"
}, },
"equipboxButton": { "equipboxButton": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "状态栏装备",
"_data": "状态栏的装备按钮。若此项为true则将状态栏中的楼层转换器按钮换为装备栏按钮" "_data": "状态栏的装备按钮。若此项为true则将状态栏中的楼层转换器按钮换为装备栏按钮"
}, },
"enableAddPoint": { "enableAddPoint": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "加点",
"_data": "是否支持加点" "_data": "是否支持加点"
}, },
"enableNegativeDamage": { "enableNegativeDamage": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "负伤",
"_data": "是否支持负伤害(回血)" "_data": "是否支持负伤害(回血)"
}, },
"betweenAttackMax": { "betweenAttackMax": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "夹击不超伤害",
"_data": "夹击伤害是否不超过怪物伤害值。" "_data": "夹击伤害是否不超过怪物伤害值。"
}, },
"useLoop": { "useLoop": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "二分临界",
"_data": "是否循环计算临界如果此项为true则使用循环法而不是回合数计算法来算临界\n从V2.5.3开始,对于大数据的循环法将改为使用二分法进行计算" "_data": "是否循环计算临界如果此项为true则使用循环法而不是回合数计算法来算临界\n从V2.5.3开始,对于大数据的循环法将改为使用二分法进行计算"
}, },
"startUsingCanvas": { "startUsingCanvas": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "标题事件化",
"_data": "是否开始菜单canvas化如果此项为true则将使用canvas来绘制开始菜单" "_data": "是否开始菜单canvas化如果此项为true则将使用canvas来绘制开始菜单"
}, },
"startDirectly": { "startDirectly": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "不选择难度",
"_data": "点击“开始游戏”后是否立刻开始游戏而不显示难度选择界面" "_data": "点击“开始游戏”后是否立刻开始游戏而不显示难度选择界面"
}, },
"statusCanvas": { "statusCanvas": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "自绘状态栏",
"_data": "是否状态栏canvas化即手动自定义绘制状态栏。\n如果此项开启则可在脚本编辑的drawStatusBar中自定义绘制菜单栏。" "_data": "是否状态栏canvas化即手动自定义绘制状态栏。\n如果此项开启则可在脚本编辑的drawStatusBar中自定义绘制菜单栏。"
}, },
"statusCanvasRowsOnMobile": { "statusCanvasRowsOnMobile": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "thiseval==null || (thiseval>0 && thiseval<=4)", "_range": "thiseval==null || (thiseval>0 && thiseval<=4)",
"_docs": "竖屏自绘行数",
"_data": "竖屏模式下顶端状态栏canvas化后的行数。\n此项将决定竖屏的状态栏高度如果设置则不小于1且不大于4。\n仅在statusCanvas开启时才有效" "_data": "竖屏模式下顶端状态栏canvas化后的行数。\n此项将决定竖屏的状态栏高度如果设置则不小于1且不大于4。\n仅在statusCanvas开启时才有效"
}, },
"displayEnemyDamage": { "displayEnemyDamage": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "怪物显伤",
"_data": "是否地图怪物显伤;用户可以手动在菜单栏中开关" "_data": "是否地图怪物显伤;用户可以手动在菜单栏中开关"
}, },
"displayCritical": { "displayCritical": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "临界显伤",
"_data": "是否地图显示临界;用户可以手动在菜单栏中开关" "_data": "是否地图显示临界;用户可以手动在菜单栏中开关"
}, },
"displayExtraDamage": { "displayExtraDamage": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "高级显伤",
"_data": "是否地图高级显伤(领域、夹击等);用户可以手动在菜单栏中开关" "_data": "是否地图高级显伤(领域、夹击等);用户可以手动在菜单栏中开关"
}, },
"enableGentleClick": { "enableGentleClick": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "允许轻按",
"_data": "是否允许轻触(获得面前物品)" "_data": "是否允许轻触(获得面前物品)"
}, },
"ignoreChangeFloor": { "ignoreChangeFloor": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "允许穿透楼梯",
"_data": "经过楼梯、传送门时是否能“穿透”。\n穿透的意思是自动寻路得到的的路径中间经过了楼梯行走时是否触发楼层转换事件" "_data": "经过楼梯、传送门时是否能“穿透”。\n穿透的意思是自动寻路得到的的路径中间经过了楼梯行走时是否触发楼层转换事件"
}, },
"canGoDeadZone": { "canGoDeadZone": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "允许将死领域",
"_data": "是否允许走到将死的领域上。如果此项为true则可以走到将死的领域上" "_data": "是否允许走到将死的领域上。如果此项为true则可以走到将死的领域上"
}, },
"enableMoveDirectly": { "enableMoveDirectly": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "允许瞬移",
"_data": "是否允许瞬间移动" "_data": "是否允许瞬间移动"
}, },
"enableDisabledShop": { "enableDisabledShop": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "商店预览",
"_data": "是否允许查看未开启状态的快捷商店内容;如果此项为真,则对于未开启状态的商店允许查看其内容(但不能购买)" "_data": "是否允许查看未开启状态的快捷商店内容;如果此项为真,则对于未开启状态的商店允许查看其内容(但不能购买)"
}, },
"disableShopOnDamage": { "disableShopOnDamage": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "伤害禁用商店",
"_data": "是否在经过领域/夹击/路障等伤害后禁用快捷商店。" "_data": "是否在经过领域/夹击/路障等伤害后禁用快捷商店。"
}, },
"blurFg": { "blurFg": {
"_leaf": true, "_leaf": true,
"_type": "checkbox", "_type": "checkbox",
"_docs": "虚化前景层",
"_data": "是否虚化前景层;如果此项开启,则在游戏中事件层有东西(如宝石等)时虚化前景层。" "_data": "是否虚化前景层;如果此项开启,则在游戏中事件层有东西(如宝石等)时虚化前景层。"
} }
} }

View File

@ -16,14 +16,14 @@ var events_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "event", "_type": "event",
"_range": "thiseval instanceof Array", "_range": "thiseval instanceof Array",
"_event": "commonEvent", "_event": "commonEvent",
"_data": "打败怪物后加点" "_data": "加点事件"
}, },
"毒衰咒处理": { "毒衰咒处理": {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_range": "thiseval instanceof Array", "_range": "thiseval instanceof Array",
"_event": "commonEvent", "_event": "commonEvent",
"_data": "毒衰咒效果处理" "_data": "毒衰咒处理"
}, },
"滑冰事件": { "滑冰事件": {
"_leaf": true, "_leaf": true,
@ -38,7 +38,7 @@ var events_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "event", "_type": "event",
"_event": "commonEvent", "_event": "commonEvent",
"_data": "自定义公共事件,可以双击进入事件编辑器" "_data": "公共事件"
} }
} }
} }

View File

@ -14,19 +14,19 @@ var functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "重置整个游戏" "_data": "重置游戏"
}, },
"win": { "win": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "游戏获胜事件" "_data": "游戏获胜"
}, },
"lose": { "lose": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "游戏失败事件" "_data": "游戏失败"
}, },
"changingFloor": { "changingFloor": {
"_leaf": true, "_leaf": true,
@ -50,49 +50,49 @@ var functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "战前事件" "_data": "战前判定"
}, },
"afterBattle": { "afterBattle": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "战后事件" "_data": "战后脚本"
}, },
"afterOpenDoor": { "afterOpenDoor": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "开门后事件" "_data": "开门后脚本"
}, },
"afterGetItem": { "afterGetItem": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "获得道具后事件" "_data": "道具后脚本"
}, },
"afterChangeLight": { "afterChangeLight": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "改变亮灯事件" "_data": "改变亮灯"
}, },
"afterPushBox": { "afterPushBox": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "推箱子事件" "_data": "推箱子"
}, },
"afterPassNet": { "afterPassNet": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "经过特殊地形后的事件" "_data": "特殊地形后"
}, },
"canUseQuickShop": { "canUseQuickShop": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "能否快捷商店" "_data": "能否快捷商店"
} }
} }
}, },
@ -103,19 +103,19 @@ var functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "怪物特殊属性定义" "_data": "怪物特殊属性"
}, },
"getEnemyInfo": { "getEnemyInfo": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "获得怪物真实属性" "_data": "怪物真实属性"
}, },
"getDamageInfo": { "getDamageInfo": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "获得战斗伤害信息" "_data": "战斗伤害信息"
} }
} }
}, },
@ -132,6 +132,7 @@ var functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_docs": "点击状态栏",
"_data": "状态栏点击事件,仅在开启自绘状态栏时生效" "_data": "状态栏点击事件,仅在开启自绘状态栏时生效"
} }
} }
@ -167,19 +168,19 @@ var functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "每步后操作" "_data": "每步后操作"
}, },
"moveDirectly": { "moveDirectly": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "瞬间移动处理" "_data": "瞬间移动"
}, },
"parallelDo": { "parallelDo": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "并行事件处理" "_data": "并行脚本"
} }
} }
}, },
@ -196,13 +197,13 @@ var functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "地图数据统计" "_data": "数据统计"
}, },
"drawAbout": { "drawAbout": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_lint": true, "_lint": true,
"_data": "绘制关于界面" "_data": "关于界面"
} }
} }
} }

View File

@ -1,197 +0,0 @@
var maps_comment_c456ea59_6018_45ef_8bcc_211a24c627dc =
{
////////////////////////// 地形部分 //////////////////////////
// 0-20 地形
'1':' 黄墙',
'2':' 白墙',
'3':' 蓝墙',
'4':' 星空',
'5':' 岩浆',
'6':' 冰面',
'7':' 蓝色商店左',
'8':' 蓝色商店右',
'9':' 粉色商店左',
'10':' 粉色商店左',
'11':' 血网',
'12':' 毒网',
'13':' 衰网',
'14':' 咒网',
'15':' 水',
// 在这里添加更多地形
// 如果空位不足可以从180以后开始继续放只要不和现有的数字冲突即可
// Autotile
'20':' autotile',
// 更多的autotile从151到160等只要不和现有的数字冲突即可
'151':'',
'152':'',
'153':'',
////////////////////////// 物品部分 //////////////////////////
// 21-80 物品
'21':' 黄钥匙',
'22':' 蓝钥匙',
'23':' 红钥匙',
'24':' 绿钥匙',
'25':' 铁门钥匙',
'26':' 大黄门钥匙(钥匙盒)',
'27':' 红宝石',
'28':' 蓝宝石',
'29':' 绿宝石',
'30':' 黄宝石',
'31':' 红血瓶',
'32':' 蓝血瓶',
'33':' 绿血瓶',
'34':' 黄血瓶',
'35':' 铁剑',
'36':' 铁盾',
'37':' 银剑',
'38':' 银盾',
'39':' 骑士剑',
'40':' 骑士盾',
'41':' 圣剑',
'42':' 圣盾',
'43':' 神圣剑',
'44':' 神圣盾',
'45':' 怪物手册',
'46':' 楼层传送器',
'47':' 破墙镐',
'48':' 破冰镐',
'49':' 炸弹',
'50':' 中心对称',
'51':' 上楼器',
'52':' 下楼器',
'53':' 幸运金币',
'54':' 冰冻徽章',
'55':' 十字架',
'56':' 圣水',
'57':' 地震卷轴',
'58':' 解毒药水',
'59':' 解衰药水',
'60':' 解咒药水',
'61':' 万能药水',
'62':' 屠龙匕首',
'63':' 金钱袋',
'64':' 绿鞋',
'65':' 圣锤',
////////////////////////// 门、楼梯、传送点部分 //////////////////////////
// 81-100 门
'81':' 黄门',
'82':' 蓝门',
'83':' 红门',
'84':' 绿门',
'85':' 机关门左',
'86':' 铁门',
'87':' 上楼梯',
'88':' 下楼梯',
'89':' 传送门',
'90':' 星空传送门',
'91':' 上箭头',
'92':' 左箭头',
'93':' 下箭头',
'94':' 右箭头',
////////////////////////// NPC部分 //////////////////////////
// 121-150 NPC
'121':'',
'122':'',
'123':'',
'124':'',
'125':'',
'126':'',
'127':'',
'128':'',
'129':'',
'130':'',
'131':'',
'132':'',
////////////////////////// 其他部分 //////////////////////////
// 161-200 其他(单向箭头、灯、箱子等等)
'161':' 单向上箭头',
'162':' 单向下箭头',
'163':' 单向左箭头',
'164':' 单向右箭头',
'165':' 灯',
'166':' 暗灯',
'167':' 滑冰',
'168':' 花',
'169':' 箱子',
'170':' 完成的箱子',
////////////////////////// 怪物部分 //////////////////////////
// 201-300 怪物
'201':'',
'202':'',
'203':'',
'204':'',
'205':'',
'206':'',
'207':'',
'208':'',
'209':'',
'210':'',
'211':'',
'212':'',
'213':'',
'214':'',
'215':'',
'216':'',
'217':'',
'218':'',
'219':'',
'220':'',
'221':'',
'222':'',
'223':'',
'224':'',
'225':'',
'226':'',
'227':'',
'228':'',
'229':'',
'230':'',
'231':'',
'232':'',
'233':'',
'234':'',
'235':'',
'236':'',
'237':'',
'238':'',
'239':'',
'240':'',
'241':'',
'242':'',
'243':'',
'244':'',
'245':'',
'246':'',
'247':'',
'248':'',
'249':'',
'250':'',
'251':'',
'252':'',
'253':'',
'254':'',
'255':'',
'256':'',
'257':'',
'258':'',
'259':'',
'260':'',
////////////////////////// 待定... //////////////////////////
// 目前ID暂时不要超过400
}

View File

@ -18,19 +18,19 @@ var plugins_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "typeof(thiseval)=='string' || thiseval==null", "_range": "typeof(thiseval)=='string' || thiseval==null",
"_data": "绘制灯光效果" "_data": "灯光效果"
}, },
"drawItemShop": { "drawItemShop": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "typeof(thiseval)=='string' || thiseval==null", "_range": "typeof(thiseval)=='string' || thiseval==null",
"_data": "道具商店插件" "_data": "道具商店"
}, },
"smoothCamera": { "smoothCamera": {
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_range": "typeof(thiseval)=='string' || thiseval==null", "_range": "typeof(thiseval)=='string' || thiseval==null",
"_data": "平滑移动镜头效果" "_data": "平滑移动镜头"
}, },
} }
if (obj[key]) return obj[key]; if (obj[key]) return obj[key];

View File

@ -827,7 +827,7 @@ control.prototype._drawHero_getDrawObjs = function (direction, x, y, status, off
"status": status, "status": status,
"index": index++, "index": index++,
}); });
(core.status.hero.followers||[]).forEach(function (t) { core.status.hero.followers.forEach(function (t) {
drawObjs.push({ drawObjs.push({
"img": core.material.images.images[t.name], "img": core.material.images.images[t.name],
"width": core.material.images.images[t.name].width/4, "width": core.material.images.images[t.name].width/4,
@ -949,7 +949,7 @@ control.prototype.nearHero = function (x, y, n) {
////// 聚集跟随者 ////// ////// 聚集跟随者 //////
control.prototype.gatherFollowers = function () { control.prototype.gatherFollowers = function () {
var x=core.getHeroLoc('x'), y=core.getHeroLoc('y'), dir=core.getHeroLoc('direction'); var x=core.getHeroLoc('x'), y=core.getHeroLoc('y'), dir=core.getHeroLoc('direction');
(core.status.hero.followers||[]).forEach(function (t) { core.status.hero.followers.forEach(function (t) {
t.x = x; t.x = x;
t.y = y; t.y = y;
t.stop = true; t.stop = true;
@ -959,7 +959,7 @@ control.prototype.gatherFollowers = function () {
////// 更新跟随者坐标 ////// ////// 更新跟随者坐标 //////
control.prototype.updateFollowers = function () { control.prototype.updateFollowers = function () {
(core.status.hero.followers||[]).forEach(function (t) { core.status.hero.followers.forEach(function (t) {
if (!t.stop) { if (!t.stop) {
t.x += core.utils.scan[t.direction].x; t.x += core.utils.scan[t.direction].x;
t.y += core.utils.scan[t.direction].y; t.y += core.utils.scan[t.direction].y;
@ -967,7 +967,7 @@ control.prototype.updateFollowers = function () {
}) })
var nowx = core.getHeroLoc('x'), nowy = core.getHeroLoc('y'); var nowx = core.getHeroLoc('x'), nowy = core.getHeroLoc('y');
(core.status.hero.followers||[]).forEach(function (t) { core.status.hero.followers.forEach(function (t) {
t.stop = true; t.stop = true;
var dx = nowx - t.x, dy = nowy - t.y; var dx = nowx - t.x, dy = nowy - t.y;
for (var dir in core.utils.scan) { for (var dir in core.utils.scan) {

View File

@ -2406,7 +2406,6 @@ events.prototype.hasAsync = function () {
////// 跟随 ////// ////// 跟随 //////
events.prototype.follow = function (name) { events.prototype.follow = function (name) {
core.status.hero.followers = core.status.hero.followers || [];
name = core.getMappedName(name); name = core.getMappedName(name);
if (core.material.images.images[name]) { if (core.material.images.images[name]) {
core.status.hero.followers.push({"name": name}); core.status.hero.followers.push({"name": name});
@ -2418,7 +2417,6 @@ events.prototype.follow = function (name) {
////// 取消跟随 ////// ////// 取消跟随 //////
events.prototype.unfollow = function (name) { events.prototype.unfollow = function (name) {
core.status.hero.followers = core.status.hero.followers || [];
if (!name) { if (!name) {
core.status.hero.followers = []; core.status.hero.followers = [];
} }

View File

@ -607,7 +607,7 @@ ui.prototype._getPosition = function (content) {
var str = s3.split(','); var str = s3.split(',');
px = py = null; px = py = null;
if (str.length == 1) { if (str.length == 1) {
var follower = (core.status.hero.followers||[])[parseInt(str[0])-1]; var follower = core.status.hero.followers[parseInt(str[0])-1];
if (follower) { if (follower) {
px = follower.x; px = follower.x;
py = follower.y; py = follower.y;

View File

@ -104,6 +104,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"y": 10 "y": 10
}, },
"flags": {}, "flags": {},
"followers": [],
"steps": 0 "steps": 0
}, },
"startCanvas": [ "startCanvas": [

View File

@ -35,6 +35,9 @@
事件转向 事件转向
(已完成!) 合并数值操作事件 (已完成!) 合并数值操作事件
(已完成!) fromLoad聚集问题 (已完成!) fromLoad聚集问题
(已完成!) 注释优化
状态栏显示项的优化
动画/音乐/音效自动补全
(不处理) 0. 部分文案的修改,如“地图编辑器”(启动服务.exe中、“enemys”、“snipe” (不处理) 0. 部分文案的修改,如“地图编辑器”(启动服务.exe中、“enemys”、“snipe”