音乐拼接等
This commit is contained in:
parent
aa7c17f460
commit
c5c1e12d8b
@ -854,6 +854,8 @@ action
|
|||||||
| waitAsync_s
|
| waitAsync_s
|
||||||
| stopAsync_s
|
| stopAsync_s
|
||||||
| op_s
|
| op_s
|
||||||
|
| setmusics_s
|
||||||
|
| introAndLoop_s
|
||||||
| battle_s
|
| battle_s
|
||||||
| battle_1_s
|
| battle_1_s
|
||||||
| openDoor_s
|
| openDoor_s
|
||||||
@ -2612,6 +2614,23 @@ var code = '{"type": "setq"'+IdString_0+'},\n';
|
|||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
|
introAndLoop_s
|
||||||
|
: '前奏音乐文件'EvalString? '前奏音乐文件'EvalString'循环音乐文件'EvalString? Newline
|
||||||
|
|
||||||
|
/* introAndLoop_s
|
||||||
|
tooltip : introAndLoop:设置任务目标楼层(显示在小地图)
|
||||||
|
helpUrl : /_docs/#/instruction
|
||||||
|
default : ["",1,""]
|
||||||
|
allBgms : ['EvalString_0','EvalString_2']
|
||||||
|
colour :this.imageColor
|
||||||
|
if(EvalString_1&&!/^(0|([1-9][0-9]*))(\.[\d]+)?$/.test(EvalString_1))throw new Error("此项仅能填写小数或整数,单位为秒");
|
||||||
|
EvalString_0 = EvalString_0 ? (', "intro": "'+EvalString_0+'"') : '';
|
||||||
|
EvalString_1= EvalString_1 ? (', "time": '+EvalString_1+'') : '';
|
||||||
|
EvalString_2 = EvalString_2 ? (', "loop": "'+EvalString_2+'"') : '';
|
||||||
|
var code = '{"type": "introAndLoop"'+EvalString_0+EvalString_1+EvalString_2+'},\n';
|
||||||
|
return code;
|
||||||
|
*/;
|
||||||
|
|
||||||
|
|
||||||
setcgs_s
|
setcgs_s
|
||||||
: 'cg回廊获取cg 文件名'EvalString?'不填为清空cg获取记录' Newline
|
: 'cg回廊获取cg 文件名'EvalString?'不填为清空cg获取记录' Newline
|
||||||
@ -2627,6 +2646,20 @@ var code = '{"type": "setcgs"'+EvalString_0+'},\n';
|
|||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
|
setmusics_s
|
||||||
|
: '音乐鉴赏music 文件名'EvalString?'不填为清空cg获取记录' Newline
|
||||||
|
|
||||||
|
/* setmusics_s
|
||||||
|
tooltip : setmusics:音乐鉴赏中的隐藏music获取
|
||||||
|
helpUrl : /_docs/#/instruction
|
||||||
|
default : [""]
|
||||||
|
allBgms : ['EvalString_0']
|
||||||
|
colour : this.soundColor
|
||||||
|
EvalString_0 = EvalString_0 ? (', "bgm": "'+EvalString_0+'"') : '';
|
||||||
|
var code = '{"type": "setmusics"'+EvalString_0+'},\n';
|
||||||
|
return code;
|
||||||
|
*/;
|
||||||
|
|
||||||
scaleImage_s
|
scaleImage_s
|
||||||
: '图片放缩' '图片编号' NInt '中心点像素' 'x' PosString? 'y' PosString? '移动方式' MoveMode_List BGNL? '放缩比例' Number '动画时间' Int '不等待执行完毕' Bool Newline
|
: '图片放缩' '图片编号' NInt '中心点像素' 'x' PosString? 'y' PosString? '移动方式' MoveMode_List BGNL? '放缩比例' Number '动画时间' Int '不等待执行完毕' Bool Newline
|
||||||
|
|
||||||
@ -2635,7 +2668,7 @@ scaleImage_s
|
|||||||
tooltip : scaleImage:图片放缩
|
tooltip : scaleImage:图片放缩
|
||||||
helpUrl : /_docs/#/instruction
|
helpUrl : /_docs/#/instruction
|
||||||
default : [1,'','','',0.8,0,false]
|
default : [1,'','','',0.8,0,false]
|
||||||
colour : this.imageColor
|
colour : this.soundColor
|
||||||
if (Number_0 <= 0) throw new Error('放缩比例需要大于0');
|
if (Number_0 <= 0) throw new Error('放缩比例需要大于0');
|
||||||
var loc = '';
|
var loc = '';
|
||||||
if (PosString_0 && PosString_1)
|
if (PosString_0 && PosString_1)
|
||||||
|
@ -620,6 +620,20 @@ MotaActionParser = function () {
|
|||||||
case "setcgs":
|
case "setcgs":
|
||||||
this.next = MotaActionBlocks["setcgs_s"].xmlText([data.img, this.next]);
|
this.next = MotaActionBlocks["setcgs_s"].xmlText([data.img, this.next]);
|
||||||
break;
|
break;
|
||||||
|
case "setmusics":
|
||||||
|
this.next = MotaActionBlocks["setmusics_s"].xmlText([
|
||||||
|
data.bgm,
|
||||||
|
this.next,
|
||||||
|
]);
|
||||||
|
break;
|
||||||
|
case "introAndLoop":
|
||||||
|
this.next = MotaActionBlocks["introAndLoop_s"].xmlText([
|
||||||
|
data.intro,
|
||||||
|
data.time,
|
||||||
|
data.loop,
|
||||||
|
this.next,
|
||||||
|
]);
|
||||||
|
break;
|
||||||
case "comment": // 注释
|
case "comment": // 注释
|
||||||
this.next = MotaActionBlocks["comment_s"].xmlText([
|
this.next = MotaActionBlocks["comment_s"].xmlText([
|
||||||
this.EvalString_Multi(data.text),
|
this.EvalString_Multi(data.text),
|
||||||
|
@ -122,6 +122,12 @@ var plugins_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
|||||||
"_type": "textarea",
|
"_type": "textarea",
|
||||||
"_range": "typeof(thiseval)=='string' || thiseval==null",
|
"_range": "typeof(thiseval)=='string' || thiseval==null",
|
||||||
"_data": "音乐鉴赏"
|
"_data": "音乐鉴赏"
|
||||||
|
},
|
||||||
|
"intro&loop": {
|
||||||
|
"_leaf": true,
|
||||||
|
"_type": "textarea",
|
||||||
|
"_range": "typeof(thiseval)=='string' || thiseval==null",
|
||||||
|
"_data": "背景音乐拼接"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (obj[key]) return obj[key];
|
if (obj[key]) return obj[key];
|
||||||
|
@ -122,8 +122,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
data.image,
|
data.image,
|
||||||
data.memory,
|
data.memory,
|
||||||
data.hidetime || 30,
|
data.hidetime || 30,
|
||||||
data.list || [
|
data.list || [{
|
||||||
{
|
|
||||||
text: "",
|
text: "",
|
||||||
sound: "",
|
sound: "",
|
||||||
time: 50,
|
time: 50,
|
||||||
@ -131,8 +130,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
boldColor: "#000000",
|
boldColor: "#000000",
|
||||||
font: "bold 48px Verdana",
|
font: "bold 48px Verdana",
|
||||||
frame: 0,
|
frame: 0,
|
||||||
},
|
}, ]
|
||||||
]
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
core.doAction();
|
core.doAction();
|
||||||
@ -219,8 +217,42 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
core.doAction();
|
core.doAction();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
core.registerEvent("introAndLoop", function (data) {
|
||||||
|
|
||||||
|
if (!main.replayChecking && !core.isReplaying()) {
|
||||||
|
core.plugin.introAndLoop(data.intro, data.time, data.loop)
|
||||||
|
core.doAction();
|
||||||
|
} else {
|
||||||
|
core.doAction();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
core.registerEvent("setq", function (data) {
|
||||||
|
|
||||||
|
core.setFlag("任务地点", data.id)
|
||||||
|
|
||||||
|
core.doAction();
|
||||||
|
|
||||||
|
});
|
||||||
|
core.registerEvent("setmusics", function (data) {
|
||||||
|
if (!data.img) { core.setLocalStorage('musics', []) } else {
|
||||||
|
let a = core.getLocalStorage('musics') ?? []
|
||||||
|
if (!a.includes(data.bgm)) a.push(data.bgm)
|
||||||
|
core.setLocalStorage('musics', a)
|
||||||
|
}
|
||||||
|
core.doAction();
|
||||||
|
|
||||||
|
});
|
||||||
|
core.registerEvent("setcgs", function (data) {
|
||||||
|
if (!data.img) { core.setLocalStorage('cgs', []) } else {
|
||||||
|
let a = core.getLocalStorage('cgs') ?? []
|
||||||
|
if (!a.includes(data.img)) a.push(data.img)
|
||||||
|
core.setLocalStorage('cgs', a)
|
||||||
|
}
|
||||||
|
core.doAction();
|
||||||
|
|
||||||
|
});
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
"drawLight": function () {
|
"drawLight": function () {
|
||||||
// 绘制灯光/漆黑层效果。调用方式 core.plugin.drawLight(...)
|
// 绘制灯光/漆黑层效果。调用方式 core.plugin.drawLight(...)
|
||||||
// 【参数说明】
|
// 【参数说明】
|
||||||
@ -3800,8 +3832,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
var mid = Math.floor((start + end) / 2);
|
var mid = Math.floor((start + end) / 2);
|
||||||
if (mid - start > end - mid) mid--;
|
if (mid - start > end - mid) mid--;
|
||||||
var nextInfo = core.enemys.getDamageInfo(
|
var nextInfo = core.enemys.getDamageInfo(
|
||||||
enemy,
|
enemy, { atk: mid },
|
||||||
{ atk: mid },
|
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
floorId
|
floorId
|
||||||
@ -3811,17 +3842,16 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
else start = mid + 1;
|
else start = mid + 1;
|
||||||
}
|
}
|
||||||
var nextInfo = core.enemys.getDamageInfo(
|
var nextInfo = core.enemys.getDamageInfo(
|
||||||
enemy,
|
enemy, { atk: start },
|
||||||
{ atk: start },
|
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
floorId
|
floorId
|
||||||
);
|
);
|
||||||
return nextInfo == null ||
|
return nextInfo == null ||
|
||||||
typeof nextInfo == "number" ||
|
typeof nextInfo == "number" ||
|
||||||
nextInfo.damage >= pre
|
nextInfo.damage >= pre ?
|
||||||
? null
|
null :
|
||||||
: [start, nextInfo.damage];
|
[start, nextInfo.damage];
|
||||||
};
|
};
|
||||||
var currAtk = start_atk;
|
var currAtk = start_atk;
|
||||||
while (true) {
|
while (true) {
|
||||||
@ -4037,7 +4067,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
ctx.fillStyle = style;
|
ctx.fillStyle = style;
|
||||||
ctx.fillText(text, x, y);
|
ctx.fillText(text, x, y);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
"额外信息": function () {
|
"额外信息": function () {
|
||||||
/* 宝石血瓶左下角显示数值
|
/* 宝石血瓶左下角显示数值
|
||||||
* 注意!!!不要在道具属性中直接操作flags,使用core.status.hero.flags或core.setFlag系列函数代替!
|
* 注意!!!不要在道具属性中直接操作flags,使用core.status.hero.flags或core.setFlag系列函数代替!
|
||||||
@ -10856,18 +10886,15 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
* @type {{[EvnetName:actionParserJson]}}
|
* @type {{[EvnetName:actionParserJson]}}
|
||||||
*/
|
*/
|
||||||
events_c12a15a8_c380_4b28_8144_256cba95f760.CommonEventTemplate = {
|
events_c12a15a8_c380_4b28_8144_256cba95f760.CommonEventTemplate = {
|
||||||
检测音乐如果没有开启则系统提示开启: [
|
检测音乐如果没有开启则系统提示开启: [{
|
||||||
{
|
|
||||||
type: "if",
|
type: "if",
|
||||||
condition: "!core.musicStatus.bgmStatus",
|
condition: "!core.musicStatus.bgmStatus",
|
||||||
true: [
|
true: [
|
||||||
"\t[系统提示]你当前音乐处于关闭状态,本塔开音乐游戏效果更佳",
|
"\t[系统提示]你当前音乐处于关闭状态,本塔开音乐游戏效果更佳",
|
||||||
],
|
],
|
||||||
false: [],
|
false: [],
|
||||||
},
|
}, ],
|
||||||
],
|
仿新新魔塔一次性商人: [{
|
||||||
仿新新魔塔一次性商人: [
|
|
||||||
{
|
|
||||||
type: "if",
|
type: "if",
|
||||||
condition: "switch:A",
|
condition: "switch:A",
|
||||||
true: [
|
true: [
|
||||||
@ -10882,16 +10909,13 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
time: 250,
|
time: 250,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
false: [
|
false: [{
|
||||||
{
|
|
||||||
type: "confirm",
|
type: "confirm",
|
||||||
text: "我有3把黄钥匙,\n你出50金币就卖给你。",
|
text: "我有3把黄钥匙,\n你出50金币就卖给你。",
|
||||||
yes: [
|
yes: [{
|
||||||
{
|
|
||||||
type: "if",
|
type: "if",
|
||||||
condition: "status:money>=50",
|
condition: "status:money>=50",
|
||||||
true: [
|
true: [{
|
||||||
{
|
|
||||||
type: "setValue",
|
type: "setValue",
|
||||||
name: "status:money",
|
name: "status:money",
|
||||||
operator: "-=",
|
operator: "-=",
|
||||||
@ -10914,22 +10938,17 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
value: "true",
|
value: "true",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
false: [
|
false: [{
|
||||||
{
|
|
||||||
type: "playSound",
|
type: "playSound",
|
||||||
name: "操作失败",
|
name: "操作失败",
|
||||||
},
|
},
|
||||||
"\t[行商,trader]\b[this]你的金币不足!",
|
"\t[行商,trader]\b[this]你的金币不足!",
|
||||||
],
|
],
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
no: [],
|
no: [],
|
||||||
},
|
}, ],
|
||||||
],
|
}, ],
|
||||||
},
|
全地图选中一个点: [{
|
||||||
],
|
|
||||||
全地图选中一个点: [
|
|
||||||
{
|
|
||||||
type: "comment",
|
type: "comment",
|
||||||
text: "全地图选中一个点,需要用鼠标或触屏操作",
|
text: "全地图选中一个点,需要用鼠标或触屏操作",
|
||||||
},
|
},
|
||||||
@ -10950,8 +10969,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
{
|
{
|
||||||
type: "while",
|
type: "while",
|
||||||
condition: "true",
|
condition: "true",
|
||||||
data: [
|
data: [{
|
||||||
{
|
|
||||||
type: "drawSelector",
|
type: "drawSelector",
|
||||||
image: "winskin.webp",
|
image: "winskin.webp",
|
||||||
code: 1,
|
code: 1,
|
||||||
@ -10966,16 +10984,13 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
{
|
{
|
||||||
type: "if",
|
type: "if",
|
||||||
condition: "(flag:type === 1)",
|
condition: "(flag:type === 1)",
|
||||||
true: [
|
true: [{
|
||||||
{
|
|
||||||
type: "if",
|
type: "if",
|
||||||
condition: "((temp:X===flag:x)&&(temp:Y===flag:y))",
|
condition: "((temp:X===flag:x)&&(temp:Y===flag:y))",
|
||||||
true: [
|
true: [{
|
||||||
{
|
|
||||||
type: "break",
|
type: "break",
|
||||||
n: 1,
|
n: 1,
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "setValue",
|
type: "setValue",
|
||||||
@ -11005,8 +11020,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
loc: ["temp:X", "temp:Y"],
|
loc: ["temp:X", "temp:Y"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
多阶段Boss战斗: [
|
多阶段Boss战斗: [{
|
||||||
{
|
|
||||||
type: "comment",
|
type: "comment",
|
||||||
text: "多阶段boss,请直接作为战后事件使用",
|
text: "多阶段boss,请直接作为战后事件使用",
|
||||||
},
|
},
|
||||||
@ -11019,11 +11033,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
{
|
{
|
||||||
type: "switch",
|
type: "switch",
|
||||||
condition: "switch:A",
|
condition: "switch:A",
|
||||||
caseList: [
|
caseList: [{
|
||||||
{
|
|
||||||
case: "1",
|
case: "1",
|
||||||
action: [
|
action: [{
|
||||||
{
|
|
||||||
type: "setBlock",
|
type: "setBlock",
|
||||||
number: "redSlime",
|
number: "redSlime",
|
||||||
},
|
},
|
||||||
@ -11032,8 +11044,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
case: "2",
|
case: "2",
|
||||||
action: [
|
action: [{
|
||||||
{
|
|
||||||
type: "setBlock",
|
type: "setBlock",
|
||||||
number: "blackSlime",
|
number: "blackSlime",
|
||||||
},
|
},
|
||||||
@ -11042,8 +11053,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
case: "3",
|
case: "3",
|
||||||
action: [
|
action: [{
|
||||||
{
|
|
||||||
type: "setBlock",
|
type: "setBlock",
|
||||||
number: "slimelord",
|
number: "slimelord",
|
||||||
},
|
},
|
||||||
@ -11297,8 +11307,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
],
|
],
|
||||||
"event"
|
"event"
|
||||||
),
|
),
|
||||||
MotaActionFunctions.actionParser.parse(
|
MotaActionFunctions.actionParser.parse({
|
||||||
{
|
|
||||||
condition: "flag:__door__===2",
|
condition: "flag:__door__===2",
|
||||||
currentFloor: true,
|
currentFloor: true,
|
||||||
priority: 0,
|
priority: 0,
|
||||||
@ -11310,17 +11319,14 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
),
|
),
|
||||||
MotaActionBlocks["changeFloor_m"].xmlText(),
|
MotaActionBlocks["changeFloor_m"].xmlText(),
|
||||||
MotaActionFunctions.actionParser.parse(
|
MotaActionFunctions.actionParser.parse(
|
||||||
[
|
[{
|
||||||
{
|
|
||||||
id: "shop1",
|
id: "shop1",
|
||||||
text: "\t[贪婪之神,moneyShop]勇敢的武士啊, 给我${20+2*flag:shop1}金币就可以:",
|
text: "\t[贪婪之神,moneyShop]勇敢的武士啊, 给我${20+2*flag:shop1}金币就可以:",
|
||||||
textInList: "1F金币商店",
|
textInList: "1F金币商店",
|
||||||
choices: [
|
choices: [{
|
||||||
{
|
|
||||||
text: "生命+800",
|
text: "生命+800",
|
||||||
need: "status:money>=20+2*flag:shop1",
|
need: "status:money>=20+2*flag:shop1",
|
||||||
action: [
|
action: [{
|
||||||
{
|
|
||||||
type: "comment",
|
type: "comment",
|
||||||
text: "新版商店中需要手动扣减金币和增加访问次数",
|
text: "新版商店中需要手动扣减金币和增加访问次数",
|
||||||
},
|
},
|
||||||
@ -11343,8 +11349,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
value: "800",
|
value: "800",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "itemShop",
|
id: "itemShop",
|
||||||
@ -11370,26 +11375,25 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
MotaActionBlocks["eachArrive_m"].xmlText(),
|
MotaActionBlocks["eachArrive_m"].xmlText(),
|
||||||
MotaActionBlocks["level_m"].xmlText(),
|
MotaActionBlocks["level_m"].xmlText(),
|
||||||
MotaActionFunctions.actionParser.parse(
|
MotaActionFunctions.actionParser.parse(
|
||||||
[["MTx", ""]],
|
[
|
||||||
|
["MTx", ""]
|
||||||
|
],
|
||||||
"floorPartition"
|
"floorPartition"
|
||||||
),
|
),
|
||||||
MotaActionBlocks["commonEvent_m"].xmlText(),
|
MotaActionBlocks["commonEvent_m"].xmlText(),
|
||||||
MotaActionBlocks["item_m"].xmlText(),
|
MotaActionBlocks["item_m"].xmlText(),
|
||||||
MotaActionFunctions.actionParser.parse(
|
MotaActionFunctions.actionParser.parse(
|
||||||
[
|
[{
|
||||||
{
|
|
||||||
title: "简单",
|
title: "简单",
|
||||||
name: "Easy",
|
name: "Easy",
|
||||||
hard: 1,
|
hard: 1,
|
||||||
action: [
|
action: [
|
||||||
{ type: "comment", text: "在这里写该难度需执行的事件" },
|
{ type: "comment", text: "在这里写该难度需执行的事件" },
|
||||||
],
|
],
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
"levelChoose"
|
"levelChoose"
|
||||||
),
|
),
|
||||||
MotaActionFunctions.actionParser.parse(
|
MotaActionFunctions.actionParser.parse({
|
||||||
{
|
|
||||||
type: 0,
|
type: 0,
|
||||||
value: { atk: 10 },
|
value: { atk: 10 },
|
||||||
percentage: { speed: 10 },
|
percentage: { speed: 10 },
|
||||||
@ -11397,18 +11401,15 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
"equip"
|
"equip"
|
||||||
),
|
),
|
||||||
MotaActionFunctions.actionParser.parse(
|
MotaActionFunctions.actionParser.parse(
|
||||||
[
|
[{
|
||||||
{
|
|
||||||
name: "bg.webp",
|
name: "bg.webp",
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 0,
|
y: 0,
|
||||||
canvas: "bg",
|
canvas: "bg",
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
"floorImage"
|
"floorImage"
|
||||||
),
|
),
|
||||||
MotaActionFunctions.actionParser.parse(
|
MotaActionFunctions.actionParser.parse({
|
||||||
{
|
|
||||||
time: 160,
|
time: 160,
|
||||||
openSound: "door.opus",
|
openSound: "door.opus",
|
||||||
closeSound: "door.opus",
|
closeSound: "door.opus",
|
||||||
@ -11418,8 +11419,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
),
|
),
|
||||||
MotaActionBlocks["faceIds_m"].xmlText(),
|
MotaActionBlocks["faceIds_m"].xmlText(),
|
||||||
MotaActionBlocks["mainStyle_m"].xmlText(),
|
MotaActionBlocks["mainStyle_m"].xmlText(),
|
||||||
MotaActionFunctions.actionParser.parse(
|
MotaActionFunctions.actionParser.parse({
|
||||||
{
|
|
||||||
背景音乐: "bgm.opus",
|
背景音乐: "bgm.opus",
|
||||||
确定: "confirm.opus",
|
确定: "confirm.opus",
|
||||||
攻击: "attack.opus",
|
攻击: "attack.opus",
|
||||||
@ -11441,14 +11441,12 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
"\t[小妖精,fairy]\f[fairy.webp,0,0]欢迎使用事件编辑器(双击方块可直接预览)"
|
"\t[小妖精,fairy]\f[fairy.webp,0,0]欢迎使用事件编辑器(双击方块可直接预览)"
|
||||||
),
|
),
|
||||||
MotaActionBlocks["over_s"].xmlText(),
|
MotaActionBlocks["over_s"].xmlText(),
|
||||||
MotaActionFunctions.actionParser.parseList([
|
MotaActionFunctions.actionParser.parseList([{
|
||||||
{
|
|
||||||
type: "overlist",
|
type: "overlist",
|
||||||
image: "bg_5043.webp",
|
image: "bg_5043.webp",
|
||||||
memory: false,
|
memory: false,
|
||||||
hidetime: 30,
|
hidetime: 30,
|
||||||
list: [
|
list: [{
|
||||||
{
|
|
||||||
text: "",
|
text: "",
|
||||||
sound: "",
|
sound: "",
|
||||||
time: 50,
|
time: 50,
|
||||||
@ -11456,12 +11454,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
boldColor: "0,0,0,1",
|
boldColor: "0,0,0,1",
|
||||||
font: "bold 48px Verdana",
|
font: "bold 48px Verdana",
|
||||||
frame: 0,
|
frame: 0,
|
||||||
},
|
}, ],
|
||||||
],
|
}, ]),
|
||||||
},
|
MotaActionFunctions.actionParser.parseList([{
|
||||||
]),
|
|
||||||
MotaActionFunctions.actionParser.parseList([
|
|
||||||
{
|
|
||||||
type: "cgtext",
|
type: "cgtext",
|
||||||
bg: "bg_5043.webp",
|
bg: "bg_5043.webp",
|
||||||
memory: false,
|
memory: false,
|
||||||
@ -11475,8 +11470,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
bodyList: [
|
bodyList: [
|
||||||
{ name: "tati_050145a.webp", px: 100, filter: false },
|
{ name: "tati_050145a.webp", px: 100, filter: false },
|
||||||
],
|
],
|
||||||
},
|
}, ]),
|
||||||
]),
|
|
||||||
MotaActionBlocks["moveTextBox_s"].xmlText(),
|
MotaActionBlocks["moveTextBox_s"].xmlText(),
|
||||||
MotaActionBlocks["clearTextBox_s"].xmlText(),
|
MotaActionBlocks["clearTextBox_s"].xmlText(),
|
||||||
MotaActionBlocks["comment_s"].xmlText(),
|
MotaActionBlocks["comment_s"].xmlText(),
|
||||||
@ -11541,6 +11535,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
MotaActionBlocks["setHeroIcon_s"].xmlText(),
|
MotaActionBlocks["setHeroIcon_s"].xmlText(),
|
||||||
MotaActionBlocks["follow_s"].xmlText(),
|
MotaActionBlocks["follow_s"].xmlText(),
|
||||||
MotaActionBlocks["unfollow_s"].xmlText(),
|
MotaActionBlocks["unfollow_s"].xmlText(),
|
||||||
|
|
||||||
],
|
],
|
||||||
地图处理: [
|
地图处理: [
|
||||||
MotaActionBlocks["battle_1_s"].xmlText(),
|
MotaActionBlocks["battle_1_s"].xmlText(),
|
||||||
@ -11570,20 +11565,17 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
MotaActionFunctions.actionParser.parseList({
|
MotaActionFunctions.actionParser.parseList({
|
||||||
type: "switch",
|
type: "switch",
|
||||||
condition: "判别值",
|
condition: "判别值",
|
||||||
caseList: [
|
caseList: [{
|
||||||
{
|
|
||||||
action: [
|
action: [
|
||||||
{ type: "comment", text: "当判别值是值的场合执行此事件" },
|
{ type: "comment", text: "当判别值是值的场合执行此事件" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
case: "default",
|
case: "default",
|
||||||
action: [
|
action: [{
|
||||||
{
|
|
||||||
type: "comment",
|
type: "comment",
|
||||||
text: "当没有符合的值的场合执行default事件",
|
text: "当没有符合的值的场合执行default事件",
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
@ -11612,41 +11604,37 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
],
|
],
|
||||||
特效表现: [
|
特效表现: [
|
||||||
MotaActionBlocks["sleep_s"].xmlText(),
|
MotaActionBlocks["sleep_s"].xmlText(),
|
||||||
|
MotaActionBlocks["setq_s"].xmlText(),
|
||||||
|
MotaActionBlocks["setcgs_s"].xmlText(),
|
||||||
|
MotaActionBlocks["setmusics_s"].xmlText(),
|
||||||
MotaActionBlocks["changebg_s"].xmlText(),
|
MotaActionBlocks["changebg_s"].xmlText(),
|
||||||
MotaActionFunctions.actionParser.parseList({
|
MotaActionFunctions.actionParser.parseList({
|
||||||
type: "wait",
|
type: "wait",
|
||||||
timeout: 0,
|
timeout: 0,
|
||||||
data: [
|
data: [{
|
||||||
{
|
|
||||||
case: "keyboard",
|
case: "keyboard",
|
||||||
keycode: "13,32",
|
keycode: "13,32",
|
||||||
action: [
|
action: [{
|
||||||
{
|
|
||||||
type: "comment",
|
type: "comment",
|
||||||
text: "当按下回车(keycode=13)或空格(keycode=32)时执行此事件\n超时剩余时间会写入flag:timeout",
|
text: "当按下回车(keycode=13)或空格(keycode=32)时执行此事件\n超时剩余时间会写入flag:timeout",
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
case: "mouse",
|
case: "mouse",
|
||||||
px: [0, 32],
|
px: [0, 32],
|
||||||
py: [0, 32],
|
py: [0, 32],
|
||||||
action: [
|
action: [{
|
||||||
{
|
|
||||||
type: "comment",
|
type: "comment",
|
||||||
text: "当点击地图左上角时执行此事件\n超时剩余时间会写入flag:timeout",
|
text: "当点击地图左上角时执行此事件\n超时剩余时间会写入flag:timeout",
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
case: "condition",
|
case: "condition",
|
||||||
condition: "flag:type==0\n&&flag:keycode==13",
|
condition: "flag:type==0\n&&flag:keycode==13",
|
||||||
action: [
|
action: [{
|
||||||
{
|
|
||||||
type: "comment",
|
type: "comment",
|
||||||
text: "当满足自定义条件时会执行此事件\n超时剩余时间会写入flag:timeout",
|
text: "当满足自定义条件时会执行此事件\n超时剩余时间会写入flag:timeout",
|
||||||
},
|
}, ],
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
case: "timeout",
|
case: "timeout",
|
||||||
@ -11663,10 +11651,6 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
MotaActionBlocks["changeMouse_s"].xmlText(),
|
MotaActionBlocks["changeMouse_s"].xmlText(),
|
||||||
MotaActionBlocks["removeMouse_s"].xmlText(),
|
MotaActionBlocks["removeMouse_s"].xmlText(),
|
||||||
MotaActionBlocks["vibrate_s"].xmlText(),
|
MotaActionBlocks["vibrate_s"].xmlText(),
|
||||||
MotaActionBlocks["setanimate_s"].xmlText(),
|
|
||||||
MotaActionBlocks["deleteanimate_s"].xmlText(),
|
|
||||||
MotaActionBlocks["playanimate_s"].xmlText(),
|
|
||||||
MotaActionBlocks["clearanimate_s"].xmlText(),
|
|
||||||
MotaActionBlocks["animate_s"].xmlText(),
|
MotaActionBlocks["animate_s"].xmlText(),
|
||||||
MotaActionBlocks["animate_1_s"].xmlText(),
|
MotaActionBlocks["animate_1_s"].xmlText(),
|
||||||
MotaActionBlocks["stopAnimate_s"].xmlText(),
|
MotaActionBlocks["stopAnimate_s"].xmlText(),
|
||||||
@ -11688,6 +11672,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
],
|
],
|
||||||
音像处理: [
|
音像处理: [
|
||||||
MotaActionBlocks["animationDrawable_s"].xmlText(),
|
MotaActionBlocks["animationDrawable_s"].xmlText(),
|
||||||
|
MotaActionBlocks["introAndLoop_s"].xmlText(),
|
||||||
MotaActionBlocks["setanimate_s"].xmlText(),
|
MotaActionBlocks["setanimate_s"].xmlText(),
|
||||||
MotaActionBlocks["deleteanimate_s"].xmlText(),
|
MotaActionBlocks["deleteanimate_s"].xmlText(),
|
||||||
MotaActionBlocks["playanimate_s"].xmlText(),
|
MotaActionBlocks["playanimate_s"].xmlText(),
|
||||||
@ -11868,10 +11853,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
var list = toolboxObj["入口方块"];
|
var list = toolboxObj["入口方块"];
|
||||||
var xmlList = [];
|
var xmlList = [];
|
||||||
var eventType =
|
var eventType =
|
||||||
(editor_blockly.isCommonEntry()
|
(editor_blockly.isCommonEntry() ?
|
||||||
? "common"
|
"common" :
|
||||||
: editor_blockly.entryType) + "_m";
|
editor_blockly.entryType) + "_m";
|
||||||
for (var ii = 0, blockText; (blockText = list[ii]); ii++) {
|
for (var ii = 0, blockText;
|
||||||
|
(blockText = list[ii]); ii++) {
|
||||||
if (
|
if (
|
||||||
new RegExp('<block type="' + eventType + '">').exec(blockText)
|
new RegExp('<block type="' + eventType + '">').exec(blockText)
|
||||||
) {
|
) {
|
||||||
@ -11926,14 +11912,16 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
var mousewheelOffsetValue =
|
var mousewheelOffsetValue =
|
||||||
(20 / 380) * workspace.scrollbar[hvScroll].handleLength_ * 3;
|
(20 / 380) * workspace.scrollbar[hvScroll].handleLength_ * 3;
|
||||||
workspace.scrollbar[hvScroll].handlePosition_ +=
|
workspace.scrollbar[hvScroll].handlePosition_ +=
|
||||||
(e.deltaY || 0) + (e.detail || 0) > 0
|
(e.deltaY || 0) + (e.detail || 0) > 0 ?
|
||||||
? mousewheelOffsetValue
|
mousewheelOffsetValue :
|
||||||
: -mousewheelOffsetValue;
|
-mousewheelOffsetValue;
|
||||||
workspace.scrollbar[hvScroll].onScroll_();
|
workspace.scrollbar[hvScroll].onScroll_();
|
||||||
// workspace.setScale(workspace.scale);
|
// workspace.setScale(workspace.scale);
|
||||||
};
|
};
|
||||||
|
|
||||||
var doubleClickCheck = [[0, "abc"]];
|
var doubleClickCheck = [
|
||||||
|
[0, "abc"]
|
||||||
|
];
|
||||||
|
|
||||||
function omitedcheckUpdateFunction(event) {
|
function omitedcheckUpdateFunction(event) {
|
||||||
if (event.type === "create") {
|
if (event.type === "create") {
|
||||||
@ -12017,7 +12005,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
">"
|
">"
|
||||||
);
|
);
|
||||||
if (!inputs) inputs = [];
|
if (!inputs) inputs = [];
|
||||||
for (var ii = 0, inputType; (inputType = rule.argsType[ii]); ii++) {
|
for (var ii = 0, inputType;
|
||||||
|
(inputType = rule.argsType[ii]); ii++) {
|
||||||
var input = inputs[ii];
|
var input = inputs[ii];
|
||||||
var _input = "";
|
var _input = "";
|
||||||
var noinput = input === null || input === undefined;
|
var noinput = input === null || input === undefined;
|
||||||
@ -12081,7 +12070,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
.split("// start mark sfergsvae")[1]
|
.split("// start mark sfergsvae")[1]
|
||||||
.split("// end mark sfergsvae")[0];
|
.split("// end mark sfergsvae")[0];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"夹击激光动画": function () {
|
"夹击激光动画": function () {
|
||||||
function createCanvas(name, zIndex) {
|
function createCanvas(name, zIndex) {
|
||||||
if (!name) return;
|
if (!name) return;
|
||||||
@ -12878,7 +12867,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
"楼传": function () {
|
"楼传": function () {
|
||||||
// 在此增加新插件
|
// 在此增加新插件
|
||||||
|
|
||||||
@ -14092,7 +14081,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
[x + w, y + h],
|
[x + w, y + h],
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
const inRect = ([x, y], [[sx, sy], [dx, dy]]) => {
|
const inRect = ([x, y], [
|
||||||
|
[sx, sy],
|
||||||
|
[dx, dy]
|
||||||
|
]) => {
|
||||||
return sx <= x && x <= dx && sy <= y && y <= dy;
|
return sx <= x && x <= dx && sy <= y && y <= dy;
|
||||||
};
|
};
|
||||||
const pos = [px, py];
|
const pos = [px, py];
|
||||||
@ -14489,7 +14481,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
CGUI.style.display = "block";
|
CGUI.style.display = "block";
|
||||||
main.core.ui.CG.update();
|
main.core.ui.CG.update();
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
"光标设置": function () {
|
"光标设置": function () {
|
||||||
// 在此增加新插件
|
// 在此增加新插件
|
||||||
this.changeMouse = function (
|
this.changeMouse = function (
|
||||||
@ -17564,5 +17556,12 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
"intro&loop": function () {
|
||||||
|
// 在此增加新插件
|
||||||
|
this.introAndLoop = function (intro, time, loop) {
|
||||||
|
core.playBgm(intro)
|
||||||
|
setTimeout(() => { core.playBgm(loop) }, time * 1000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user