about summary refs log tree commit diff stats
path: root/Taiji.asl
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-09-11 09:39:22 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-09-11 09:39:22 -0400
commit8007db85e774cd6f80b3fbc1c5724e777c00f09f (patch)
treeba83fa52074a8ce1b4543cfba35ae1ef09e24d38 /Taiji.asl
parentf650b0b59f4aaafc734abbb4cbebb169d7057a31 (diff)
downloadautosplitters-8007db85e774cd6f80b3fbc1c5724e777c00f09f.tar.gz
autosplitters-8007db85e774cd6f80b3fbc1c5724e777c00f09f.tar.bz2
autosplitters-8007db85e774cd6f80b3fbc1c5724e777c00f09f.zip
[Taiji] Split when solving a puzzle for the first time
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}