- 32
- Posts
- 14
- Years
- Seen Dec 5, 2023
So, until I find the offset for var x800D in ruby, this is the script I want to use to check the level of a player's pokemon; the script should then go to different pointers depending on the level of the pokemon.
...
#org @start
lock
faceplayer
checkflag 0x6C
if 0x1 goto @other
comparefarbytetobyte 0x30043B4 0x5
if 0x1 goto @weak
comparefarbytetobyte 0x30043B4 0x7
if 0x1 goto @strong
msgbox @2 '"Hey, we should battle sometime!"
release
end
...
When I assign this script to a person event on the map, nothing happens. The NPC looks at me, but it then goes right to the "release, end".
...
#org @start
lock
faceplayer
checkflag 0x6C
if 0x1 goto @other
comparefarbytetobyte 0x30043B4 0x5
if 0x1 goto @weak
comparefarbytetobyte 0x30043B4 0x7
if 0x1 goto @strong
msgbox @2 '"Hey, we should battle sometime!"
release
end
...
When I assign this script to a person event on the map, nothing happens. The NPC looks at me, but it then goes right to the "release, end".