云端城主 发表于 2023-6-19 10:51
到底有没有人知道啊?
a.png (28.51 KB, 下载次数: 97)
天下无尽 发表于 2023-6-27 18:30
====小白,最近正在研究GameusQuestSystem,以下为自己的看法,可能有错误====
$gameParty.hasQuests([ques ...
云端城主 发表于 2023-6-28 15:55
不知道是不是设置错了?我就想知道是怎么判定任务1 第1步的?
都还没有错。
屏幕截图 2023-06-29 210404.png (168.01 KB, 下载次数: 115)
云端城主 发表于 2023-6-28 15:55
不知道是不是设置错了?我就想知道是怎么判定任务1 第1步的?
都还没有错。
天下无尽 发表于 2023-6-29 20:57
hmmmmmm,$gameQuests.get(quest_id).currentStep方法返回的是一个数字,默认从0开始计算,也就是说,如果 ...
云端城主 发表于 2023-6-30 17:12
我是条件分支设置,没有影响任务100%,你的代码我没懂?对不起我是小白目了。
我把任务文件范例传下,你 ...
云端城主 发表于 2023-6-30 17:12
我是条件分支设置,没有影响任务100%,你的代码我没懂?对不起我是小白目了。
我把任务文件范例传下,你 ...
{
"autoplayBgm":false,"autoplayBgs":false,"battleback1Name":"","battleback2Name":"","bgm":{"name":"","pan":0,"pitch":100,"volume":90},"bgs":{"name":"","pan":0,"pitch":100,"volume":90},"disableDashing":false,"displayName":"","encounterList":[],"encounterStep":30,"height":13,"note":"","parallaxLoopX":false,"parallaxLoopY":false,"parallaxName":"","parallaxShow":true,"parallaxSx":0,"parallaxSy":0,"scrollType":0,"specifyBattleback":false,"tilesetId":1,"width":17,
"data":[2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,2816,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"events":[
null,
{"id":1,"name":"EV001","note":"","pages":[{"conditions":{"actorId":1,"actorValid":false,"itemId":1,"itemValid":false,"selfSwitchCh":"A","selfSwitchValid":false,"switch1Id":1,"switch1Valid":false,"switch2Id":1,"switch2Valid":false,"variableId":1,"variableValid":false,"variableValue":0},"directionFix":false,"image":{"tileId":0,"characterName":"Actor1","direction":8,"pattern":1,"characterIndex":1},"list":[{"code":108,"indent":0,"parameters":["--判断是否接受了该委托--"]},{"code":355,"indent":0,"parameters":["//使用$gameParty.hasQuest(quest_id)判断"]},{"code":655,"indent":0,"parameters":["if(!($gameParty.hasQuest(1))){"]},{"code":655,"indent":0,"parameters":[" //如果没有,则设置临时变量的数值"]},{"code":655,"indent":0,"parameters":[" $gameVariables.setValue(1, 1);"]},{"code":655,"indent":0,"parameters":["}else{"]},{"code":655,"indent":0,"parameters":[" if($gameQuests.get(1).currentStep === 1){"]},{"code":655,"indent":0,"parameters":[" $gameMessage.setFaceImage('Actor1',1);"]},{"code":655,"indent":0,"parameters":[" $gameMessage.add(\"【勇者】\\n完成任务!\");"]},{"code":655,"indent":0,"parameters":[" $gameVariables.setValue(1, 3);"]},{"code":655,"indent":0,"parameters":[" }else{"]},{"code":655,"indent":0,"parameters":[" $gameVariables.setValue(1, 4);}"]},{"code":655,"indent":0,"parameters":["}"]},{"code":111,"indent":0,"parameters":[1,1,0,1,0]},{"code":101,"indent":1,"parameters":["Actor1",1,0,2]},{"code":401,"indent":1,"parameters":["【勇者】"]},{"code":401,"indent":1,"parameters":["你好,少年,来接受委托吧!"]},{"code":101,"indent":1,"parameters":["Actor1",0,0,2]},{"code":401,"indent":1,"parameters":["【霍尔德】"]},{"code":401,"indent":1,"parameters":["好!"]},{"code":356,"indent":1,"parameters":["Quest Add 1"]},{"code":0,"indent":1,"parameters":[]},{"code":411,"indent":0,"parameters":[]},{"code":111,"indent":1,"parameters":[1,1,0,3,0]},{"code":356,"indent":2,"parameters":["Quest Complete 1"]},{"code":0,"indent":2,"parameters":[]},{"code":411,"indent":1,"parameters":[]},{"code":111,"indent":2,"parameters":[1,1,0,4,0]},{"code":101,"indent":3,"parameters":["Actor1",1,0,2]},{"code":401,"indent":3,"parameters":["【勇者】"]},{"code":401,"indent":3,"parameters":["快去吧!"]},{"code":0,"indent":3,"parameters":[]},{"code":412,"indent":2,"parameters":[]},{"code":0,"indent":2,"parameters":[]},{"code":412,"indent":1,"parameters":[]},{"code":0,"indent":1,"parameters":[]},{"code":412,"indent":0,"parameters":[]},{"code":0,"indent":0,"parameters":[]}],"moveFrequency":3,"moveRoute":{"list":[{"code":0,"parameters":[]}],"repeat":true,"skippable":false,"wait":false},"moveSpeed":3,"moveType":0,"priorityType":1,"stepAnime":false,"through":false,"trigger":0,"walkAnime":true}],"x":8,"y":8},
{"id":2,"name":"EV002","note":"","pages":[{"conditions":{"actorId":1,"actorValid":false,"itemId":1,"itemValid":false,"selfSwitchCh":"A","selfSwitchValid":false,"switch1Id":1,"switch1Valid":false,"switch2Id":1,"switch2Valid":false,"variableId":1,"variableValid":false,"variableValue":0},"directionFix":false,"image":{"tileId":0,"characterName":"Actor3","direction":2,"pattern":1,"characterIndex":0},"list":[{"code":101,"indent":0,"parameters":["Actor3",0,0,2]},{"code":401,"indent":0,"parameters":["【将军】"]},{"code":401,"indent":0,"parameters":["你好。"]},{"code":108,"indent":0,"parameters":["--判断是否接受了该委托--"]},{"code":355,"indent":0,"parameters":["//使用$gameParty.hasQuest(quest_id)判断"]},{"code":655,"indent":0,"parameters":["if(!($gameParty.hasQuest(1) || ($gameQuests.get(1).status === \"progress\" && $gameQuests.get(1).currentStep === 1))){"]},{"code":655,"indent":0,"parameters":[" //如果没有,则这里直接用脚本对话。"]},{"code":655,"indent":0,"parameters":[" $gameMessage.setFaceImage('Actor3',0);"]},{"code":655,"indent":0,"parameters":[" $gameMessage.add(\"【将军】\\n没什么事情就不要来找我!\");"]},{"code":655,"indent":0,"parameters":["}else{//否则,判定获取步骤"]},{"code":655,"indent":0,"parameters":[" if($gameQuests.get(1).currentStep == 0){"]},{"code":655,"indent":0,"parameters":[" $gameMessage.setFaceImage('Actor3',0);"]},{"code":655,"indent":0,"parameters":[" $gameMessage.add(\"【将军】\\n你回去汇报,不用找我了。\");"]},{"code":655,"indent":0,"parameters":[" $gameVariables.setValue(1, 2);"]},{"code":655,"indent":0,"parameters":[" }"]},{"code":655,"indent":0,"parameters":["}"]},{"code":111,"indent":0,"parameters":[1,1,0,2,0]},{"code":356,"indent":1,"parameters":["Quest NextStep 1"]},{"code":0,"indent":1,"parameters":[]},{"code":412,"indent":0,"parameters":[]},{"code":0,"indent":0,"parameters":[]}],"moveFrequency":3,"moveRoute":{"list":[{"code":0,"parameters":[]}],"repeat":true,"skippable":false,"wait":false},"moveSpeed":3,"moveType":0,"priorityType":1,"stepAnime":false,"through":false,"trigger":0,"walkAnime":true}],"x":8,"y":4}
]
}
屏幕截图 2023-06-30 192907.png (487.58 KB, 下载次数: 115)
屏幕截图 2023-06-30 192916.png (504 KB, 下载次数: 144)
屏幕截图 2023-06-30 192927.png (104.45 KB, 下载次数: 119)
天下无尽 发表于 2023-6-30 18:58
啊这,本人只是一个初中生,出于学业方面很多东西受限,还是直接发截图吧,貌似没有办法可以直接发一整个 ...
云端城主 发表于 2023-7-1 15:17
链接:https://pan.baidu.com/s/1dws1gykxmYsjXibaK5unJA?pwd=ydo1
提取码:ydo1
云端城主 发表于 2023-7-1 15:17
链接:https://pan.baidu.com/s/1dws1gykxmYsjXibaK5unJA?pwd=ydo1
提取码:ydo1
清澈淌漾 发表于 2023-7-3 12:30
给你个解决方案 把所有代码加注释扔给GPT 问
怎么用xxxx
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |