var events_c12a15a8_c380_4b28_8144_256cba95f760 = 
{
	"commonEvent": {
		"加点事件": [
			{
				"type": "comment",
				"text": "通过传参，flag:arg1 表示当前应该的加点数值"
			},
			{
				"type": "choices",
				"choices": [
					{
						"text": "攻击+${1*flag:arg1}",
						"action": [
							{
								"type": "setValue",
								"name": "status:atk",
								"operator": "+=",
								"value": "1*flag:arg1"
							}
						]
					},
					{
						"text": "防御+${2*flag:arg1}",
						"action": [
							{
								"type": "setValue",
								"name": "status:def",
								"operator": "+=",
								"value": "2*flag:arg1"
							}
						]
					},
					{
						"text": "生命+${200*flag:arg1}",
						"action": [
							{
								"type": "setValue",
								"name": "status:hp",
								"operator": "+=",
								"value": "200*flag:arg1"
							}
						]
					}
				]
			}
		],
		"游戏说明": [
			{
				"type": "choices",
				"choices": [
					{
						"text": "游戏简介",
						"action": [
							"h5版本是按照flash版复刻，其中部分对话使用的魔塔盛宴的版本。",
							"地图复制：数码宝贝51、641\n部分事件复制：小艾\n游戏音乐、怪物显伤等开关可以在系统设置里打开和关闭",
							"想要获得更详细的介绍，可以在菜单——游戏信息——游戏主页中进入本塔的评论区，查看置顶评论。",
							{
								"type": "insert",
								"name": "游戏说明"
							}
						]
					},
					{
						"text": "mod声明",
						"action": [
							"此处填写mod修改内容",
							{
								"type": "insert",
								"name": "游戏说明"
							}
						]
					},
					{
						"text": "返回游戏",
						"action": []
					}
				]
			}
		],
		"记事本": [
			{
				"type": "setValue",
				"name": "flag:重置价格",
				"value": "5*2**flag:抽取重置次数"
			},
			{
				"type": "choices",
				"text": "\t[记事本,wand]目前幸运金币权重：${flag:幸运金币权重}\n是否要重置本层抽取并重置随机数？当前价格：${flag:重置价格}金币。",
				"choices": [
					{
						"text": "我太需要了",
						"need": "status:money>=flag:重置价格",
						"action": [
							{
								"type": "playSound",
								"name": "item.mp3"
							},
							{
								"type": "setValue",
								"name": "status:money",
								"operator": "-=",
								"value": "flag:重置价格"
							},
							{
								"type": "function",
								"function": "function(){\nfor (let i = 1; i <= 300; i++) {\n\tvar s = core.rand();\n}\n}"
							},
							{
								"type": "function",
								"function": "function(){\nfor (let xx = 1; xx <= 11; xx++) {\n\tfor (let yy = 1; yy <= 11; yy++) {\n\t\tvar blockxy = core.getBlockId(xx, yy, core.status.floorId, true);\n\t\tif (blockxy == 'upFloor') {\n\t\t\tcore.hideBlock(xx, yy, core.status.floorId);\n\t\t}\n\t}\n}\n}"
							},
							{
								"type": "function",
								"function": "function(){\nvar ii = core.getFlag('剩余怪数');\nii[Number((core.status.floorId).slice(2))] = 5;\ncore.setFlag('剩余怪数', ii)\n}"
							},
							{
								"type": "function",
								"function": "function(){\nconst notDraw = ['MT0', 'MT2', 'MT10', 'MT13', 'MT20', 'MT21', 'MT22', 'MT23', 'MT24', 'MT25', 'MT26', 'MT27', 'MT28', 'MT29', 'MT30', 'MT35', 'MT40', 'MT44', 'MT49', 'MT50', ];\nvar isDraw = notDraw.includes(core.status.floorId) ? 0 : 1;\ncore.setFlag('有无抽取', isDraw)\n}"
							},
							{
								"type": "setValue",
								"name": "flag:抽取重置次数",
								"operator": "+=",
								"value": "1"
							},
							{
								"type": "if",
								"condition": "flag:有无抽取",
								"true": [
									{
										"type": "insert",
										"name": "抽卡"
									}
								],
								"false": [
									"随机数已重置。"
								]
							}
						]
					},
					{
						"text": "离开",
						"action": []
					}
				]
			}
		],
		"回收钥匙商店": [
			{
				"type": "comment",
				"text": "此事件在全局商店中被引用了(全局商店keyShop)"
			},
			{
				"type": "comment",
				"text": "解除引用前勿删除此事件"
			},
			{
				"type": "comment",
				"text": "玩家在快捷列表（V键）中可以使用本公共事件"
			},
			{
				"type": "while",
				"condition": "1",
				"data": [
					{
						"type": "choices",
						"text": "\t[商人,trader]你有多余的钥匙想要出售吗？",
						"choices": [
							{
								"text": "黄钥匙（10金币）",
								"color": [
									255,
									255,
									0,
									1
								],
								"action": [
									{
										"type": "if",
										"condition": "(item:yellowKey >= 1)",
										"true": [
											{
												"type": "setValue",
												"name": "item:yellowKey",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:money",
												"operator": "+=",
												"value": "10"
											}
										],
										"false": [
											"\t[商人,trader]你没有黄钥匙！"
										]
									}
								]
							},
							{
								"text": "蓝钥匙（50金币）",
								"color": [
									0,
									0,
									255,
									1
								],
								"action": [
									{
										"type": "if",
										"condition": "(item:blueKey >= 1)",
										"true": [
											{
												"type": "setValue",
												"name": "item:blueKey",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:money",
												"operator": "+=",
												"value": "50"
											}
										],
										"false": [
											"\t[商人,trader]你没有蓝钥匙！"
										]
									}
								]
							},
							{
								"text": "离开",
								"action": [
									{
										"type": "exit"
									}
								]
							}
						]
					}
				]
			}
		],
		"抽卡": [
			"正在为您抽取……",
			{
				"type": "function",
				"function": "function(){\ncore.plugin.draws(core.status.thisMap.ratio, core.status.floorId);\n}"
			},
			{
				"type": "sleep",
				"time": 1800,
				"noSkip": true
			},
			{
				"type": "autoSave"
			},
			"抽取完成，请选择一个抽取的结果：",
			{
				"type": "comment",
				"text": "全地图选中一个点，需要用鼠标或触屏操作"
			},
			{
				"type": "drawSelector",
				"image": "winskin1.png",
				"code": 1,
				"x": 0,
				"y": 0,
				"width": 32,
				"height": 32
			},
			{
				"type": "while",
				"condition": "true",
				"data": [
					{
						"type": "wait",
						"forceChild": true,
						"data": [
							{
								"case": "mouse",
								"px": [
									0,
									512
								],
								"py": [
									0,
									512
								],
								"action": [
									{
										"type": "setValue",
										"name": "flag:XX",
										"value": "flag:x"
									},
									{
										"type": "setValue",
										"name": "flag:YY",
										"value": "flag:y"
									},
									{
										"type": "drawSelector",
										"image": "winskin1.png",
										"code": 1,
										"x": "32*flag:XX",
										"y": "32*flag:YY",
										"width": 32,
										"height": 32
									},
									{
										"type": "if",
										"condition": "((flag:y==0)&&((flag:x>=4)&&(flag:x<=8)))",
										"true": [
											{
												"type": "break",
												"n": 1
											}
										]
									}
								]
							}
						]
					}
				]
			},
			"请再选择场上一名怪物（不得是非本区怪物、大型怪物或BOSS），\n点击上次选择的位置则取消交换：",
			{
				"type": "comment",
				"text": "全地图选中一个点，需要用鼠标或触屏操作"
			},
			{
				"type": "drawSelector",
				"image": "winskin1.png",
				"code": 2,
				"x": 0,
				"y": 0,
				"width": 32,
				"height": 32
			},
			{
				"type": "while",
				"condition": "true",
				"data": [
					{
						"type": "wait",
						"forceChild": true,
						"data": [
							{
								"case": "mouse",
								"px": [
									0,
									512
								],
								"py": [
									0,
									512
								],
								"action": [
									{
										"type": "setValue",
										"name": "flag:PP",
										"value": "flag:x"
									},
									{
										"type": "setValue",
										"name": "flag:QQ",
										"value": "flag:y"
									},
									{
										"type": "drawSelector",
										"image": "winskin1.png",
										"code": 2,
										"x": "32*flag:PP",
										"y": "32*flag:QQ",
										"width": 32,
										"height": 32
									},
									{
										"type": "if",
										"condition": "((flag:PP==flag:XX)&&(flag:YY==flag:QQ))",
										"true": [
											{
												"type": "break",
												"n": 1
											}
										],
										"false": [
											{
												"type": "if",
												"condition": "((flag:y>0)&&((core.plugin.pool(core.status.thisMap.ratio)!== null )&&core.plugin.pool(core.status.thisMap.ratio).some(item => item.id === core.getBlockId(core.getFlag(\"x\",0),core.getFlag(\"y\",0)))))",
												"true": [
													{
														"type": "setValue",
														"name": "flag:临时图块",
														"value": "core.getFgNumber(flag:XX,flag:YY)"
													},
													{
														"type": "function",
														"function": "function(){\ncore.setBgFgBlock('fg', core.getBlockNumber(core.getFlag(\"PP\"), core.getFlag(\"QQ\")), core.getFlag(\"XX\"), core.getFlag(\"YY\"));\n}"
													},
													{
														"type": "function",
														"function": "function(){\ncore.setBlock(core.getFlag(\"临时图块\"), core.getFlag(\"PP\"), core.getFlag(\"QQ\"));\n}"
													},
													{
														"type": "break",
														"n": 1
													}
												]
											}
										]
									}
								]
							}
						]
					}
				]
			},
			{
				"type": "drawSelector",
				"code": 1
			},
			{
				"type": "drawSelector",
				"code": 2
			}
		],
		"四怪加点": [
			{
				"type": "choices",
				"text": "上楼梯已开启，请选择奖励：",
				"choices": [
					{
						"text": "攻击+1",
						"action": [
							{
								"type": "setValue",
								"name": "status:atk",
								"operator": "+=",
								"value": "1"
							}
						]
					},
					{
						"text": "防御+2",
						"action": [
							{
								"type": "setValue",
								"name": "status:def",
								"operator": "+=",
								"value": "2"
							}
						]
					}
				]
			}
		]
	},
	"CommonEventTemplate": {
		"检测音乐如果没有开启则系统提示开启": [
			{
				"type": "if",
				"condition": "(!core.musicStatus.bgmStatus)",
				"true": [
					"\t[系统提示]你当前音乐处于关闭状态，本塔开音乐游戏效果更佳"
				],
				"false": []
			}
		],
		"仿新新魔塔一次性商人": [
			{
				"type": "if",
				"condition": "switch:A",
				"true": [
					"\t[行商,trader]\b[this]这是购买我的道具后我给玩家的提示。",
					{
						"type": "comment",
						"text": "下一条指令可视情况使用或不使用"
					},
					{
						"type": "hide",
						"remove": true,
						"time": 250,
						"loc": [
							[]
						]
					}
				],
				"false": [
					{
						"type": "confirm",
						"text": "我有3把黄钥匙，\n你出50金币就卖给你。",
						"yes": [
							{
								"type": "if",
								"condition": "status:money>=50",
								"true": [
									{
										"type": "setValue",
										"name": "status:money",
										"operator": "-=",
										"value": "50"
									},
									{
										"type": "setValue",
										"name": "item:yellowKey",
										"operator": "+=",
										"value": "3"
									},
									{
										"type": "playSound",
										"name": "确定",
										"stop": true
									},
									{
										"type": "setValue",
										"name": "switch:A",
										"value": "true"
									}
								],
								"false": [
									{
										"type": "playSound",
										"name": "操作失败"
									},
									"\t[行商,trader]\b[this]你的金币不足！"
								]
							}
						],
						"no": []
					}
				]
			}
		],
		"全地图选中一个点": [
			{
				"type": "comment",
				"text": "全地图选中一个点，需要用鼠标或触屏操作"
			},
			{
				"type": "setValue",
				"name": "temp:X",
				"value": "status:x"
			},
			{
				"type": "setValue",
				"name": "temp:Y",
				"value": "status:y"
			},
			{
				"type": "tip",
				"text": "再次点击闪烁位置确认"
			},
			{
				"type": "while",
				"condition": "true",
				"data": [
					{
						"type": "drawSelector",
						"image": "winskin.png",
						"code": 1,
						"x": "32*temp:X",
						"y": "32*temp:Y",
						"width": 32,
						"height": 32
					},
					{
						"type": "wait"
					},
					{
						"type": "if",
						"condition": "(flag:type === 1)",
						"true": [
							{
								"type": "if",
								"condition": "((temp:X===flag:x)&&(temp:Y===flag:y))",
								"true": [
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"type": "setValue",
								"name": "temp:X",
								"value": "flag:x"
							},
							{
								"type": "setValue",
								"name": "temp:Y",
								"value": "flag:y"
							}
						]
					}
				]
			},
			{
				"type": "drawSelector",
				"code": 1
			},
			{
				"type": "comment",
				"text": "流程进行到这里可以对[X,Y]点进行处理，比如"
			},
			{
				"type": "closeDoor",
				"id": "yellowDoor",
				"loc": [
					"temp:X",
					"temp:Y"
				]
			}
		],
		"多阶段Boss战斗": [
			{
				"type": "comment",
				"text": "多阶段boss，请直接作为战后事件使用"
			},
			{
				"type": "setValue",
				"name": "switch:A",
				"operator": "+=",
				"value": "1"
			},
			{
				"type": "switch",
				"condition": "switch:A",
				"caseList": [
					{
						"case": "1",
						"action": [
							{
								"type": "setBlock",
								"number": "redSlime",
								"loc": [
									[]
								]
							},
							"\t[2阶段boss,redSlime]\b[this]你以为你已经打败我了吗？没听说过史莱姆有九条命吗？"
						]
					},
					{
						"case": "2",
						"action": [
							{
								"type": "setBlock",
								"number": "blackSlime",
								"loc": [
									[]
								]
							},
							"\t[3阶段boss,blackSlime]\b[this]不能消灭我的，只会让我更强大！"
						]
					},
					{
						"case": "3",
						"action": [
							{
								"type": "setBlock",
								"number": "slimelord",
								"loc": [
									[]
								]
							},
							"\t[4阶段boss,slimelord]\b[this]我还能打！"
						]
					},
					{
						"case": "4",
						"action": [
							"\t[4阶段boss,slimelord]我一定会回来的！"
						]
					}
				]
			}
		],
		"阿狸的音乐盒": [
			{
				"type": "choices",
				"text": "\t[阿狸,ali]要听听看这些歌曲吗",
				"choices": [
					{
						"text": "theme1",
						"action": [
							{
								"type": "if",
								"condition": "(flag:阿狸的音乐盒!==1)",
								"true": [
									{
										"type": "playBgm",
										"name": "theme1.mp3",
										"keep": true
									},
									{
										"type": "setValue",
										"name": "flag:阿狸的音乐盒",
										"value": "1"
									}
								]
							}
						],
						"color": null
					},
					{
						"text": "theme2",
						"action": [
							{
								"type": "if",
								"condition": "(flag:阿狸的音乐盒!==2)",
								"true": [
									{
										"type": "playBgm",
										"name": "theme2.mp3",
										"keep": true
									},
									{
										"type": "setValue",
										"name": "flag:阿狸的音乐盒",
										"value": "2"
									}
								]
							}
						],
						"color": null
					},
					{
						"text": "恢复楼层BGM",
						"action": [
							{
								"type": "if",
								"condition": "(flag:阿狸的音乐盒!==0)",
								"true": [
									{
										"type": "playBgm",
										"name": "section1.mp3"
									},
									{
										"type": "setValue",
										"name": "flag:阿狸的音乐盒",
										"value": "0"
									}
								]
							}
						],
						"color": null
					}
				]
			}
		]
	}
}