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": []
					}
				]
			}
		],
		"记事本": [
			"\t[记事本,wand]你点什么？你敢再点一次！魔塔不需要像我这样废物的道具，来人给我杀了。",
			{
				"type": "playSound",
				"name": "bomb.mp3"
			},
			{
				"type": "setValue",
				"name": "status:hp",
				"value": "0"
			}
		],
		"回收钥匙商店": [
			{
				"type": "comment",
				"text": "此事件在全局商店中被引用了(全局商店keyShop)"
			},
			{
				"type": "comment",
				"text": "解除引用前勿删除此事件"
			},
			{
				"type": "comment",
				"text": "玩家在快捷列表（V键）中可以使用本公共事件"
			},
			{
				"type": "while",
				"condition": "1",
				"data": [
					{
						"type": "choices",
						"text": "\t[商人,trader]我出售炸弹！（每次购买后价格+100金币）",
						"choices": [
							{
								"text": "购买1个（${flag:price_bomb}）",
								"icon": "hammer",
								"need": "status:money>=flag:price_bomb",
								"action": [
									{
										"type": "setValue",
										"name": "item:hammer",
										"operator": "+=",
										"value": "1"
									},
									{
										"type": "setValue",
										"name": "status:money",
										"operator": "-=",
										"value": "flag:price_bomb"
									},
									{
										"type": "setValue",
										"name": "flag:price_bomb",
										"operator": "+=",
										"value": "100"
									}
								]
							},
							{
								"text": "离开",
								"action": [
									{
										"type": "exit"
									}
								]
							}
						]
					}
				]
			}
		],
		"怪物打乱": [
			{
				"type": "function",
				"function": "function(){\nlet enemyOriginal, enemySwapped;\n\nif (core.getFlag('gamemode') == 1) {\n\tenemyOriginal = ['greenSlime', 'redSlime', 'bat', 'bluePriest', 'skeleton', 'skeletonSoilder', 'yellowGuard', 'skeletonCaptain', 'blackSlime', 'bigBat', 'zombie', 'redPriest', 'rock', 'zombieKnight', 'vampire', 'slimeMan', 'ghostSkeleton', 'soldier', 'blueGuard', 'swordsman', 'redKnight', 'yellowKnight', 'octopus', 'slimelord', 'redBat', 'brownWizard', 'redWizard', 'whiteKing', 'darkKnight', 'redGuard'];\n\tenemySwapped = ['greenSlime', 'redSlime', 'bat', 'skeleton', 'bluePriest', 'skeletonSoilder', 'yellowGuard', 'bigBat', 'skeletonCaptain', 'rock', 'blackSlime', 'redPriest', 'yellowKnight', 'zombie', 'blueGuard', 'ghostSkeleton', 'zombieKnight', 'soldier', 'slimeMan', 'redKnight', 'redBat', 'slimelord', 'brownWizard', 'vampire', 'redWizard', 'whiteKing', 'darkKnight', 'swordsman', 'redGuard', 'octopus'];\n} else if (core.getFlag('gamemode') == 2) {\n\tenemyOriginal = ['greenSlime', 'redSlime', 'bat', 'bluePriest', 'skeleton', 'skeletonSoilder', 'yellowGuard', 'blackSlime', 'bigBat', 'zombie', 'redPriest', 'rock', 'zombieKnight', 'slimeMan', 'ghostSkeleton', 'soldier', 'blueGuard', 'swordsman', 'redKnight', 'slimelord', 'redBat', 'brownWizard', 'redWizard', 'whiteKing', 'darkKnight', 'redGuard', 'skeletonCaptain', 'vampire', 'yellowKnight', 'octopus'];\n\tenemySwapped = ['greenSlime', 'redSlime', 'bat', 'skeleton', 'bluePriest', 'skeletonSoilder', 'yellowGuard', 'bigBat', 'rock', 'blackSlime', 'redPriest', 'zombie', 'blueGuard', 'ghostSkeleton', 'zombieKnight', 'soldier', 'slimeMan', 'redKnight', 'redBat', 'slimelord', 'brownWizard', 'redWizard', 'whiteKing', 'darkKnight', 'swordsman', 'redGuard', 'skeletonCaptain', 'yellowKnight', 'vampire', 'octopus'];\n}\nlet crossOriginal = ['zombie', 'zombieKnight', 'vampire'];\nlet crossSwapped = crossOriginal;\nlet fieldOriginal = ['brownWizard', 'redWizard', 'whiteKing'];\nlet fieldSwapped = fieldOriginal;\nlet bossOriginal = ['skeletonCaptain', 'vampire', 'octopus', 'yellowKnight'];\nlet bossSwapped = bossOriginal;\n\n//十字架效果变化\nfor (let e = 0; e <= 2; e++) {\n\n\tlet ci = enemyOriginal.indexOf(crossOriginal[e]);\n\tcrossSwapped[e] = enemySwapped[ci];\n}\n//领域狙击效果变化\nfor (let f = 0; f <= 2; f++) {\n\n\tlet fi = enemyOriginal.indexOf(fieldOriginal[f]);\n\tfieldSwapped[f] = enemySwapped[fi];\n}\ncore.setEnemy(fieldSwapped[0], 'special', 15);\ncore.setEnemy(fieldSwapped[0], 'zone', 100);\ncore.setEnemy(fieldSwapped[1], 'special', 18);\ncore.setEnemy(fieldSwapped[1], 'zone', 200);\ncore.setEnemy(fieldSwapped[2], 'special', 16);\nfor (let b = 0; b <= 3; b++) {\n\tlet bi = enemyOriginal.indexOf(bossOriginal[b]);\n\tbossSwapped[b] = enemySwapped[bi];\n\tcore.setEnemy(bossSwapped[b], 'notBomb', true);\n}\n\n//狙击的算法重写了，见狙激夹域\nfor (let i = 1; i <= 11; i++) {\n\tfor (let j = 1; j <= 11; j++) {\n\t\tfor (let k = 1; k <= 49; k++) {\n\t\t\tlet blockId = core.getBlockId(i, j, 'MT' + k);\n\t\t\t//这里插入狙击巫师特判\n\t\t\tif (blockId == 'blackKing') blockId = 'redWizard';\n\t\t\t//插入完毕\n\t\t\tlet ei = enemyOriginal.indexOf(blockId);\n\t\t\tif (ei >= 0 && ei < enemyOriginal.length) {\n\t\t\t\tcore.setBlock(enemySwapped[ei], i, j, 'MT' + k);\n\t\t\t}\n\t\t}\n\t}\n}\n\ncore.setFlag('crossSwapped', crossSwapped);\n}"
			}
		]
	},
	"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
					}
				]
			}
		]
	}
}