This is how the script looks like
XSE:
#org 0x7B70D8
giveitem 0x3 0x1 MSG_FIND
end
PokéScript
#org 0x87B70D8
'-----------------------------------
copyvarifnotzero 0x8000 GREATBALL
copyvarifnotzero 0x8001 0x1
callstd MSG_FIND ' PLAYER found one XXXXXX!
end
These scripts look exactly like the ones that were on the original game, so that's why I can't understand what's wrong.
Squeetz, since I didn't see any Person ID on the Find_Item scripts on the original game, I haven't set any, should I do that? I've found many tutorials on how to make a character give you an item, and I can do that with no problem, but when it comes to these simple items scattered on the map I dunno what to do to make them work...
I managed to solve the problem. If anybody else that's new to hacking faces the same problem, here's the solution:
I thought it worked, but apparently it only took longer to reappear. In maps that existed previously, they reappear after I battle a wild pokémon or trainer. In maps I added they reappear after I walk about 4-5 steps. Please, can anybody help me find a solution for that? I looked for tutorials concerning this everywhere and I can't see what I'm doing wrong...
This is the script I'm currently using:
XSE:
#org 0x7B70D8
hidesprite 0x1 (here change '1' for the person event number)
giveitem 0x3 0x1 MSG_FIND
setflag 0x9001 (use the same flag number as the person ID)
release
end