-
Notifications
You must be signed in to change notification settings - Fork 33
Automata Script
Malcolm Law edited this page Feb 19, 2020
·
3 revisions
-
Use REPL(启动REPL):
python REPL.py
-
Execute Script(执行脚本):
python [filename]
After executing, you shall see it in Terminal like this:
启动后,您将看到如下界面:
FGO-Automata REPL
*>
# simply type `help`
*> help
Output:
``` bash
Commands:
help -- show help
show -- show info
Settings:
sft=(,) -- set shifts [eg: sft=(248,0)]
ckp="" -- set checkpoint [eg: ckp="assets/Qp4.png"]
spt="" -- set support [eg: spt="assets/eg-sp1.png"]
Actions:
start -- start battle
finish -- finish battle
s[1-9] -- servant skill [eg: s1]
s[1-9]t[1-3] -- seravnt skill w/ target [eg: s5t3]
m[1-3] -- master skill [eg: m1]
m[1-3]t[1-3] -- master skill w/ target [eg: m2t1]
m3o[1-3]t[1-3] -- Order Change [eg: m3o1t2]
c[1-8]+ -- select cards [eg: c1] [eg: c723]
```
# show info of current settings
*> show
Checkpoint:
Support:
Shift: (0, 0)
Set the shifts for script (as it is initialized with (0,0))
设定战斗界面的位移(假如您的屏幕不是1920x1080的话),默认值为(0,0)
# the command
sft=(x,y)
# equals to
.reset_shifts((x, y))
Usage:
# for example, if you would like to reset shifts to (248,0), just input this:
*> sft=(248,0)
Reset shifts to ['248', '0']
Set the checkpoint of the script (as it is initialized with ""(without a checkpoint)) 设定关卡模板图片的路径
# the command
ckp=""
# equals to
.reset_checkpoint("")
Usage:
# when resetting to `assets/Qp4.png`
*> ckp="assets/Qp4.png"
Reset checkpoint to assets/Qp4.png
Setting support is the same:
设定方法和关卡一样:)
*> spt="assets/eg-sp1.png"
Reset support to assets/eg-sp1.png
There are 2 types of commands:
有两种servant技能可选(无目标和有目标的技能):
s[1-9] # equals to select_servant_skill(<id of the skill>)
s[1-9]t[1-3] # equals to select_servant_skill(<id of the skill>, <id of the target servant>)
Examples:
*> s1 # skill 1
*> s5t1 # skill 5 with target 1
There are 3 types of commands:
有三种类型可选(无目标从者,有目标和换人技能)
m[1-3] # select_master_skill(<id of the skill>)
m[1-3]t[1-3] # elect_master_skill(<id of the skill>, <id of the target servant>)
m3o[1-3]t[1-3] # select_master_skill(3, <id of the first servant>, <id of the second servant>) (as Order change is always the third skill)
Examples:
*> m1 # master skill 1
*> m2t3 # master skill 2 with target 3
*> m3o1t3 # Order Change servant 1 (on the left) for servant 3 (on the right)
Select at least ONE order card
您需要选择至少一张指令卡
c[1-8]+ # select_cards(<list of the desired cards(in order)>)
Examples:
*> c1 # card 1
*> c82 # card 8 (NP card) -> card 1
*> c654 # card 6 (NP card) -> card 5 -> card 4
I'm a custom footer :)