diff --git a/project/data.js b/project/data.js index 430f9cd..6c169f9 100644 --- a/project/data.js +++ b/project/data.js @@ -367,6 +367,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "tawaijiuren.png", "terrains.png", "tiantawai.png", + "tiaojuqing.png", "tr003.jpg", "wangyangdan.png", "wangyangqianxiao.png", diff --git a/project/floors/MT0.js b/project/floors/MT0.js index ad4af97..1c58451 100644 --- a/project/floors/MT0.js +++ b/project/floors/MT0.js @@ -522,101 +522,23 @@ main.floors.MT0= ], "8,8": [ { - "type": "choices", - "text": "是否跳过剧情", - "choices": [ + "type": "if", + "condition": "(core.isReplaying()||flag:SkipThePlot)", + "true": [ { - "text": "是", - "action": [ - { - "type": "hide", - "remove": true, - "time": 500 - }, - { - "type": "setBlock", - "number": "fairy", - "loc": [ - [ - 9, - 6 - ] - ], - "time": 500 - } - ] + "type": "setValue", + "name": "flag:SkipThePlot", + "value": "false" }, { - "text": "否", - "action": [ - { - "type": "sleep", - "time": 1000 - }, - { - "type": "animate", - "name": "sangang", - "loc": "hero" - }, - { - "type": "sleep", - "time": 3000 - }, - { - "type": "showImage2", - "code": 2, - "image": "shaohusikao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - 291, - 466 - ], - "opacity": 1, - "time": 500 - }, - { - "type": "sleep", - "time": 500 - }, - "\t[邵虎]什么人!", - { - "type": "sleep", - "time": 2000 - }, - { - "type": "animate", - "name": "shenglvehao", - "loc": "hero" - }, - { - "type": "sleep", - "time": 3000 - }, - "\t[邵虎]我知道你在那里......快给我出来。", - { - "type": "sleep", - "time": 1000 - }, - { - "type": "playSound", - "name": "magic.mp3", - "stop": true - }, - { - "type": "animate", - "name": "STzhanshen", - "loc": [ - 8, - 6 - ], - "async": true - }, + "type": "hide", + "remove": true, + "time": 500 + }, + { + "type": "if", + "condition": "(core.getBlock(8,6)===null)", + "true": [ { "type": "setBlock", "number": "fairy", @@ -627,230 +549,374 @@ main.floors.MT0= ] ], "time": 500 - }, - { - "type": "sleep", - "time": 2000 - }, - { - "type": "showImage2", - "code": 1, - "image": "xianzileng.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 50, - 320, - 480 - ], - "opacity": 1, - "time": 500 - }, - { - "type": "sleep", - "time": 1000 - }, - "\t[???]................", - { - "type": "sleep", - "time": 2000 - }, - { - "type": "showImage2", - "code": 2, - "image": "shaohuyilv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - 291, - 466 - ], - "opacity": 1, - "time": 500 - }, - "\t[邵虎]........(女孩子!?)", - { - "type": "sleep", - "time": 2000 - }, - { - "type": "showImage2", - "code": 2, - "image": "shaohusikao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - 291, - 466 - ], - "opacity": 1, - "time": 500 - }, - "\t[邵虎]........(漂浮在半空中的女孩子......是妖精吗?)", - { - "type": "sleep", - "time": 1000 - }, - { - "type": "showImage2", - "code": 1, - "image": "xianzi.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 50, - 320, - 480 - ], - "opacity": 1, - "time": 500 - }, - { - "type": "sleep", - "time": 1000 - }, - "\t[???]你......你好.........", - "\t[邵虎]........你是谁........", - "\t[???]我是这座塔的守塔仙子........", - "\t[守塔仙子]邵....啊不.....这位勇士,请你回去吧。塔里过于凶险..........", - "\t[邵虎]谢谢你的好意....不过我还是要进去的。", - "\t[守塔仙子]为什么......这座塔并没有什么宝藏,也不值得你来探索......", - "\t[邵虎]仙子,有些事情是不可以选择的。", - "\t[守塔仙子]啊..............", - "\t[邵虎]有些事情是自己必须要去做的......你明白吗?", - "\t[守塔仙子]你.......你是指.........", - "\t[邵虎]我想守护的人和教我怎样守护别人的人在里面,我怕他们有危险,所以我必须走这一趟。", - { - "type": "showImage2", - "code": 1, - "image": "xianzileng.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 50, - 320, - 480 - ], - "opacity": 1, - "time": 500 - }, - "\t[守塔仙子]是吗......(我也......)", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "animate", - "name": "shenglvehao", - "loc": [ - 8, - 6 - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "xianzileng.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 50, - 320, - 480 - ], - "opacity": 1, - "time": 500 - }, - "\t[守塔仙子](是为了爱的坚持吗......)", - "\t[守塔仙子](我没理由阻拦他呢......)", - { - "type": "showImage2", - "code": 1, - "image": "xianziwunai.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 50, - 320, - 480 - ], - "opacity": 1, - "time": 500 - }, - "\t[守塔仙子]既、既然你一定要进塔的话,一定要小心啊。", - { - "type": "showImage2", - "code": 2, - "image": "shaohuzixin.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - 291, - 466 - ], - "opacity": 1, - "time": 500 - }, - "\t[邵虎]放心。(她好像还有什么想说的?)", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "hideImage", - "code": 2, - "time": 0 - }, - { - "type": "move", - "loc": [ - 8, - 6 - ], - "time": 500, - "keep": true, - "steps": [ - "right:1" - ] } ] + }, + { + "type": "move", + "loc": [ + 8, + 6 + ], + "time": 100, + "keep": true, + "steps": [ + "right:1" + ] + } + ], + "false": [ + { + "type": "showImage2", + "code": 10, + "image": "tiaojuqing.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 700, + 0, + 243, + "71.25" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 400, + 0 + ], + "time": 500 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "true" + }, + { + "type": "sleep", + "time": 1000 + }, + { + "type": "animate", + "name": "sangang", + "loc": "hero" + }, + { + "type": "sleep", + "time": 3000 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + 291, + 466 + ], + "opacity": 1, + "time": 500 + }, + { + "type": "sleep", + "time": 500 + }, + "\t[邵虎]什么人!", + { + "type": "sleep", + "time": 2000 + }, + { + "type": "animate", + "name": "shenglvehao", + "loc": "hero" + }, + { + "type": "sleep", + "time": 3000 + }, + "\t[邵虎]我知道你在那里......快给我出来。", + { + "type": "sleep", + "time": 1000 + }, + { + "type": "playSound", + "name": "magic.mp3", + "stop": true + }, + { + "type": "animate", + "name": "STzhanshen", + "loc": [ + 8, + 6 + ], + "async": true + }, + { + "type": "setBlock", + "number": "fairy", + "loc": [ + [ + 8, + 6 + ] + ], + "time": 500 + }, + { + "type": "sleep", + "time": 2000 + }, + { + "type": "showImage2", + "code": 1, + "image": "xianzileng.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 50, + 320, + 480 + ], + "opacity": 1, + "time": 500 + }, + { + "type": "sleep", + "time": 1000 + }, + "\t[???]................", + { + "type": "sleep", + "time": 2000 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + 291, + 466 + ], + "opacity": 1, + "time": 500 + }, + "\t[邵虎]........(女孩子!?)", + { + "type": "sleep", + "time": 2000 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + 291, + 466 + ], + "opacity": 1, + "time": 500 + }, + "\t[邵虎]........(漂浮在半空中的女孩子......是妖精吗?)", + { + "type": "sleep", + "time": 1000 + }, + { + "type": "showImage2", + "code": 1, + "image": "xianzi.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 50, + 320, + 480 + ], + "opacity": 1, + "time": 500 + }, + { + "type": "sleep", + "time": 1000 + }, + "\t[???]你......你好.........", + "\t[邵虎]........你是谁........", + "\t[???]我是这座塔的守塔仙子........", + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "false" + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 700, + 0 + ], + "time": 500 + }, + { + "type": "hideImage", + "code": 10, + "time": 0 + }, + "\t[守塔仙子]邵....啊不.....这位勇士,请你回去吧。塔里过于凶险..........", + "\t[邵虎]谢谢你的好意....不过我还是要进去的。", + "\t[守塔仙子]为什么......这座塔并没有什么宝藏,也不值得你来探索......", + "\t[邵虎]仙子,有些事情是不可以选择的。", + "\t[守塔仙子]啊..............", + "\t[邵虎]有些事情是自己必须要去做的......你明白吗?", + "\t[守塔仙子]你.......你是指.........", + "\t[邵虎]我想守护的人和教我怎样守护别人的人在里面,我怕他们有危险,所以我必须走这一趟。", + { + "type": "showImage2", + "code": 1, + "image": "xianzileng.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 50, + 320, + 480 + ], + "opacity": 1, + "time": 500 + }, + "\t[守塔仙子]是吗......(我也......)", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "animate", + "name": "shenglvehao", + "loc": [ + 8, + 6 + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "xianzileng.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 50, + 320, + 480 + ], + "opacity": 1, + "time": 500 + }, + "\t[守塔仙子](是为了爱的坚持吗......)", + "\t[守塔仙子](我没理由阻拦他呢......)", + { + "type": "showImage2", + "code": 1, + "image": "xianziwunai.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 50, + 320, + 480 + ], + "opacity": 1, + "time": 500 + }, + "\t[守塔仙子]既、既然你一定要进塔的话,一定要小心啊。", + { + "type": "showImage2", + "code": 2, + "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + 291, + 466 + ], + "opacity": 1, + "time": 500 + }, + "\t[邵虎]放心。(她好像还有什么想说的?)", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "hideImage", + "code": 2, + "time": 0 + }, + { + "type": "move", + "loc": [ + 8, + 6 + ], + "time": 500, + "keep": true, + "steps": [ + "right:1" + ] } ] }, diff --git a/project/floors/MT1.js b/project/floors/MT1.js index 6ad16d9..8225f93 100644 --- a/project/floors/MT1.js +++ b/project/floors/MT1.js @@ -60,202 +60,251 @@ main.floors.MT1= ], "false": [ { - "type": "choices", - "text": "是否跳过剧情", - "choices": [ + "type": "if", + "condition": "(core.isReplaying()||flag:SkipThePlot)", + "true": [ { - "text": "是", - "action": [] + "type": "setValue", + "name": "flag:SkipThePlot", + "value": "false" + } + ], + "false": [ + { + "type": "showImage2", + "code": 10, + "image": "tiaojuqing.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 700, + 0, + 243, + "71.25" + ], + "opacity": 1, + "time": 0 }, { - "text": "否", - "action": [ - { - "type": "showImage2", - "code": 1, - "image": "npcnan.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "304.8", - "432.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[老人]刚进塔来的吗.......雪儿放你进来的?", - { - "type": "showImage2", - "code": 1, - "image": "npcnan.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "304.8", - "432.8" - ], - "opacity": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 2, - "image": "shaohuyilv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - "291.2", - "466.4" - ], - "opacity": 1, - "time": 0 - }, - "\t[邵虎]雪儿?那个仙子吗........?", - "\t[老人]...............", - "\t[老人]不要问不该问的,这对你没有好处.......", - { - "type": "showImage2", - "code": 1, - "image": "npcnan.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "304.8", - "432.8" - ], - "opacity": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 2, - "image": "shaohusikao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - "291.2", - "466.4" - ], - "opacity": 1, - "time": 0 - }, - "\t[邵虎]请问您是........?", - "\t[老人]老朽只是一个塔里的闲人罢了..................", - "\t[邵虎]您在这么危险的地方.....一定有原因吧?", - "\t[老人]不愧是雪儿放进来的人呢........你说的没错,自从我儿子进塔再也没回来以后......我就一直在这里了。", - { - "type": "showImage2", - "code": 1, - "image": "npcnan.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "304.8", - "432.8" - ], - "opacity": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 2, - "image": "shaohuyilv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - "291.2", - "466.4" - ], - "opacity": 1, - "time": 0 - }, - "\t[邵虎]您...您儿子..!?", - "\t[邵虎]冒犯了......他怎么会来这种地方......", - "\t[老人]我不想多说......这里涉及的东西太多........你一个外人还是少知道点好........", - { - "type": "showImage2", - "code": 1, - "image": "npcnan.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "304.8", - "432.8" - ], - "opacity": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 2, - "image": "shaohusikao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - "291.2", - "466.4" - ], - "opacity": 1, - "time": 0 - }, - "\t[邵虎]..............(在意)", - "\t[老人]不必在意,老头子活的时间长了..........老会胡思乱想一些东西。", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "hideImage", - "code": 2, - "time": 0 - } - ] + "type": "moveImage", + "code": 10, + "to": [ + 400, + 0 + ], + "time": 500 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "true" + }, + { + "type": "showImage2", + "code": 1, + "image": "npcnan.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "304.8", + "432.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[老人]刚进塔来的吗.......雪儿放你进来的?", + { + "type": "showImage2", + "code": 1, + "image": "npcnan.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "304.8", + "432.8" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + "291.2", + "466.4" + ], + "opacity": 1, + "time": 0 + }, + "\t[邵虎]雪儿?那个仙子吗........?", + "\t[老人]...............", + "\t[老人]不要问不该问的,这对你没有好处.......", + { + "type": "showImage2", + "code": 1, + "image": "npcnan.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "304.8", + "432.8" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + "291.2", + "466.4" + ], + "opacity": 1, + "time": 0 + }, + "\t[邵虎]请问您是........?", + "\t[老人]老朽只是一个塔里的闲人罢了..................", + "\t[邵虎]您在这么危险的地方.....一定有原因吧?", + "\t[老人]不愧是雪儿放进来的人呢........你说的没错,自从我儿子进塔再也没回来以后......我就一直在这里了。", + { + "type": "showImage2", + "code": 1, + "image": "npcnan.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "304.8", + "432.8" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + "291.2", + "466.4" + ], + "opacity": 1, + "time": 0 + }, + "\t[邵虎]您...您儿子..!?", + "\t[邵虎]冒犯了......他怎么会来这种地方......", + "\t[老人]我不想多说......这里涉及的东西太多........你一个外人还是少知道点好........", + { + "type": "showImage2", + "code": 1, + "image": "npcnan.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "304.8", + "432.8" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + "291.2", + "466.4" + ], + "opacity": 1, + "time": 0 + }, + "\t[邵虎]..............(在意)", + "\t[老人]不必在意,老头子活的时间长了..........老会胡思乱想一些东西。", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "hideImage", + "code": 2, + "time": 0 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "false" + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 700, + 0 + ], + "time": 500 + }, + { + "type": "hideImage", + "code": 10, + "time": 0 } ] }, diff --git a/project/floors/MT10.js b/project/floors/MT10.js index f26fb8c..1da96a8 100644 --- a/project/floors/MT10.js +++ b/project/floors/MT10.js @@ -16,213 +16,261 @@ main.floors.MT10= "name": "misjiqing.mp3" }, { - "type": "choices", - "text": "是否跳过剧情", - "choices": [ + "type": "if", + "condition": "(core.isReplaying()||flag:SkipThePlot)", + "true": [ { - "text": "是", - "action": [ - { - "type": "setValue", - "name": "flag:skip10FStory", - "value": "1" - }, - { - "type": "hide", - "time": 0 - }, - { - "type": "trigger", - "loc": [ - 1, - 0 - ] - } - ] + "type": "setValue", + "name": "flag:SkipThePlot", + "value": "false" }, { - "text": "否", - "action": [ - { - "type": "sleep", - "time": 1000 - }, - { - "type": "showImage2", - "code": 1, - "image": "kulouzhanshi.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 100, - 70, - "333.6", - 444 - ], - "opacity": 1, - "time": 0 - }, - "\t[嗜骨].........", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨].........(咽口水)", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]......来......来了你.......", - { - "type": "sleep", - "time": 1000 - }, - "\t[嗜骨]就....就.......就算你来了........也不ー定能赢我.......!!", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]拼了!!!(该死的守塔仙子放进来了个什么怪物.......我哭。。。)", - { - "type": "sleep", - "time": 1000 - }, - { - "type": "showImage2", - "code": 2, - "image": "shaohuzixin.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 300, - 50, - "291.2", - "466.4" - ], - "opacity": 1, - "time": 0 - }, - "\t[邵虎]等一下。", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]??你不杀我了吗......", - "\t[嗜骨]啊不对.......你不和我打了吗??", - { - "type": "sleep", - "time": 1000 - }, - "\t[邵虎]你是不是知道公主殿下的位置。", - { - "type": "sleep", - "time": 1500 - }, - "\t[嗜骨]........................", - { - "type": "sleep", - "time": 1000 - }, - "\t[嗜骨]........................", - { - "type": "sleep", - "time": 1500 - }, - "\t[邵虎]你就说知道不知道。", - { - "type": "sleep", - "time": 1000 - }, - "\t[嗜骨]........................", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]....................不", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨].......不知............", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]...................如果我说了的话...你可不可以放过我啊........", - "\t[邵虎]当然,看你的态度可以。", - { - "type": "sleep", - "time": 1000 - }, - "\t[邵虎]但是,你得把上面的给你传达的消息。一字不漏的全都告诉我。当然也包括公主的位置。", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]........这好办.....我........", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]..........其实.......", - { - "type": "sleep", - "time": 2000 - }, - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "hideImage", - "code": 2, - "time": 0 - }, - { - "type": "setVolume", - "value": 0, - "time": 1000 - }, - { - "type": "setVolume", - "value": 100, - "time": 500 - }, - { - "type": "playBgm", - "name": "longyingsuifeng.mp3" - }, - { - "type": "hide", - "time": 0 - }, - { - "type": "function", - "function": "function(){\ncore.maskPrepare();\n}" - }, - { - "type": "changeFloor", - "floorId": "huxiao1", - "loc": [ - 0, - -1 - ], - "time": 0 - }, - { - "type": "trigger", - "loc": [ - 1, - 0 - ] - } + "type": "setValue", + "name": "flag:skip10FStory", + "value": "1" + }, + { + "type": "hide", + "time": 0 + }, + { + "type": "trigger", + "loc": [ + 1, + 0 + ] + } + ], + "false": [ + { + "type": "showImage2", + "code": 10, + "image": "tiaojuqing.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 700, + 0, + 243, + "71.25" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 400, + 0 + ], + "time": 500 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "true" + }, + { + "type": "sleep", + "time": 1000 + }, + { + "type": "showImage2", + "code": 1, + "image": "kulouzhanshi.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 100, + 70, + "333.6", + 444 + ], + "opacity": 1, + "time": 0 + }, + "\t[嗜骨].........", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨].........(咽口水)", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]......来......来了你.......", + { + "type": "sleep", + "time": 1000 + }, + "\t[嗜骨]就....就.......就算你来了........也不ー定能赢我.......!!", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]拼了!!!(该死的守塔仙子放进来了个什么怪物.......我哭。。。)", + { + "type": "sleep", + "time": 1000 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 300, + 50, + "291.2", + "466.4" + ], + "opacity": 1, + "time": 0 + }, + "\t[邵虎]等一下。", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]??你不杀我了吗......", + "\t[嗜骨]啊不对.......你不和我打了吗??", + { + "type": "sleep", + "time": 1000 + }, + "\t[邵虎]你是不是知道公主殿下的位置。", + { + "type": "sleep", + "time": 1500 + }, + "\t[嗜骨]........................", + { + "type": "sleep", + "time": 1000 + }, + "\t[嗜骨]........................", + { + "type": "sleep", + "time": 1500 + }, + "\t[邵虎]你就说知道不知道。", + { + "type": "sleep", + "time": 1000 + }, + "\t[嗜骨]........................", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]....................不", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨].......不知............", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]...................如果我说了的话...你可不可以放过我啊........", + "\t[邵虎]当然,看你的态度可以。", + { + "type": "sleep", + "time": 1000 + }, + "\t[邵虎]但是,你得把上面的给你传达的消息。一字不漏的全都告诉我。当然也包括公主的位置。", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]........这好办.....我........", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]..........其实.......", + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "false" + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 700, + 0 + ], + "time": 500 + }, + { + "type": "hideImage", + "code": 10, + "time": 0 + }, + { + "type": "sleep", + "time": 2000 + }, + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "hideImage", + "code": 2, + "time": 0 + }, + { + "type": "setVolume", + "value": 0, + "time": 1000 + }, + { + "type": "setVolume", + "value": 100, + "time": 500 + }, + { + "type": "playBgm", + "name": "longyingsuifeng.mp3" + }, + { + "type": "hide", + "time": 0 + }, + { + "type": "function", + "function": "function(){\ncore.maskPrepare();\n}" + }, + { + "type": "changeFloor", + "floorId": "huxiao1", + "loc": [ + 0, + -1 + ], + "time": 0 + }, + { + "type": "trigger", + "loc": [ + 1, + 0 ] } ] diff --git a/project/floors/MT5.js b/project/floors/MT5.js index 4166a8f..1d4dac1 100644 --- a/project/floors/MT5.js +++ b/project/floors/MT5.js @@ -21,827 +21,915 @@ main.floors.MT5= "6,5": null, "1,0": [ { - "type": "choices", - "text": "是否跳过剧情", - "choices": [ + "type": "if", + "condition": "(core.isReplaying()||flag:SkipThePlot)", + "true": [ { - "text": "是", - "action": [ - { - "type": "setBlock", - "number": "354", - "loc": [ - [ - 4, - 4 - ] - ] - }, - { - "type": "hide", - "loc": [ - [ - 4, - 2 - ] - ], - "time": 0 - }, - { - "type": "hide", - "loc": [ - [ - 7, - 5 - ] - ], - "time": 0 - }, - { - "type": "hide", - "loc": [ - [ - 6, - 4 - ] - ], - "time": 0 - } + "type": "setValue", + "name": "flag:SkipThePlot", + "value": "false" + }, + { + "type": "setBlock", + "number": "354", + "loc": [ + [ + 4, + 4 + ] ] }, { - "text": "否", - "action": [ - { - "type": "playBgm", - "name": "linghaihuanxin.mp3" - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekezixin.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???].........", - "\t[???]嘿嘿.......", - "\t[???]到底在哪呢.......", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "move", - "loc": [ - 7, - 5 - ], - "time": 500, - "keep": true, - "steps": [ - "left:1" - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekexiaohei.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???].......会不会在这里.....", - "\t[???]............", - "\t[???]..........一定就在这里!!", - "\t[???]至于黄门么.........呵呵........", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekedajiao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]老子开门从来不用钥匙!!", - "\t[???]看本大爷的拆.门.镐!!", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "animate", - "name": "jian", - "loc": [ - 6, - 4 - ] - }, - { - "type": "hide", - "loc": [ - [ - 6, - 4 - ] - ], - "time": 0 - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekezixin.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]轻轻松松....轻轻松松~~", - "\t[???]这里面.....真激动啊.........", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "move", - "loc": [ - 6, - 5 - ], - "time": 500, - "keep": true, - "steps": [ - "up:2" - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekeyilv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]诶!?又一个黄门?", - "\t[???]我这次只做了一个拆门镐啊.........", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekezixin.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]这么简单的事...........", - "\t[???]用刚刚开发出来的化墙水看看好了......", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "move", - "loc": [ - 6, - 3 - ], - "time": 500, - "keep": true, - "steps": [ - "left:1" - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekeyilv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]让我看看......先在墙上转一个洞.......", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "animate", - "name": "shenglvehao", - "loc": [ - 5, - 3 - ] - }, - { - "type": "animate", - "name": "luanma", - "loc": [ - 5, - 3 - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekeyilv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]化墙水怎么用的来着.........刚做出来就忘了,瞧我这记性......", - "\t[???]嗯........(嘀嘀咕咕嘀嘀咕咕)", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "setVolume", - "value": 0, - "time": 1000 - }, - { - "type": "setVolume", - "value": 100, - "time": 500 - }, - { - "type": "playBgm", - "name": "xueyi.mp3" - }, - { - "type": "setBlock", - "number": "209", - "loc": [ - [ - 6, - 3 - ] - ] - }, - { - "type": "show", - "loc": [ - [ - 6, - 3 - ] - ], - "time": 2000 - }, - { - "type": "playSound", - "name": "se83.mp3" - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekezixin.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]什么声音..........?", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "playSound", - "name": "se83.mp3" - }, - { - "type": "jump", - "from": [ - 4, - 3 - ], - "to": [ - 4, - 3 - ], - "time": 500, - "keep": true - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekedajiao2.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]啊啊啊啊........骷髅人!", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "move", - "loc": [ - 5, - 3 - ], - "time": 500, - "keep": true, - "steps": [ - "left:1" - ] - }, - { - "type": "move", - "loc": [ - 6, - 3 - ], - "time": 500, - "keep": true, - "steps": [ - "left:1" - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekedajiao2.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]镇定,镇定", - "\t[???](妈的见鬼了。。)", - "\t[???]骷髅人....骷髅人......", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "animate", - "name": "gantanhao", - "loc": [ - 4, - 3 - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekexiaohei.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]对了,骷髅人什么的,不死系我都不怕的!", - "\t[???]前两天研究出来的驱尸粉~~~!!", - "\t[???]嘿嘿.......", - { - "type": "playSound", - "name": "se83.mp3" - }, - "\t[???]告诉你小骷髅,赶快给大爷滚,我还能饶你一条命", - { - "type": "playSound", - "name": "se83.mp3" - }, - "\t[???]别敬酒不吃吃罚酒哦~小骷髅~!!", - "\t[???]看来你是执迷不悟了..........看我的驱尸粉!", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "playSound", - "name": "se20.mp3" - }, - { - "type": "animate", - "name": "qushi", - "loc": [ - 5, - 3 - ] - }, - { - "type": "sleep", - "time": 1000 - }, - { - "type": "animate", - "name": "wenhao", - "loc": [ - 5, - 3 - ] - }, - { - "type": "playSound", - "name": "se83.mp3" - }, - { - "type": "animate", - "name": "fanu", - "loc": [ - 5, - 3 - ] - }, - { - "type": "sleep", - "time": 500 - }, - { - "type": "playSound", - "name": "se83.mp3" - }, - { - "type": "playSound", - "name": "se83.mp3" - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekeyilv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]哈?", - "\t[???]这...这啥反应?", - "\t[???]不行.........再这样下去就被它弄死了", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekedajiao2.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]只有用绝招了吗!", - "\t[???]破墙镐!!!破墙神器!!成功率100%!", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "animate", - "name": "jian", - "loc": [ - 4, - 2 - ] - }, - { - "type": "hide", - "loc": [ - [ - 4, - 2 - ] - ], - "time": 0 - }, - { - "type": "move", - "loc": [ - 4, - 3 - ], - "time": 100, - "keep": true, - "steps": [ - "up:2" - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekedajiao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]呼哈.......(心疼.....)", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "animate", - "name": "sangang", - "loc": [ - 6, - 1 - ] - }, - { - "type": "move", - "loc": [ - 6, - 1 - ], - "time": 500, - "keep": true, - "steps": [ - "left:1" - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekedajiao2.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]初级法师我靠。。。。。天要绝我吗?", - "\t[???]只有一个化墙水...赌一把了!!", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "move", - "loc": [ - 4, - 1 - ], - "time": 100, - "keep": true, - "steps": [ - "down:2" - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "jiekedajiao2.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "289.6", - "376.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[???]呀!!!(不知道效果好不好。。)", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "animate", - "name": "quxifen", - "loc": [ - 4, - 4 - ] - }, - { - "type": "setBlock", - "number": "354", - "loc": [ - [ - 4, - 4 - ] - ] - }, - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "move", - "loc": [ - 4, - 3 - ], - "time": 100, - "steps": [ - "down:8" - ] - }, - { - "type": "move", - "loc": [ - 5, - 3 - ], - "time": 100, - "steps": [ - "left:1", - "down:8" - ] - }, - { - "type": "setVolume", - "value": 0, - "time": 1000 - }, - "\t[???]救命啊!!!TxT", - { - "type": "playBgm", - "name": "xingkong.mp3" - }, - { - "type": "setVolume", - "value": 100, - "time": 500 - } + "type": "hide", + "loc": [ + [ + 4, + 2 + ] + ], + "time": 0 + }, + { + "type": "hide", + "loc": [ + [ + 7, + 5 + ] + ], + "time": 0 + }, + { + "type": "hide", + "loc": [ + [ + 6, + 4 + ] + ], + "time": 0 + }, + { + "type": "hide", + "loc": [ + [ + 6, + 5 + ] + ], + "time": 0 + }, + { + "type": "hide", + "loc": [ + [ + 6, + 3 + ] + ], + "time": 0 + }, + { + "type": "hide", + "loc": [ + [ + 5, + 3 + ] + ], + "time": 0 + }, + { + "type": "hide", + "loc": [ + [ + 4, + 3 + ] + ], + "time": 0 + } + ], + "false": [ + { + "type": "showImage2", + "code": 10, + "image": "tiaojuqing.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 700, + 0, + 243, + "71.25" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 400, + 0 + ], + "time": 500 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "true" + }, + { + "type": "playBgm", + "name": "linghaihuanxin.mp3" + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???].........", + "\t[???]嘿嘿.......", + "\t[???]到底在哪呢.......", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "move", + "loc": [ + 7, + 5 + ], + "time": 500, + "keep": true, + "steps": [ + "left:1" ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???].......会不会在这里.....", + "\t[???]............", + "\t[???]..........一定就在这里!!", + "\t[???]至于黄门么.........呵呵........", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekedajiao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]老子开门从来不用钥匙!!", + "\t[???]看本大爷的拆.门.镐!!", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "animate", + "name": "jian", + "loc": [ + 6, + 4 + ] + }, + { + "type": "hide", + "loc": [ + [ + 6, + 4 + ] + ], + "time": 0 + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]轻轻松松....轻轻松松~~", + "\t[???]这里面.....真激动啊.........", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "move", + "loc": [ + 6, + 5 + ], + "time": 500, + "keep": true, + "steps": [ + "up:2" + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]诶!?又一个黄门?", + "\t[???]我这次只做了一个拆门镐啊.........", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]这么简单的事...........", + "\t[???]用刚刚开发出来的化墙水看看好了......", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "move", + "loc": [ + 6, + 3 + ], + "time": 500, + "keep": true, + "steps": [ + "left:1" + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]让我看看......先在墙上转一个洞.......", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "animate", + "name": "shenglvehao", + "loc": [ + 5, + 3 + ] + }, + { + "type": "animate", + "name": "luanma", + "loc": [ + 5, + 3 + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]化墙水怎么用的来着.........刚做出来就忘了,瞧我这记性......", + "\t[???]嗯........(嘀嘀咕咕嘀嘀咕咕)", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "false" + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 700, + 0 + ], + "time": 500 + }, + { + "type": "hideImage", + "code": 10, + "time": 0 + }, + { + "type": "setVolume", + "value": 0, + "time": 1000 + }, + { + "type": "setVolume", + "value": 100, + "time": 500 + }, + { + "type": "playBgm", + "name": "xueyi.mp3" + }, + { + "type": "setBlock", + "number": "209", + "loc": [ + [ + 6, + 3 + ] + ] + }, + { + "type": "show", + "loc": [ + [ + 6, + 3 + ] + ], + "time": 2000 + }, + { + "type": "playSound", + "name": "se83.mp3" + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]什么声音..........?", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "playSound", + "name": "se83.mp3" + }, + { + "type": "jump", + "from": [ + 4, + 3 + ], + "to": [ + 4, + 3 + ], + "time": 500, + "keep": true + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]啊啊啊啊........骷髅人!", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "move", + "loc": [ + 5, + 3 + ], + "time": 500, + "keep": true, + "steps": [ + "left:1" + ] + }, + { + "type": "move", + "loc": [ + 6, + 3 + ], + "time": 500, + "keep": true, + "steps": [ + "left:1" + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]镇定,镇定", + "\t[???](妈的见鬼了。。)", + "\t[???]骷髅人....骷髅人......", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "animate", + "name": "gantanhao", + "loc": [ + 4, + 3 + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]对了,骷髅人什么的,不死系我都不怕的!", + "\t[???]前两天研究出来的驱尸粉~~~!!", + "\t[???]嘿嘿.......", + { + "type": "playSound", + "name": "se83.mp3" + }, + "\t[???]告诉你小骷髅,赶快给大爷滚,我还能饶你一条命", + { + "type": "playSound", + "name": "se83.mp3" + }, + "\t[???]别敬酒不吃吃罚酒哦~小骷髅~!!", + "\t[???]看来你是执迷不悟了..........看我的驱尸粉!", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "playSound", + "name": "se20.mp3" + }, + { + "type": "animate", + "name": "qushi", + "loc": [ + 5, + 3 + ] + }, + { + "type": "sleep", + "time": 1000 + }, + { + "type": "animate", + "name": "wenhao", + "loc": [ + 5, + 3 + ] + }, + { + "type": "playSound", + "name": "se83.mp3" + }, + { + "type": "animate", + "name": "fanu", + "loc": [ + 5, + 3 + ] + }, + { + "type": "sleep", + "time": 500 + }, + { + "type": "playSound", + "name": "se83.mp3" + }, + { + "type": "playSound", + "name": "se83.mp3" + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]哈?", + "\t[???]这...这啥反应?", + "\t[???]不行.........再这样下去就被它弄死了", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]只有用绝招了吗!", + "\t[???]破墙镐!!!破墙神器!!成功率100%!", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "animate", + "name": "jian", + "loc": [ + 4, + 2 + ] + }, + { + "type": "hide", + "loc": [ + [ + 4, + 2 + ] + ], + "time": 0 + }, + { + "type": "move", + "loc": [ + 4, + 3 + ], + "time": 100, + "keep": true, + "steps": [ + "up:2" + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekedajiao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]呼哈.......(心疼.....)", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "animate", + "name": "sangang", + "loc": [ + 6, + 1 + ] + }, + { + "type": "move", + "loc": [ + 6, + 1 + ], + "time": 500, + "keep": true, + "steps": [ + "left:1" + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]初级法师我靠。。。。。天要绝我吗?", + "\t[???]只有一个化墙水...赌一把了!!", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "move", + "loc": [ + 4, + 1 + ], + "time": 100, + "keep": true, + "steps": [ + "down:2" + ] + }, + { + "type": "showImage2", + "code": 1, + "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "289.6", + "376.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[???]呀!!!(不知道效果好不好。。)", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "animate", + "name": "quxifen", + "loc": [ + 4, + 4 + ] + }, + { + "type": "setBlock", + "number": "354", + "loc": [ + [ + 4, + 4 + ] + ] + }, + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "move", + "loc": [ + 4, + 3 + ], + "time": 100, + "steps": [ + "down:8" + ] + }, + { + "type": "move", + "loc": [ + 5, + 3 + ], + "time": 100, + "steps": [ + "left:1", + "down:8" + ] + }, + { + "type": "setVolume", + "value": 0, + "time": 1000 + }, + "\t[???]救命啊!!!TxT", + { + "type": "playBgm", + "name": "xingkong.mp3" + }, + { + "type": "setVolume", + "value": 100, + "time": 500 } ] }, diff --git a/project/floors/MT6.js b/project/floors/MT6.js index 05586aa..fffc911 100644 --- a/project/floors/MT6.js +++ b/project/floors/MT6.js @@ -46,72 +46,121 @@ main.floors.MT6= ], "false": [ { - "type": "choices", - "text": "是否跳过剧情", - "choices": [ + "type": "if", + "condition": "(core.isReplaying()||flag:SkipThePlot)", + "true": [ { - "text": "是", - "action": [] + "type": "setValue", + "name": "flag:SkipThePlot", + "value": "false" + } + ], + "false": [ + { + "type": "showImage2", + "code": 10, + "image": "tiaojuqing.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 700, + 0, + 243, + "71.25" + ], + "opacity": 1, + "time": 0 }, { - "text": "否", - "action": [ - { - "type": "showImage2", - "code": 1, - "image": "npcnan.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "304.8", - "432.8" - ], - "opacity": 1, - "time": 0 - }, - "\t[老人]我怎么不认识你.........你是镇天谷的人吗?", - { - "type": "showImage2", - "code": 2, - "image": "shaohusikao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - "291.2", - "466.4" - ], - "opacity": 1, - "time": 0 - }, - "\t[邵虎]镇...镇天谷?", - "\t[老人]........", - "\t[邵虎]抱歉,我不是镇天谷的人", - "\t[老人]是吗......不是镇天谷的人也可以到这个塔里来嘛......时代真是变了......呵呵", - "\t[邵虎].........请问..........镇天谷与这座塔有什么关系吗?", - "\t[老人]顾名思义啊........镇天,意为震慑天塔.....", - "\t[邵虎]......啊.........", - "\t[老人]呵呵......很吃惊吗?不过也不能怪你......如今这世道知道天塔是为何修建的人已经太少了......", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "hideImage", - "code": 2, - "time": 0 - } - ] + "type": "moveImage", + "code": 10, + "to": [ + 400, + 0 + ], + "time": 500 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "true" + }, + { + "type": "showImage2", + "code": 1, + "image": "npcnan.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "304.8", + "432.8" + ], + "opacity": 1, + "time": 0 + }, + "\t[老人]我怎么不认识你.........你是镇天谷的人吗?", + { + "type": "showImage2", + "code": 2, + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + "291.2", + "466.4" + ], + "opacity": 1, + "time": 0 + }, + "\t[邵虎]镇...镇天谷?", + "\t[老人]........", + "\t[邵虎]抱歉,我不是镇天谷的人", + "\t[老人]是吗......不是镇天谷的人也可以到这个塔里来嘛......时代真是变了......呵呵", + "\t[邵虎].........请问..........镇天谷与这座塔有什么关系吗?", + "\t[老人]顾名思义啊........镇天,意为震慑天塔.....", + "\t[邵虎]......啊.........", + "\t[老人]呵呵......很吃惊吗?不过也不能怪你......如今这世道知道天塔是为何修建的人已经太少了......", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "hideImage", + "code": 2, + "time": 0 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "false" + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 700, + 0 + ], + "time": 500 + }, + { + "type": "hideImage", + "code": 10, + "time": 0 } ] }, diff --git a/project/floors/MT7.js b/project/floors/MT7.js index c1adde2..6dcc344 100644 --- a/project/floors/MT7.js +++ b/project/floors/MT7.js @@ -22,71 +22,139 @@ main.floors.MT7= "value": "1" }, { - "type": "choices", - "text": "是否跳过剧情", - "choices": [ + "type": "if", + "condition": "(core.isReplaying()||flag:SkipThePlot)", + "true": [ { - "text": "是", - "action": [] + "type": "setValue", + "name": "flag:SkipThePlot", + "value": "false" + } + ], + "false": [ + { + "type": "showImage2", + "code": 10, + "image": "tiaojuqing.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 700, + 0, + 243, + "71.25" + ], + "opacity": 1, + "time": 0 }, { - "text": "否", - "action": [ - { - "type": "showImage2", - "code": 1, - "image": "npcnv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "287.2", - "417.6" - ], - "opacity": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 1, - "image": "npcnv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "287.2", - "417.6" - ], - "opacity": 1, - "time": 0 - }, - "\t[女人]啊.........", - { - "type": "showImage2", - "code": 1, - "image": "npcnv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "287.2", - "417.6" - ], - "opacity": 1, - "time": 0 - }, + "type": "moveImage", + "code": 10, + "to": [ + 400, + 0 + ], + "time": 500 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "true" + }, + { + "type": "showImage2", + "code": 1, + "image": "npcnv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "287.2", + "417.6" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 1, + "image": "npcnv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "287.2", + "417.6" + ], + "opacity": 1, + "time": 0 + }, + "\t[女人]啊.........", + { + "type": "showImage2", + "code": 1, + "image": "npcnv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "287.2", + "417.6" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "showImage2", + "code": 2, + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + "291.2", + "466.4" + ], + "opacity": 1, + "time": 0 + }, + "\t[邵虎]请问你是........", + "\t[女人]抱歉......你刚才看到一个棕色头发的男孩了吗?", + "\t[邵虎]........好像在五层楼的时候有看到........怎么了.......?", + "\t[女人]没.........没什么........", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "hideImage", + "code": 2, + "time": 0 + }, + { + "type": "if", + "condition": "(flag:juqing>=1)", + "true": [ { "type": "showImage2", "code": 2, @@ -105,10 +173,44 @@ main.floors.MT7= "opacity": 1, "time": 0 }, - "\t[邵虎]请问你是........", - "\t[女人]抱歉......你刚才看到一个棕色头发的男孩了吗?", - "\t[邵虎]........好像在五层楼的时候有看到........怎么了.......?", - "\t[女人]没.........没什么........", + { + "type": "showImage2", + "code": 1, + "image": "npcnv.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 330, + 70, + "287.2", + "417.6" + ], + "opacity": 1, + "time": 0 + }, + "\t[邵虎]对了,我有几个问想要请教。", + "\t[女人]啊......问我问题啊...........好,你说吧。", + "\t[邵虎]我听说这座塔与镇天谷有关系,请问这是什么关系呢?", + "\t[女人]这个啊.........你不是镇天谷的人吧?", + "\t[邵虎]实不相瞒,我是刚刚来到天塔的。", + "\t[女人]是行商吗........这么小的年纪......", + "\t[女人]不过你说的镇天谷与天塔的关系我倒是可以说一点给你听。", + "\t[女人]你知道200年前天枢与邻国的那场战争吗?", + "\t[邵虎]我听说过,好像天塔就是那个时候建造的", + "\t[女人]没错,天塔位于天枢与邻国的边界。", + "\t[女人]这座塔就是为了纪念这场战争而建造。", + "\t[女人]不过我倒是有些疑问。", + "\t[邵虎]什么疑问?", + "\t[女人]既然战争胜利了为什么要建塔?而不是建个碑什么的......", + "\t[邵虎]............", + { + "type": "setValue", + "name": "flag:7fduihua2", + "value": "1" + }, { "type": "hideImage", "code": 1, @@ -120,102 +222,49 @@ main.floors.MT7= "time": 0 }, { - "type": "if", - "condition": "(flag:juqing>=1)", - "true": [ - { - "type": "showImage2", - "code": 2, - "image": "shaohusikao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - "291.2", - "466.4" - ], - "opacity": 1, - "time": 0 - }, - { - "type": "showImage2", - "code": 1, - "image": "npcnv.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 330, - 70, - "287.2", - "417.6" - ], - "opacity": 1, - "time": 0 - }, - "\t[邵虎]对了,我有几个问想要请教。", - "\t[女人]啊......问我问题啊...........好,你说吧。", - "\t[邵虎]我听说这座塔与镇天谷有关系,请问这是什么关系呢?", - "\t[女人]这个啊.........你不是镇天谷的人吧?", - "\t[邵虎]实不相瞒,我是刚刚来到天塔的。", - "\t[女人]是行商吗........这么小的年纪......", - "\t[女人]不过你说的镇天谷与天塔的关系我倒是可以说一点给你听。", - "\t[女人]你知道200年前天枢与邻国的那场战争吗?", - "\t[邵虎]我听说过,好像天塔就是那个时候建造的", - "\t[女人]没错,天塔位于天枢与邻国的边界。", - "\t[女人]这座塔就是为了纪念这场战争而建造。", - "\t[女人]不过我倒是有些疑问。", - "\t[邵虎]什么疑问?", - "\t[女人]既然战争胜利了为什么要建塔?而不是建个碑什么的......", - "\t[邵虎]............", - { - "type": "setValue", - "name": "flag:7fduihua2", - "value": "1" - }, - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "hideImage", - "code": 2, - "time": 0 - } + "type": "setValue", + "name": "flag:useS_PASS", + "value": "false" + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 700, + 0 ], - "false": [ - { - "type": "showImage2", - "code": 2, - "image": "shaohusikao.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 80, - 50, - "291.2", - "466.4" - ], - "opacity": 1, - "time": 0 - }, - "............", - { - "type": "hideImage", - "code": 1, - "time": 0 - } - ] + "time": 500 + }, + { + "type": "hideImage", + "code": 10, + "time": 0 + } + ], + "false": [ + { + "type": "showImage2", + "code": 2, + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 80, + 50, + "291.2", + "466.4" + ], + "opacity": 1, + "time": 0 + }, + "............", + { + "type": "hideImage", + "code": 1, + "time": 0 } ] } diff --git a/project/floors/MT9.js b/project/floors/MT9.js index e18195a..3fdf132 100644 --- a/project/floors/MT9.js +++ b/project/floors/MT9.js @@ -20,179 +20,227 @@ main.floors.MT9= "events": { "1,0": [ { - "type": "choices", - "text": "是否跳过剧情", - "choices": [ + "type": "if", + "condition": "(core.isReplaying()||flag:SkipThePlot)", + "true": [ { - "text": "是", - "action": [ - { - "type": "hide", - "loc": [ - [ - 8, - 3 - ] - ], - "time": 0 - }, - { - "type": "hide", - "loc": [ - [ - 9, - 3 - ] - ], - "time": 0 - } + "type": "setValue", + "name": "flag:SkipThePlot", + "value": "false" + }, + { + "type": "hide", + "loc": [ + [ + 8, + 3 + ] + ], + "time": 0 + }, + { + "type": "hide", + "loc": [ + [ + 9, + 3 + ] + ], + "time": 0 + } + ], + "false": [ + { + "type": "showImage2", + "code": 10, + "image": "tiaojuqing.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 700, + 0, + 243, + "71.25" + ], + "opacity": 1, + "time": 0 + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 400, + 0 + ], + "time": 500 + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "true" + }, + { + "type": "move", + "loc": [ + 9, + 3 + ], + "time": 500, + "steps": [ + "right:3" ] }, { - "text": "否", - "action": [ - { - "type": "move", - "loc": [ - 9, - 3 - ], - "time": 500, - "steps": [ - "right:3" - ] - }, - { - "type": "showImage2", - "code": 1, - "image": "kulouzhanshi.png", - "sloc": [ - 0, - 0, - null - ], - "loc": [ - 100, - 70, - "333.6", - 444 - ], - "opacity": 1, - "time": 0 - }, - { - "type": "sleep", - "time": 1000 - }, - "\t[嗜骨]海骑士大人您走好~~~", - "\t[嗜骨]常来呀海骑士大人~~~\n小的升官可都靠您啦~~~", - "\t[嗜骨]海骑士大人您慢走~~~!!", - { - "type": "sleep", - "time": 1500 - }, - { - "type": "animate", - "name": "shenglvehao", - "loc": [ - 8, - 3 - ] - }, - { - "type": "sleep", - "time": 1000 - }, - "\t[嗜骨]走了........", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]呼.......终于走了.........", - "\t[嗜骨]这天塔之主还真是难伺候啊。。。生怕说错了话。。。", - "\t[嗜骨]不过毒尾那家伙倒是跟海骑士挺熟的........", - "\t[嗜骨]看她跟海骑士说话都别别扭扭的。。。", - { - "type": "sleep", - "time": 1500 - }, - "\t[嗜骨]不过海骑士带来的消息还真是吓人啊。。", - "\t[嗜骨]抓住了公主.......难道下一步真的是.........", - "\t[嗜骨]这下天塔要出大事了.......不知道''我们''与镇天联盟下一步都会怎么走这步棋啊.......", - "\t[嗜骨]万一对''我们'',不利就糟了...........", - "\t[嗜骨]而且听探子说守塔仙子放进来一个非镇天联盟的人.......这是怎么回事.........", - { - "type": "sleep", - "time": 500 - }, - { - "type": "animate", - "name": "shenglvehao", - "loc": [ - 8, - 3 - ] - }, - { - "type": "sleep", - "time": 2000 - }, - { - "type": "animate", - "name": "hanyou", - "loc": [ - 8, - 3 - ] - }, - { - "type": "sleep", - "time": 1000 - }, - "\t[嗜骨]哇靠!!老子离地面这么近不会第一个就来找我吧!?", - { - "type": "sleep", - "time": 500 - }, - "\t[嗜骨]况且好不容易拿到十层天塔掌控权........", - { - "type": "sleep", - "time": 500 - }, - { - "type": "animate", - "name": "shenglvehao", - "loc": [ - 8, - 3 - ] - }, - { - "type": "sleep", - "time": 1000 - }, - "\t[嗜骨]不行我得去跟毒尾商量一下。。。", - { - "type": "hideImage", - "code": 1, - "time": 0 - }, - { - "type": "sleep", - "time": 500 - }, - { - "type": "move", - "loc": [ - 8, - 3 - ], - "time": 500, - "steps": [ - "right:4" - ] - } + "type": "showImage2", + "code": 1, + "image": "kulouzhanshi.png", + "sloc": [ + 0, + 0, + null + ], + "loc": [ + 100, + 70, + "333.6", + 444 + ], + "opacity": 1, + "time": 0 + }, + { + "type": "sleep", + "time": 1000 + }, + "\t[嗜骨]海骑士大人您走好~~~", + "\t[嗜骨]常来呀海骑士大人~~~\n小的升官可都靠您啦~~~", + "\t[嗜骨]海骑士大人您慢走~~~!!", + { + "type": "sleep", + "time": 1500 + }, + { + "type": "animate", + "name": "shenglvehao", + "loc": [ + 8, + 3 ] + }, + { + "type": "sleep", + "time": 1000 + }, + "\t[嗜骨]走了........", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]呼.......终于走了.........", + "\t[嗜骨]这天塔之主还真是难伺候啊。。。生怕说错了话。。。", + "\t[嗜骨]不过毒尾那家伙倒是跟海骑士挺熟的........", + "\t[嗜骨]看她跟海骑士说话都别别扭扭的。。。", + { + "type": "sleep", + "time": 1500 + }, + "\t[嗜骨]不过海骑士带来的消息还真是吓人啊。。", + "\t[嗜骨]抓住了公主.......难道下一步真的是.........", + "\t[嗜骨]这下天塔要出大事了.......不知道''我们''与镇天联盟下一步都会怎么走这步棋啊.......", + "\t[嗜骨]万一对''我们'',不利就糟了...........", + "\t[嗜骨]而且听探子说守塔仙子放进来一个非镇天联盟的人.......这是怎么回事.........", + { + "type": "sleep", + "time": 500 + }, + { + "type": "animate", + "name": "shenglvehao", + "loc": [ + 8, + 3 + ] + }, + { + "type": "sleep", + "time": 2000 + }, + { + "type": "animate", + "name": "hanyou", + "loc": [ + 8, + 3 + ] + }, + { + "type": "sleep", + "time": 1000 + }, + "\t[嗜骨]哇靠!!老子离地面这么近不会第一个就来找我吧!?", + { + "type": "sleep", + "time": 500 + }, + "\t[嗜骨]况且好不容易拿到十层天塔掌控权........", + { + "type": "sleep", + "time": 500 + }, + { + "type": "animate", + "name": "shenglvehao", + "loc": [ + 8, + 3 + ] + }, + { + "type": "sleep", + "time": 1000 + }, + "\t[嗜骨]不行我得去跟毒尾商量一下。。。", + { + "type": "hideImage", + "code": 1, + "time": 0 + }, + { + "type": "sleep", + "time": 500 + }, + { + "type": "move", + "loc": [ + 8, + 3 + ], + "time": 500, + "steps": [ + "right:4" + ] + }, + { + "type": "setValue", + "name": "flag:useS_PASS", + "value": "false" + }, + { + "type": "moveImage", + "code": 10, + "to": [ + 700, + 0 + ], + "time": 500 + }, + { + "type": "hideImage", + "code": 10, + "time": 0 } ] }, diff --git a/project/images/跳剧情.png b/project/images/tiaojuqing.png similarity index 100% rename from project/images/跳剧情.png rename to project/images/tiaojuqing.png diff --git a/project/plugins.js b/project/plugins.js index 3689fc6..85e7b19 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -3625,5 +3625,119 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = return; } } +}, + "按S跳过剧情": function () { + // 在此增加新插件 + core.registerAction('keyDown', "useS_PASS", function (keycode) { /////按下某个键 + + if (!core.status.hero.flags.useS_PASS) return false; + + + }, 100); + + var _my_useS_PASS = function (keycode) { ////放开某个键 + if (!core.status.hero.flags.useS_PASS) return false; + if (keycode == 83) { ////按下S时 + core.Confirmskip(); + } + }; + core.registerAction('keyUp', 'useS_PASS', _my_useS_PASS, 100); + + core.registerAction('ondown', 'useS_PASS', function (x, y, px, py) { + if (!core.status.hero.flags.useS_PASS) return false; + + if (x >= 7 && y <= 2) { + core.Confirmskip(); + } + + }, 100); + + + core.Confirmskip = function () { ////跳过剧情确认框 + core.status.hero.flags.useS_PASS = false; ////禁用按S跳过 + core.status.hero.flags.Confirmskip = true; + core.status.hero.flags.ConfirmskipChoose = 0; + core.createCanvas('Confirmskip', 0, 0, 480, 480, 200); + core.createCanvas('Confirmskip_text', 0, 0, 480, 480, 202); + core.drawWindowSkin('winskin.png', 'Confirmskip', 48, 182, 176, 96); + core.fillText('Confirmskip_text', '不跳过剧情', 70, 222, "#ffffff", ui.prototype._buildFont(22, false)) + core.fillText('Confirmskip_text', '跳过剧情', 70, 248, "#ffffff", ui.prototype._buildFont(22, false)) + core.drawUIEventSelector(1, 'winskin.png', 70, 202, 120, 24, 201); ////绘制光标 + + } + + core.registerAction('keyDown', "Confirmskip", function (keycode) { /////按下某个键 + + if (!core.status.hero.flags.Confirmskip) return false; + + return true; ///全部拦截 + }, 100); + + var _my_Confirmskip = function (keycode) { ////放开某个键 + if (!core.status.hero.flags.Confirmskip) return false; + if ((keycode == 13 || keycode == 32 || keycode == 67)) { ////按下空格\回车\C时 + if (core.status.hero.flags.ConfirmskipChoose === 1) { ///选择为跳过剧情 + core.ConfirmskipOK(); + } else { ///选择为不跳过剧情 + core.status.hero.flags.useS_PASS = true; ////允许按S的开关 + core.status.hero.flags.Confirmskip = false; + core.clearMap('Confirmskip') /////清除画布 + core.clearMap('Confirmskip_text') + core.clearUIEventSelector(1); ////清除光标 + } + + } else if (keycode == 38 || keycode == 40) ///上下切换 + { + core.setFlag('ConfirmskipChoose', 1 ^ (core.getFlag('ConfirmskipChoose') || 0)); + if (core.status.hero.flags.ConfirmskipChoose === 0) + core.drawUIEventSelector(1, 'winskin.png', 70, 202, 120, 24, 201); ////绘制光标 + else + core.drawUIEventSelector(1, 'winskin.png', 70, 229, 120, 24, 201); ////绘制光标 + } + return true; ///全部拦截 + }; + core.registerAction('keyUp', 'Confirmskip', _my_Confirmskip, 100); + + core.registerAction('ondown', 'Confirmskip', function (x, y, px, py) { + if (!core.status.hero.flags.Confirmskip) return false; + + if (x >= 3 && x <= 6 && y === 6) { + if (core.status.hero.flags.ConfirmskipChoose === 0) { + ///选择为不跳过剧情 + core.status.hero.flags.useS_PASS = true; ////允许按S的开关 + core.status.hero.flags.Confirmskip = false; + core.clearMap('Confirmskip') /////清除画布 + core.clearMap('Confirmskip_text') + core.clearUIEventSelector(1); ////清除光标 + } else + + { + core.status.hero.flags.ConfirmskipChoose = 0; + core.drawUIEventSelector(1, 'winskin.png', 70, 202, 120, 24, 201); ////绘制光标 + } + } else if (x >= 3 && x <= 6 && y === 7) { + if (core.status.hero.flags.ConfirmskipChoose === 1) { + core.ConfirmskipOK(); + + } else { + core.status.hero.flags.ConfirmskipChoose = 1; + core.drawUIEventSelector(1, 'winskin.png', 70, 229, 120, 24, 201); ////绘制光标 + } + } + return true; ///全部拦截 + }, 100); + + core.ConfirmskipOK = function () { ////决定跳过剧情 + core.status.hero.flags.Confirmskip = false; + core.clearMap('Confirmskip') /////清除画布 + core.clearMap('Confirmskip_text') + core.clearUIEventSelector(1); ////清除光标 + core.deleteAllCanvas(); ///清空画布 + core.status.hero.flags.SkipThePlot = true; ////跳过事件开关 + core.insertAction({ "type": "exit" }); + core.insertAction({ "type": "insert" }); ///重新触发当前事件 + core.doAction(); ///执行下一个事件 + } + } } \ No newline at end of file