From 8007db85e774cd6f80b3fbc1c5724e777c00f09f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 11 Sep 2022 09:39:22 -0400 Subject: [Taiji] Split when solving a puzzle for the first time --- Taiji.asl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Taiji.asl (limited to 'Taiji.asl') diff --git a/Taiji.asl b/Taiji.asl new file mode 100644 index 0000000..3505a86 --- /dev/null +++ b/Taiji.asl @@ -0,0 +1,28 @@ +state("Taiji") +{ + // v9.10.2022 + int solveCount: "GameAssembly.dll", 0x0168ED88, 0x80, 0x100, 0xD94; +} + +startup +{ + vars.log = (Action)((string logLine) => { + print("[Taiji ASL] " + logLine); + }); + + vars.log("Autosplitter loaded"); +} + +onStart +{ + vars.maxSolve = 0; +} + +split +{ + if (current.solveCount > vars.maxSolve) { + vars.log(String.Format("Solve count increased from {0} to {1}", vars.maxSolve, current.solveCount)); + vars.maxSolve = current.solveCount; + return true; + } +} -- cgit 1.4.1