var events_c12a15a8_c380_4b28_8144_256cba95f760 = 
{
	"commonEvent": {
		"加点事件": [
			{
				"type": "comment",
				"text": "通过传参，变量：arg1 表示当前应该的加点数值"
			},
			{
				"type": "choices",
				"choices": [
					{
						"text": "攻击+${1*变量：arg1}",
						"action": [
							{
								"type": "setValue",
								"name": "status:atk",
								"operator": "+=",
								"value": "1*变量：arg1"
							}
						]
					},
					{
						"text": "防御+${2*变量：arg1}",
						"action": [
							{
								"type": "setValue",
								"name": "status:def",
								"operator": "+=",
								"value": "2*变量：arg1"
							}
						]
					},
					{
						"text": "生命+${200*变量：arg1}",
						"action": [
							{
								"type": "setValue",
								"name": "status:hp",
								"operator": "+=",
								"value": "200*变量：arg1"
							}
						]
					}
				]
			}
		],
		"回收钥匙商店": [
			{
				"type": "while",
				"condition": "(core.canUseQuickShop('keyShop2')==null)",
				"data": [
					{
						"type": "choices",
						"text": "\t[商人,trader]哦，欢迎你的到来，如果你手里缺少金币，我可以帮你：",
						"choices": [
							{
								"text": "卖出一把黄钥匙（7）",
								"action": [
									{
										"type": "if",
										"condition": "(item:yellowKey >= 1)",
										"true": [
											{
												"type": "playSound",
												"name": "keySold.mp3"
											},
											{
												"type": "setValue",
												"name": "item:yellowKey",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:money",
												"operator": "+=",
												"value": "7"
											},
											{
												"type": "setValue",
												"name": "flag:keyshop2_yellow_sell",
												"operator": "+=",
												"value": "1"
											}
										],
										"false": [
											"\t[商人,trader]你没有黄钥匙！"
										]
									}
								]
							},
							{
								"text": "卖出一把蓝钥匙（35）",
								"action": [
									{
										"type": "if",
										"condition": "(item:blueKey >= 1)",
										"true": [
											{
												"type": "playSound",
												"name": "keySold.mp3"
											},
											{
												"type": "setValue",
												"name": "item:blueKey",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:money",
												"operator": "+=",
												"value": "35"
											},
											{
												"type": "setValue",
												"name": "flag:keyshop2_blue_sell",
												"operator": "+=",
												"value": "1"
											}
										],
										"false": [
											"\t[商人,trader]你没有蓝钥匙！"
										]
									}
								]
							},
							{
								"text": "卖出一把红钥匙（70）",
								"action": [
									{
										"type": "if",
										"condition": "(item:redKey>= 1)",
										"true": [
											{
												"type": "playSound",
												"name": "keySold.mp3"
											},
											{
												"type": "setValue",
												"name": "item:redKey",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:money",
												"operator": "+=",
												"value": "70"
											},
											{
												"type": "setValue",
												"name": "flag:keyshop2_red_sell",
												"operator": "+=",
												"value": "1"
											}
										],
										"false": [
											"\t[商人,trader]你没有红钥匙！"
										]
									}
								]
							},
							{
								"text": "离开商店",
								"action": [
									{
										"type": "playSound",
										"name": "queren.mp3"
									},
									{
										"type": "exit"
									}
								]
							}
						]
					},
					{
						"type": "playSound",
						"name": "keyUnsold.mp3"
					}
				]
			}
		],
		"游戏帮助": [
			{
				"type": "function",
				"function": "function(){\ncore.status.route.push('help')\n}"
			},
			{
				"type": "while",
				"condition": "true",
				"data": [
					{
						"type": "choices",
						"choices": [
							{
								"text": "自动操作",
								"color": [
									0,
									0,
									100,
									1
								],
								"condition": "!flag:战斗动画",
								"action": [
									{
										"type": "while",
										"condition": "1",
										"data": [
											{
												"type": "function",
												"function": "function(){\nif (!core.status.hero.flags.__auto__) core.status.hero.flags.__auto__ = { battle: false, item: false, wall: false }\n}"
											},
											{
												"type": "choices",
												"text": "选择要开启的功能",
												"choices": [
													{
														"text": "自动清零伤怪 [off]",
														"condition": "!core.status.hero.flags.__auto__.battle",
														"action": [
															{
																"type": "function",
																"function": "function(){\ncore.status.hero.flags.__auto__.battle = true;\n}"
															},
															{
																"type": "tip",
																"text": "自动清怪已开启"
															}
														]
													},
													{
														"text": "自动清零伤怪 [on]",
														"condition": "core.status.hero.flags.__auto__.battle",
														"action": [
															{
																"type": "function",
																"function": "function(){\ncore.status.hero.flags.__auto__.battle = false;\n}"
															},
															{
																"type": "tip",
																"text": "自动清怪已关闭"
															}
														]
													},
													{
														"text": "自动拾取物品 [off]",
														"condition": "!core.status.hero.flags.__auto__.item",
														"action": [
															{
																"type": "function",
																"function": "function(){\ncore.status.hero.flags.__auto__.item = 'nopotion';\n}"
															},
															{
																"type": "tip",
																"text": "已开启：拾取物品(不含血瓶)"
															}
														]
													},
													{
														"text": "自动拾取物品 [不含血瓶]",
														"condition": "core.status.hero.flags.__auto__.item == 'nopotion'",
														"action": [
															{
																"type": "function",
																"function": "function(){\ncore.status.hero.flags.__auto__.item = 'all';\n}"
															},
															{
																"type": "tip",
																"text": "已切换：拾取全部物品"
															}
														]
													},
													{
														"text": "自动拾取物品 [全部]",
														"condition": "core.status.hero.flags.__auto__.item == 'all' || core.status.hero.flags.__auto__.item === true",
														"action": [
															{
																"type": "function",
																"function": "function(){\ncore.status.hero.flags.__auto__.item = false;\n}"
															},
															{
																"type": "tip",
																"text": "自动拾取已关闭"
															}
														]
													},
													{
														"text": "退出设置",
														"action": [
															{
																"type": "break",
																"n": 1
															}
														]
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "交易统计",
								"action": [
									{
										"type": "function",
										"function": "function(){\ncore.plugin.showTradeSummary()\n}"
									}
								]
							},
							{
								"text": "移动音效 [on]",
								"condition": "false",
								"action": [
									{
										"type": "setValue",
										"name": "flag:移动音效",
										"value": "false"
									}
								]
							},
							{
								"text": "移动音效 [off]",
								"condition": "false",
								"action": [
									{
										"type": "setValue",
										"name": "flag:移动音效",
										"value": "true"
									}
								]
							},
							{
								"text": "转场弹窗 [on]",
								"need": "!flag:limitTimeLeft",
								"condition": "flag:转场弹窗",
								"action": [
									{
										"type": "setValue",
										"name": "flag:转场弹窗",
										"value": "false"
									}
								]
							},
							{
								"text": "转场弹窗 [off]",
								"condition": "!flag:转场弹窗",
								"action": [
									{
										"type": "setValue",
										"name": "flag:转场弹窗",
										"value": "true"
									}
								]
							},
							{
								"text": "动画速度",
								"condition": "flag:战斗动画",
								"action": [
									{
										"type": "while",
										"condition": "true",
										"data": [
											{
												"type": "choices",
												"text": "当前回合间隔：${flag:回合间隔}",
												"choices": [
													{
														"text": "减速（+25）",
														"action": [
															{
																"type": "setValue",
																"name": "flag:回合间隔",
																"operator": "+=",
																"value": "25"
															},
															{
																"type": "if",
																"condition": "(flag:回合间隔 > 500)",
																"true": [
																	{
																		"type": "setValue",
																		"name": "flag:回合间隔",
																		"value": "500"
																	}
																]
															}
														]
													},
													{
														"text": "加速（-25）",
														"action": [
															{
																"type": "setValue",
																"name": "flag:回合间隔",
																"operator": "-=",
																"value": "25"
															},
															{
																"type": "if",
																"condition": "(flag:回合间隔 < 0)",
																"true": [
																	{
																		"type": "setValue",
																		"name": "flag:回合间隔",
																		"value": "0"
																	}
																]
															}
														]
													},
													{
														"text": "置0",
														"action": [
															{
																"type": "setValue",
																"name": "flag:回合间隔",
																"value": "0"
															}
														]
													},
													{
														"text": "返回主菜单",
														"action": [
															{
																"type": "break",
																"n": 1
															}
														]
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "护眼模式（调整色调）",
								"action": [
									{
										"type": "insert",
										"name": "护眼模式"
									}
								]
							},
							{
								"text": "返回游戏",
								"action": [
									{
										"type": "break",
										"n": 1
									}
								]
							}
						]
					}
				]
			}
		],
		"关于游戏": [
			"\t[魔塔样板]版本： ${main.__VERSION__}\n作者： 艾之葵\nHTML5 魔塔交流群：624253557\n三原魔塔整活宇宙四群：1033598249",
			"\t[24层魔塔]《24层魔塔》是由胖老鼠工作室于2003年发布的Flash游戏（初始版本仅设有21层），2004年推出V1.1版和V1.12版，扩展至24层剧情。24层魔塔作为中国首款魔塔游戏，和50层魔塔、新新魔塔并称为三原塔，对中国早期魔塔的发展产生了深远影响。",
			"\t[此前的复刻]（排名不分先后）\n复刻者：艾之葵、秋橙、北海小羊\n\n在此致谢诸位前辈的探索与积累，为本项目提供了重要参考与传承。",
			"\t[您所游玩的版本]基于步步高学习机版本复刻。音乐音效方面，保留了原24魔塔的音效与bgm\n复刻者：详见本塔置顶评论。\n\n感谢所有参与其中的玩家与测试者，是你们让本塔不断完善。"
		],
		"结局": [
			{
				"type": "function",
				"function": "function(){\ncore.plugin.drawHappyEndScene()\n}"
			},
			{
				"type": "sleep",
				"time": 1500
			},
			{
				"type": "while",
				"condition": "true",
				"data": [
					{
						"type": "choices",
						"text": "\t[作者,king]选择要提交的榜单！",
						"choices": [
							{
								"text": "生命值",
								"action": [
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"生命\""
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "攻击值（最高）",
								"action": [
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"最高攻击\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "status:atk",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "防御值（最高）",
								"condition": "false",
								"action": [
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"最高防御\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "status:def",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "攻防和（最高）",
								"action": [
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"最高攻防和\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "status:atk + status:def",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "等级",
								"action": [
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"等级\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "status:lv",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "金币数量",
								"action": [
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"金币\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "status:money",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "经验值",
								"action": [
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"经验\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "status:exp",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "商店购买次数（最高）",
								"action": [
									{
										"type": "setValue",
										"name": "flag:t",
										"value": "flag:shop1_hp_buy+flag:shop1_atk_buy+flag:shop1_def_buy+flag:shop2_hp_buy+flag:shop2_atk_buy+flag:shop2_def_buy"
									},
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"最高商店购买次数\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "flag:t",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "经验老人购买次数（最高）",
								"action": [
									{
										"type": "setValue",
										"name": "flag:t",
										"value": "flag:exp1_level_buy + \nflag:exp1_atk_buy + \nflag:exp1_def_buy + \nflag:exp2_level_buy + \nflag:exp2_atk_buy + \nflag:exp2_def_buy"
									},
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"最高经验老人购买次数\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "flag:t",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "存活怪物数量",
								"action": [
									{
										"type": "function",
										"function": "function(){\nlet n = 0;\nfor (const f of core.floorIds) {\n\tn += core.searchBlockWithFilter(b => b.event.cls === 'enemys' || b.event.cls === 'enemy48', f).length;\n}\ncore.setFlag('t', n);\n}"
									},
									{
										"type": "setValue",
										"name": "flag:rankType",
										"value": "\"存活怪物数量\""
									},
									{
										"type": "setValue",
										"name": "status:hp",
										"value": "flag:t",
										"norefresh": true
									},
									{
										"type": "break",
										"n": 1
									}
								]
							},
							{
								"text": "下一页",
								"action": [
									{
										"type": "choices",
										"text": "\t[king]选择要提交的榜单！",
										"choices": [
											{
												"text": "商店购买次数（最低）",
												"action": [
													{
														"type": "setValue",
														"name": "flag:t",
														"value": "flag:shop1_hp_buy+flag:shop1_atk_buy+flag:shop1_def_buy+flag:shop2_hp_buy+flag:shop2_atk_buy+flag:shop2_def_buy"
													},
													{
														"type": "setValue",
														"name": "flag:rankType",
														"value": "\"最低商店购买次数\""
													},
													{
														"type": "setValue",
														"name": "status:hp",
														"value": "flag:t + (10000000000 - 100000*flag:t)",
														"norefresh": true
													},
													{
														"type": "break",
														"n": 1
													}
												]
											},
											{
												"text": "经验老人购买次数（最低）",
												"action": [
													{
														"type": "setValue",
														"name": "flag:t",
														"value": "flag:exp1_level_buy + \nflag:exp1_atk_buy + \nflag:exp1_def_buy + \nflag:exp2_level_buy + \nflag:exp2_atk_buy + \nflag:exp2_def_buy"
													},
													{
														"type": "setValue",
														"name": "flag:rankType",
														"value": "\"最低经验老人购买次数\""
													},
													{
														"type": "setValue",
														"name": "status:hp",
														"value": "flag:t + (10000000000 - 100000*flag:t)",
														"norefresh": true
													},
													{
														"type": "break",
														"n": 1
													}
												]
											},
											{
												"text": "攻击值（最低）",
												"condition": "false",
												"action": [
													{
														"type": "setValue",
														"name": "flag:rankType",
														"value": "\"最低攻击\""
													},
													{
														"type": "setValue",
														"name": "status:hp",
														"value": "status:atk + (1000000000000 - 1000000*status:atk)",
														"norefresh": true
													},
													{
														"type": "break",
														"n": 1
													}
												]
											},
											{
												"text": "防御值（最低）",
												"action": [
													{
														"type": "setValue",
														"name": "flag:rankType",
														"value": "\"最低防御\""
													},
													{
														"type": "setValue",
														"name": "status:hp",
														"value": "status:def + (1000000000000 - 1000000*status:def)",
														"norefresh": true
													},
													{
														"type": "break",
														"n": 1
													}
												]
											},
											{
												"text": "攻防和（最低）",
												"action": [
													{
														"type": "setValue",
														"name": "flag:rankType",
														"value": "\"最低攻防和\""
													},
													{
														"type": "setValue",
														"name": "status:hp",
														"value": "(status:atk + status:def) + (1000000000000 - 1000000*(status:atk + status:def))",
														"norefresh": true
													},
													{
														"type": "break",
														"n": 1
													}
												]
											},
											{
												"text": "上一页",
												"action": []
											}
										]
									}
								]
							}
						]
					}
				]
			},
			{
				"type": "win",
				"reason": "${flag:rankType}"
			}
		],
		"护眼模式": [
			{
				"type": "choices",
				"text": "\t[作者,king]是否启用护眼模式？",
				"choices": [
					{
						"text": "增加网格",
						"action": [
							{
								"type": "setValue",
								"name": "flag:绘制网格",
								"value": "true"
							}
						]
					},
					{
						"text": "变黄",
						"color": [
							255,
							215,
							0,
							1
						],
						"action": [
							{
								"type": "setCurtain",
								"color": [
									220,
									170,
									0,
									0.3
								],
								"time": 0,
								"keep": true
							},
							{
								"type": "setText",
								"title": [
									0,
									0,
									0,
									1
								],
								"text": [
									0,
									0,
									0,
									1
								],
								"background": [
									245,
									230,
									179,
									1
								]
							},
							{
								"type": "setGlobalAttribute",
								"name": "statusLeftBackground",
								"value": "245,230,179,1"
							},
							{
								"type": "setGlobalAttribute",
								"name": "statusTopBackground",
								"value": "245,230,179,1"
							},
							{
								"type": "setGlobalAttribute",
								"name": "toolsBackground",
								"value": "245,230,179,1"
							}
						]
					},
					{
						"text": "变绿",
						"color": [
							110,
							200,
							110,
							1
						],
						"action": [
							{
								"type": "setCurtain",
								"color": [
									30,
									150,
									30,
									0.3
								],
								"time": 0,
								"keep": true
							},
							{
								"type": "setText",
								"title": [
									0,
									0,
									0,
									1
								],
								"text": [
									0,
									0,
									0,
									1
								],
								"background": [
									188,
									224,
									188,
									1
								]
							},
							{
								"type": "setGlobalAttribute",
								"name": "statusLeftBackground",
								"value": "188,224,188,1"
							},
							{
								"type": "setGlobalAttribute",
								"name": "statusTopBackground",
								"value": "188,224,188,1"
							},
							{
								"type": "setGlobalAttribute",
								"name": "toolsBackground",
								"value": "188,224,188,1"
							}
						]
					},
					{
						"text": "变灰",
						"color": [
							183,
							183,
							183,
							1
						],
						"action": [
							{
								"type": "setCurtain",
								"color": [
									0,
									0,
									0,
									0.3
								],
								"time": 0,
								"keep": true
							},
							{
								"type": "setText",
								"title": [
									0,
									0,
									0,
									1
								],
								"text": [
									0,
									0,
									0,
									1
								],
								"background": [
									179,
									179,
									179,
									1
								]
							},
							{
								"type": "setGlobalAttribute",
								"name": "statusLeftBackground",
								"value": "179,179,179,1"
							},
							{
								"type": "setGlobalAttribute",
								"name": "statusTopBackground",
								"value": "179,179,179,1"
							},
							{
								"type": "setGlobalAttribute",
								"name": "toolsBackground",
								"value": "179,179,179,1"
							}
						]
					},
					{
						"text": "正常",
						"color": [
							0,
							0,
							0,
							1
						],
						"action": [
							{
								"type": "setText",
								"title": [
									0,
									0,
									0,
									1
								],
								"text": [
									0,
									0,
									0,
									1
								],
								"background": [
									255,
									255,
									255,
									1
								]
							},
							{
								"type": "setGlobalAttribute",
								"name": "statusLeftBackground",
								"value": "255,255,255,1"
							},
							{
								"type": "setGlobalAttribute",
								"name": "statusTopBackground",
								"value": "255,255,255,1"
							},
							{
								"type": "setGlobalAttribute",
								"name": "toolsBackground",
								"value": "255,255,255,1"
							}
						]
					}
				]
			}
		]
	}
}