Kenna18155
Kenna18155
- 61
- Posts
- 11
- Years
- Age 24
- Seen Dec 1, 2020
So I decided to practice the givepokemon script. I wrote the script, debugged, compiled, and assigned it to a person in A-Map. When I booted up VBA and loaded my ROM, i talked to the person and the person disappeared as it said, "MAKENNA recieved a ????????! Too bad!" I took one step away and the person reappeared. When i talk to him again, he disappears, and I supposedly receive a Master Ball, followed by "too bad!" Take a step away, he reappears, I talk to him, he's gone again, i get a Great Ball (too bad!). This continues with me receiving infinite nonexistant Great Balls.
Here is the script i used:
Here is the script i used:
Spoiler:
#dynamic 0x800F00
#org @start
checkflag 0x800
if 0x1 goto @done
compare LASTRESULT 0x1
msgbox @ask 0x1
if 0x1 goto @take
msgbox @notake 0x6
release
end
#org @done
lock
faceplayer
msgbox @aftertalk 0x6
release
end
#org @take
lock
faceplayer
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @recieved 0x6
waitfanfare
closeonkeypress
setflag 0x800
msgbox @name 0x5
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @gotit 0x6
release
end
#org @name
call 0x1A74EB
return
end
#org @ask
= Do you want a CHARMANDER?
#org @notake
= That's too bad...
#org @aftertalk
= How is CHARMANDER doing?
#org @recieved
= [black_fr] You recieved a CHARMANDER!
#org @name
= [blak_fr] Would you like to give CHARMANDER\na nickname?
#org @gotit
= Take good care of him!
#org @start
checkflag 0x800
if 0x1 goto @done
compare LASTRESULT 0x1
msgbox @ask 0x1
if 0x1 goto @take
msgbox @notake 0x6
release
end
#org @done
lock
faceplayer
msgbox @aftertalk 0x6
release
end
#org @take
lock
faceplayer
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @recieved 0x6
waitfanfare
closeonkeypress
setflag 0x800
msgbox @name 0x5
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @gotit 0x6
release
end
#org @name
call 0x1A74EB
return
end
#org @ask
= Do you want a CHARMANDER?
#org @notake
= That's too bad...
#org @aftertalk
= How is CHARMANDER doing?
#org @recieved
= [black_fr] You recieved a CHARMANDER!
#org @name
= [blak_fr] Would you like to give CHARMANDER\na nickname?
#org @gotit
= Take good care of him!