about summary refs log tree commit diff stats
path: root/Taiji.asl
diff options
context:
space:
mode:
Diffstat (limited to 'Taiji.asl')
-rw-r--r--Taiji.asl28
1 files changed, 28 insertions, 0 deletions
diff --git a/Taiji.asl b/Taiji.asl new file mode 100644 index 0000000..3505a86 --- /dev/null +++ b/Taiji.asl
@@ -0,0 +1,28 @@
1state("Taiji")
2{
3 // v9.10.2022
4 int solveCount: "GameAssembly.dll", 0x0168ED88, 0x80, 0x100, 0xD94;
5}
6
7startup
8{
9 vars.log = (Action<string>)((string logLine) => {
10 print("[Taiji ASL] " + logLine);
11 });
12
13 vars.log("Autosplitter loaded");
14}
15
16onStart
17{
18 vars.maxSolve = 0;
19}
20
21split
22{
23 if (current.solveCount > vars.maxSolve) {
24 vars.log(String.Format("Solve count increased from {0} to {1}", vars.maxSolve, current.solveCount));
25 vars.maxSolve = current.solveCount;
26 return true;
27 }
28}