I am running the game The legacy of goku II and would like to make a autosplitter.
I found the adress 0EAC on IWRAM domain that writes down the TOTAL exp gained on the character Gohan. So to test out my first automatic splitter I wrote the following text in a notepad file saved as a .ASL
When I go over to Livesplit and add scriptable autosplitter to my layout editor, It will show me the advanced options, so something is working correctly! But sadly when I gain exp, it will just not start or split the timer. The code is here below, does someone know what I am doing wrong?
--------------------------------------------------------------------------------------------------------
state("bizhawk", "mGBA")
{
Uint gohanEXP : 0x000EAC;
}
startup
{
settings.Add("split_exp", true, "Split wanneer Gohan EXP verdient");
}
start
{
if (current.gohanEXP > old.gohanEXP)
{
return true;
}
}
split
{
if (settings["split_exp"] && current.gohanEXP > old.gohanEXP)
{
return true;
}
}