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": "switch", "condition": "flag:Gallery", "caseList": [ { "case": "1", "action": [ { "type": "choices", "text": "这里是全部筹码列表", "choices": [ { "text": "拳击手套-初级", "icon": "BoxingGlovesB", "action": [ "\t[拳击手套-初级,BoxingGlovesB]获得10点攻击力", { "type": "insert", "name": "记事本" } ] }, { "text": "拳击手套-中级", "icon": "BoxingGlovesG", "action": [ "\t[拳击手套-中级,BoxingGlovesG]获得20点攻击力", { "type": "insert", "name": "记事本" } ] }, { "text": "拳击手套-高级", "icon": "BoxingGlovesE", "action": [ "\t[拳击手套-高级,BoxingGlovesE]获得40点攻击力", { "type": "insert", "name": "记事本" } ] }, { "text": "摩托头盔-一般", "icon": "MotorcycleHelmetB", "action": [ "\t[摩托头盔-一般,MotorcycleHelmetB]获得10点防御力", { "type": "insert", "name": "记事本" } ] }, { "text": "摩托头盔-中级", "icon": "MotorcycleHelmetG", "action": [ "\t[摩托头盔-中级,MotorcycleHelmetG]获得20点防御力", { "type": "insert", "name": "记事本" } ] }, { "text": "摩托头盔-高级", "icon": "MotorcycleHelmetE", "action": [ "\t[摩托头盔-高级,MotorcycleHelmetE]获得50点防御力", { "type": "insert", "name": "记事本" } ] }, { "text": "下一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "2" }, { "type": "insert", "name": "记事本" } ] }, { "text": "关闭", "action": [] } ] } ] }, { "case": "2", "action": [ { "type": "choices", "text": "这里是全部筹码列表", "choices": [ { "text": "银行卡-余额少", "icon": "BankcardL", "action": [ "\t[银行卡-余额少,BankcardL]获得10点\\i[BuffStarlight]\n星光\\i[BuffStarlight]:每3场战斗后,获得星光层数*道具倍率的金币\n持有星光时开始计算战斗次数\n\r[#66FFCC]${3-flags.star.count}场战斗后,获得${flags.star.level*flags.ratio}金币", { "type": "insert", "name": "记事本" } ] }, { "text": "银行卡-余额多", "icon": "BankcardH", "action": [ "\t[银行卡-余额多,BankcardH]获得20点\\i[BuffStarlight]\n星光\\i[BuffStarlight]:每3场战斗后,获得星光层数*道具倍率的金币\n持有星光时开始计算战斗次数\n\r[#66FFCC]${3-flags.star.count}场战斗后,获得${flags.star.level*flags.ratio}金币", { "type": "insert", "name": "记事本" } ] }, { "text": "银行卡-用不完", "icon": "BankcardU", "action": [ "\t[银行卡-用不完,BankcardU]获得5点\\i[BuffStarlight],从怪物身上获得的金币翻倍(可与幸运金币叠加至4倍)\n星光\\i[BuffStarlight]:每3场战斗后,获得星光层数*道具倍率的金币\n持有星光时开始计算战斗次数\n\r[#66FFCC]${3-flags.star.count}场战斗后,获得${flags.star.level*flags.ratio}金币", { "type": "insert", "name": "记事本" } ] }, { "text": "诅咒之剑", "icon": "CursedSword", "action": [ "\t[诅咒之剑,CursedSword]10场战斗后,获得2点攻击力并失去1点防御力\n\r[#66FFCC]此效果将在${10-flags.Cursed}场战斗后生效", { "type": "insert", "name": "记事本" } ] }, { "text": "缓冲盾牌", "icon": "BufferShield", "action": [ "\t[缓冲盾牌,BufferShield]依据被攻击的回合数(最高10),战斗结束后获得3*回合数层治愈和3*道具倍率*回合数的金币\n怪物有先攻/连击特性时,此效果也会增强\n治愈\\i[BuffHealth]:每场战斗后,回复治愈层数的生命值,并且治愈层数减少40%\n\r[#66FFCC]目前战斗后回复${flags.health.count+flags.health.upbuff}生命值,之后层数减少至${Math.floor((flags.health.count+flags.health.upbuff)*3/5)}", { "type": "insert", "name": "记事本" } ] }, { "text": "上一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "1" }, { "type": "insert", "name": "记事本" } ] }, { "text": "下一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "3" }, { "type": "insert", "name": "记事本" } ] }, { "text": "关闭", "action": [] } ] } ] }, { "case": "3", "action": [ { "type": "choices", "text": "这里是全部筹码列表", "choices": [ { "text": "肾上腺素-一般", "icon": "AdrenalineR", "action": [ "\t[肾上腺素-一般,AdrenalineR]生命值不高于${125*flags.ratio}时,攻击力+40", { "type": "insert", "name": "记事本" } ] }, { "text": "肾上腺素-高效", "icon": "AdrenalineH", "action": [ "\t[肾上腺素-高效,AdrenalineH]生命值不高于${125*flags.ratio}时,攻击力+160", { "type": "insert", "name": "记事本" } ] }, { "text": "星币锤", "icon": "StarCoinHammer", "action": [ "\t[星币锤,StarCoinHammer]获得7点\\i[BuffStarlight],每场战斗消耗自身8%的金币,伤害计算时提升消耗金币一半的攻击力(先扣除金币再计算战后获得的金币)\n星光\\i[BuffStarlight]:每3场战斗后,获得星光层数*道具倍率的金币\n持有星光时开始计算战斗次数\n\r[#66FFCC]下一场战斗将会消耗${Math.floor(hero.money*2/25)}金币,并提升${Math.floor(hero.money/25)}攻击力\n${3-flags.star.count}场战斗后,获得${flags.star.level*flags.ratio}金币", { "type": "insert", "name": "记事本" } ] }, { "text": "医疗箱-紧急治疗", "icon": "MedicalKitE", "action": [ "\t[医疗箱-紧急治疗,MedicalKitE]每场战斗后,获得12层\\i[BuffHealth]\n治愈\\i[BuffHealth]:每场战斗后,回复治愈层数的生命值,并且治愈层数减少40%\n\r[#66FFCC]目前战斗后回复${flags.health.count+flags.health.upbuff}生命值,之后层数减少至${Math.floor((flags.health.count+flags.health.upbuff)*3/5)}", { "type": "insert", "name": "记事本" } ] }, { "text": "医疗箱-完备治疗", "icon": "MedicalKitC", "action": [ "\t[医疗箱-完备治疗,MedicalKitC]每场战斗后,获得30层\\i[BuffHealth]\n治愈\\i[BuffHealth]:每场战斗后,回复治愈层数的生命值,并且治愈层数减少40%\n\r[#66FFCC]目前战斗后回复${flags.health.count+flags.health.upbuff}生命值,之后层数减少至${Math.floor((flags.health.count+flags.health.upbuff)*3/5)}", { "type": "insert", "name": "记事本" } ] }, { "text": "上一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "2" }, { "type": "insert", "name": "记事本" } ] }, { "text": "下一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "4" }, { "type": "insert", "name": "记事本" } ] }, { "text": "关闭", "action": [] } ] } ] }, { "case": "4", "action": [ { "type": "choices", "text": "这里是全部筹码列表", "choices": [ { "text": "会员推荐信-一般", "icon": "MembershipLetterB", "action": [ "\t[会员推荐信-一般,MembershipLetterB]商店价格-15%", { "type": "insert", "name": "记事本" } ] }, { "text": "会员推荐信-高级", "icon": "MembershipLetterV", "action": [ "\t[会员推荐信-高级,MembershipLetterV]商店价格-25%", { "type": "insert", "name": "记事本" } ] }, { "text": "小猪存钱罐", "icon": "PiggyBank", "action": [ "\t[小猪存钱罐,PiggyBank]在商店购物后,返还${flags.ratio}倍\\i[BuffStarlight]的金币(当前为${flags.star.level*flags.ratio})\n星光\\i[BuffStarlight]:每3场战斗后,获得星光层数*道具倍率的金币\n持有星光时开始计算战斗次数\n\r[#66FFCC]${3-flags.star.count}场战斗后,获得${flags.star.level*flags.ratio}金币", { "type": "insert", "name": "记事本" } ] }, { "text": "手电筒-强光", "icon": "FlashlightB", "action": [ "\t[手电筒-强光,FlashlightB]获得星光奖励时,获得1层\\i[BuffStarlight]\n星光\\i[BuffStarlight]:每3场战斗后,获得星光层数*道具倍率的金币\n持有星光时开始计算战斗次数\n\r[#66FFCC]${3-flags.star.count}场战斗后,获得${flags.star.level*flags.ratio}金币", { "type": "insert", "name": "记事本" } ] }, { "text": "手电筒-爆闪", "icon": "FlashlightS", "action": [ "\t[手电筒-爆闪,FlashlightS]获得2层\\i[BuffStarlight],伤害计算时攻击力提升\\i[BuffStarlight]层数\n星光\\i[BuffStarlight]:每3场战斗后,获得星光层数*道具倍率的金币\n持有星光时开始计算战斗次数\n\r[#66FFCC]${3-flags.star.count}场战斗后,获得${flags.star.level*flags.ratio}金币", { "type": "insert", "name": "记事本" } ] }, { "text": "上一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "3" }, { "type": "insert", "name": "记事本" } ] }, { "text": "下一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "5" }, { "type": "insert", "name": "记事本" } ] }, { "text": "关闭", "action": [] } ] } ] }, { "case": "5", "action": [ { "type": "choices", "text": "这里是全部筹码列表", "choices": [ { "text": "维生素药丸", "icon": "VitaminPills", "action": [ "\t[维生素药丸,VitaminPills]每次在商店购物获得8层\\i[BuffHealth]\n治愈\\i[BuffHealth]:每场战斗后,回复治愈层数的生命值,并且治愈层数减少40%\n\r[#66FFCC]目前战斗后回复${flags.health.count+flags.health.upbuff}生命值,之后层数减少至${Math.floor((flags.health.count+flags.health.upbuff)*3/5)}", { "type": "insert", "name": "记事本" } ] }, { "text": "友情徽章", "icon": "FriendshipBadge", "action": [ "\t[友情徽章,FriendshipBadge]与商人进行交易时可消耗\\i[BuffStarlight]获得商品\n星光\\i[BuffStarlight]:每3场战斗后,获得星光层数*道具倍率的金币\n持有星光时开始计算战斗次数\n当你耗尽星光时,战斗计数器会暂停,直到你重新获得星光\n\r[#66FFCC]${3-flags.star.count}场战斗后,获得${flags.star.level*flags.ratio}金币", { "type": "insert", "name": "记事本" } ] }, { "text": "美工刀-一般", "icon": "UtilityKnifeB", "action": [ "\t[美工刀-一般,UtilityKnifeB]攻击力+10,伤害计算时攻击力提升\\i[BuffHealth]层数\n治愈\\i[BuffHealth]:每场战斗后,回复治愈层数的生命值,并且治愈层数减少40%\n\r[#66FFCC]下一场战斗攻击力提升${flags.health.count}\n战斗后回复${flags.health.count+flags.health.upbuff}生命值,之后层数减少至${Math.floor((flags.health.count+flags.health.upbuff)*3/5)}", { "type": "insert", "name": "记事本" } ] }, { "text": "美工刀-锋利", "icon": "UtilityKnifeS", "action": [ "\t[美工刀-锋利,UtilityKnifeS]攻击力+30,伤害计算时攻击力提升\\i[BuffHealth]层数\n治愈\\i[BuffHealth]:每场战斗后,回复治愈层数的生命值,并且治愈层数减少40%\n\r[#66FFCC]下一场战斗攻击力提升${flags.health.count}\n战斗后回复${flags.health.count+flags.health.upbuff}生命值,之后层数减少至${Math.floor((flags.health.count+flags.health.upbuff)*3/5)}", { "type": "insert", "name": "记事本" } ] }, { "text": "速度轮滑", "icon": "RollerSkates", "action": [ "\t[速度轮滑,RollerSkates]获得二连击效果", { "type": "insert", "name": "记事本" } ] }, { "text": "上一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "4" }, { "type": "insert", "name": "记事本" } ] }, { "text": "下一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "6" }, { "type": "insert", "name": "记事本" } ] }, { "text": "关闭", "action": [] } ] } ] }, { "case": "6", "action": [ { "type": "choices", "text": "这里是全部筹码列表", "choices": [ { "text": "夹心饼干-美味", "icon": "SandwichCookieD", "action": [ "\t[夹心饼干-美味,SandwichCookieD]生命值翻倍后再增加10000生命值(选择该筹码后立刻生效)", { "type": "insert", "name": "记事本" } ] }, { "text": "夹心饼干-可口", "icon": "SandwichCookieT", "action": [ "\t[夹心饼干-可口,SandwichCookieR]生命值+40%后再增加3000生命值(选择该筹码后立刻生效)", { "type": "insert", "name": "记事本" } ] }, { "text": "夹心饼干-一般", "icon": "SandwichCookieR", "action": [ "\t[夹心饼干-一般,SandwichCookieD]生命值+1500(选择该筹码后立刻生效)", { "type": "insert", "name": "记事本" } ] }, { "text": "大背包", "icon": "Backpack", "action": [ "\t[大背包,Backpack]从商人处获得物品时,额外获得一份(包括钥匙回收,不包括战斗筹码)", { "type": "insert", "name": "记事本" } ] }, { "text": "上一页", "action": [ { "type": "setValue", "name": "flag:Gallery", "value": "5" }, { "type": "insert", "name": "记事本" } ] }, { "text": "关闭", "action": [] } ] } ] } ] } ], "回收钥匙商店": [ { "type": "comment", "text": "此事件在全局商店中被引用了(全局商店keyShop)" }, { "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": "switch", "condition": "flags.MapStatus?.Map", "caseList": [ { "case": "\"魔法学院\"", "action": [ { "type": "choices", "text": "\t[阿尔,AL]这些筹码有着对应的价值。\n还是说,你是想要这颗主宰一切的\\i[stars]?\n(购买星星后赠送一个筹码)", "choices": [ { "text": "购买战斗筹码(${(flags.筹码购买次数*(flags.筹码购买次数+1)+2)*6000}G)", "need": "status:money>=6000*(2+flag:筹码购买次数*(flag:筹码购买次数+1))", "action": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "6000*(2+flag:筹码购买次数*(flag:筹码购买次数+1))" }, { "type": "setValue", "name": "flag:筹码购买次数", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "item:battletoken", "operator": "+=", "value": "1" } ] }, { "text": "购买星星(${(4-flags.buyratio)*18000}G)", "need": "status:money>=(4-flags.buyratio)*18000", "condition": "flag:buyratio>0", "action": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "(4-flags.buyratio)*18000" }, { "type": "setValue", "name": "flag:buyratio", "operator": "-=", "value": "1" }, { "type": "setValue", "name": "flag:ratio", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "item:battletoken", "operator": "+=", "value": "1" } ] }, { "text": "下次再来", "action": [] } ] } ] }, { "case": "\"龙宫游乐园\"", "action": [ { "type": "choices", "text": "\t[阿尔,AL]这些筹码有着对应的价值。\n还是说,你是想要这颗主宰一切的\\i[stars]?\n(购买星星后赠送一个筹码)", "choices": [ { "text": "购买战斗筹码(${(1+flags.筹码购买次数)**2*500}G)", "need": "status:money>=(1+flags.筹码购买次数)**2*500", "action": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "(1+flags.筹码购买次数)**2*500" }, { "type": "setValue", "name": "flag:筹码购买次数", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "item:battletoken", "operator": "+=", "value": "1" } ] }, { "text": "购买星星(${500+(4-flag:buyratio)*1500}G)", "need": "status:money>=500+(4-flag:buyratio)*1500", "condition": "flag:buyratio>0", "action": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "500+(4-flag:buyratio)*1500" }, { "type": "setValue", "name": "flag:buyratio", "operator": "-=", "value": "1" }, { "type": "setValue", "name": "flag:ratio", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "item:battletoken", "operator": "+=", "value": "1" } ] }, { "text": "下次再来", "action": [] } ] } ] }, { "case": "default", "action": [ { "type": "choices", "text": "\t[阿尔,AL]这些筹码有着对应的价值。\n还是说,你是想要这颗主宰一切的\\i[stars]?\n(购买星星后赠送一个筹码)", "choices": [ { "text": "购买战斗筹码(${(1+flags.筹码购买次数)*3000}G)", "need": "status:money>=3000*(1+flag:筹码购买次数)", "action": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "3000*(1+flag:筹码购买次数)" }, { "type": "setValue", "name": "flag:筹码购买次数", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "item:battletoken", "operator": "+=", "value": "1" } ] }, { "text": "购买星星(${((4-flags.buyratio)*2+1)*1500}G)", "need": "status:money>=((4-flag:buyratio)*2+1)*1500", "condition": "flag:buyratio>0", "action": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "((4-flag:buyratio)*2+1)*1500" }, { "type": "setValue", "name": "flag:buyratio", "operator": "-=", "value": "1" }, { "type": "setValue", "name": "flag:ratio", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "item:battletoken", "operator": "+=", "value": "1" } ] }, { "text": "下次再来", "action": [] } ] } ] } ] } ], "通用角色点击": [ { "type": "tip", "text": "请选择目标" }, { "type": "while", "condition": "true", "data": [ { "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": "tip", "text": "再次点击闪烁位置确认" }, { "type": "drawSelector", "image": "winskin.png", "code": 1, "x": "32*temp:X", "y": "32*temp:Y", "width": 32, "height": 32 } ] } ] }, { "type": "drawSelector", "code": 1 }, { "type": "function", "function": "function(){\nif (core.getBlockCls(flags.x, flags.y) === \"enemys\") flags.touchenemy = [flags.x, flags.y]\nelse flags.touchenemy = \"failed\"\nif (core.getBlockCls(flags.x, flags.y) === \"items\") flags.touchitem = [flags.x, flags.y]\nelse flags.touchitem = \"failed\"\nif (core.getBlockId(flags.x, flags.y, void 0, true) === null) flags.touchnullblock = [flags.x, flags.y]\nelse flags.touchnullblock = \"failed\"\nif ([\"yellowDoor\", \"blueDoor\", \"redDoor\"].includes(core.getBlockId(flags.x, flags.y, void 0, true))) flags.touchdoor = [flags.x, flags.y]\nelse flags.touchdoor = \"failed\"\n}" } ], "地图遍历检测": [ { "type": "function", "function": "function(){\nlet bool = true\nfor (let fy = 0; fy < 13; fy++) {\n\tfor (let fx = 0; fx < 13; fx++) {\n\t\tif (core.getBlockCls(fx, fy) === \"enemys\") {\n\t\t\tbool = false\n\t\t\tfx = 13\n\t\t\tfy = 13\n\t\t}\n\t}\n}\ncore.setFlag(\"open_yes\", bool)\n}" } ], "卡牌商店": [ { "type": "comment", "text": "玩家说跑路很累我还是决定加一个吧" }, { "type": "comment", "text": "前提是公共事件不会炸录像,炸了还是得扔" }, { "type": "function", "function": "function(){\ncore.plugin.card.drawcardShop()\n}" } ], "自选筹码": [ { "type": "autoSave" }, { "type": "choices", "text": "选择一个战斗筹码", "choices": [ { "text": "银行卡-余额少", "icon": "BankcardL", "action": [ { "type": "function", "function": "function(){\ncore.getItem(\"BankcardL\")\nflags.hasChip.push(\"BankcardL\")\n}" } ] }, { "text": "摩托头盔-一般", "icon": "MotorcycleHelmetB", "action": [ { "type": "function", "function": "function(){\ncore.getItem(\"MotorcycleHelmetB\")\nflags.hasChip.push(\"MotorcycleHelmetB\")\n}" } ] }, { "text": "拳击手套-初级", "icon": "BoxingGlovesB", "action": [ { "type": "function", "function": "function(){\ncore.getItem(\"BoxingGlovesB\")\nflags.hasChip.push(\"BoxingGlovesB\")\n}" } ] }, { "text": "医疗箱-紧急治疗", "icon": "MedicalKitE", "action": [ { "type": "function", "function": "function(){\ncore.getItem(\"MedicalKitE\")\nflags.hasChip.push(\"MedicalKitE\")\n}" } ] }, { "text": "标记喷罐-存量少", "icon": "SprayCanR", "action": [ { "type": "function", "function": "function(){\ncore.getItem(\"SprayCanR\")\nflags.hasChip.push(\"SprayCanR\")\n}" } ] }, { "text": "手持风扇-小", "icon": "HandheldFanS", "action": [ { "type": "function", "function": "function(){\ncore.getItem(\"HandheldFanS\")\nflags.hasChip.push(\"HandheldFanS\")\n}" } ] } ] }, { "type": "update" } ], "龙宫2选1": [ { "type": "if", "condition": "core.isReplaying()", "true": [ { "type": "choices", "text": "你要帮助谁?", "choices": [ { "text": "天川苍鲤", "icon": "Souri", "action": [ { "type": "function", "async": true, "function": "function(){\ncore.ui.choose.souri()\n}" } ] }, { "text": "天川真梦梓", "icon": "Mamushi", "action": [ { "type": "function", "async": true, "function": "function(){\ncore.ui.choose.mamushi()\n}" } ] } ] } ], "false": [ { "type": "function", "async": true, "function": "function(){\ncore.ui.choose.init()\n}" } ] } ], "事件卡商店": [ { "type": "while", "condition": "true", "data": [ { "type": "choices", "text": "\t[抽取事件卡,Magnifier]花费${flags.Magnifier*flags.ratio}星币抽取一张事件卡", "choices": [ { "text": "抽!", "need": "status:money>=flags.Magnifier*flags.ratio", "action": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "flags.Magnifier*flags.ratio" }, { "type": "setValue", "name": "flag:Magnifier", "operator": "+=", "value": "10" }, { "type": "function", "async": true, "function": "function(){\nconst rand = core.plugin.event.eventList[core.randevent()]\ncore.plugin.event.doEvent(rand, core.doAction)\ncore.replay()\n}" } ] }, { "text": "离开", "action": [ { "type": "exit" } ] } ] } ] } ] }, "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 } ] } ] } }