C me
Creator of Pokemon League Of Legends
- 681
- Posts
- 11
- Years
- Seen Apr 9, 2021
Hi guys
I'm having a problem with this part of my script where it counts how many steps you've taken and you get a different message after a certan number of steps, then after X amount of steps (250 in this case) the script can continue. I'm using this to indicate a passage of time.
I'm using the variable 0x4048 in Emerald which is used to count how much soot you've collected. The tiles you walk on have their behaviour byte set as 24. Here's the script that I've made.
compare 0x4048 0x19
compare lastresult 0x1
if 0x3 goto 0x3708E0
compare 0x4048 0x4B
compare lastresult 0x1
if 0x3 goto 0x3708F0
compare 0x4048 0x96
compare lastresult 0x1
if 0x3 goto 0x370980
compare 0x4048 0xFA
compare lastresult 0x1
This is only part of the whole script btw.
Even if you take a ton of steps you never get past the first message which only checks for 25 or less steps. I know I've done something wrong with checking the variables but I'm not sure what.
Thank You
I'm having a problem with this part of my script where it counts how many steps you've taken and you get a different message after a certan number of steps, then after X amount of steps (250 in this case) the script can continue. I'm using this to indicate a passage of time.
I'm using the variable 0x4048 in Emerald which is used to count how much soot you've collected. The tiles you walk on have their behaviour byte set as 24. Here's the script that I've made.
Spoiler:
compare 0x4048 0x19
compare lastresult 0x1
if 0x3 goto 0x3708E0
compare 0x4048 0x4B
compare lastresult 0x1
if 0x3 goto 0x3708F0
compare 0x4048 0x96
compare lastresult 0x1
if 0x3 goto 0x370980
compare 0x4048 0xFA
compare lastresult 0x1
This is only part of the whole script btw.
Even if you take a ton of steps you never get past the first message which only checks for 25 or less steps. I know I've done something wrong with checking the variables but I'm not sure what.
Thank You