Skip to content

Instantly share code, notes, and snippets.

@RipperRooTMUF
Last active December 21, 2020 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RipperRooTMUF/9d386e92fdfd13a8361aec21bee510c6 to your computer and use it in GitHub Desktop.
Save RipperRooTMUF/9d386e92fdfd13a8361aec21bee510c6 to your computer and use it in GitHub Desktop.
A basic LiveSplit ASL script for the game POD: Planet of Death
state("PODX3Dfx")
{
byte TrackID : 0x1BFF5C;
byte Countdown : 0x1EAC80;
byte Finish : 0x137104;
//byte Finish : 0x13D394;
}
start
{
//If the first track is loaded
if (current.TrackID == 0)
{
//Starts the timer when the announcer says "GO!"
return old.Countdown == 0 && current.Countdown > 6;
}
}
split
{
//Splits when the player crosses the finish line
return old.Finish < current.Finish;
}
reset
{
//If the first track is loaded
if (current.TrackID == 0)
{
//Starts the timer when the announcer says "4"
return old.Countdown == 5 && current.Countdown == 4;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment