{"record":{"id":"99d4fcb08a0c6060","repo":"babalae/better-genshin-impact","slug":"moveby-x-y-moveby-100-100","errorCode":null,"errorMessage":"moveby方法必须有两个入参，分别是x和y。例：moveby(100, 100)","messagePattern":"moveby方法必须有两个入参，分别是x和y。例：moveby\\(100, 100\\)","errorType":"validation","errorClass":"ArgumentException","httpStatus":null,"severity":"error","filePath":"BetterGenshinImpact/GameTask/AutoFight/Script/CombatCommand.cs","lineNumber":278,"sourceCode":"            {\n                avatar.Click(Args![0]);\n            }\n            else\n            {\n                avatar.Click();\n            }\n        }\n        else if (Method == Method.MoveBy)\n        {\n            if (Args is { Count: 2 })\n            {\n                var x = int.Parse(Args![0]);\n                var y = int.Parse(Args[1]);\n                avatar.MoveBy(x, y);\n            }\n            else\n            {\n                throw new ArgumentException(\"moveby方法必须有两个入参，分别是x和y。例：moveby(100, 100)\");\n            }\n        }\n        else if (Method == Method.KeyDown)\n        {\n            avatar.KeyDown(Args![0]);\n        }\n        else if (Method == Method.KeyUp)\n        {\n            avatar.KeyUp(Args![0]);\n            TryTriggerESkillCdCheck(avatar, Args![0]);\n        }\n        else if (Method == Method.KeyPress)\n        {\n            avatar.KeyPress(Args![0]);\n            TryTriggerESkillCdCheck(avatar, Args![0]);\n        }\n        else if (Method == Method.Scroll)\n        {","sourceCodeStart":260,"sourceCodeEnd":296,"githubUrl":"https://github.com/babalae/better-genshin-impact/blob/a7cb36712dcb409be610257d877fcea3597e9d6b/BetterGenshinImpact/GameTask/AutoFight/Script/CombatCommand.cs#L260-L296","documentation":"Error \"moveby方法必须有两个入参，分别是x和y。例：moveby(100, 100)\" thrown in babalae/better-genshin-impact.","triggerScenarios":"执行 moveby 指令时参数个数不是2（缺x或y），在校验或执行阶段抛出。","commonSituations":"脚本写成 moveby(100) 或参数被误删，未按 moveby(x, y) 格式书写。","solutions":["按照 moveby(x, y) 格式提供两个数值入参，例如 moveby(100, 100)","检查脚本中该指令是否缺少逗号或括号"],"exampleFix":"改为 moveby(100, 100) 形式，提供x和y两个整数参数。","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a7cb36712dcb409be610257d877fcea3597e9d6b","analyzedAt":"2026-08-13T16:44:57.548Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}