- 8
- Posts
- 4
- Years
- Seen Jul 4, 2021
There was a problem after a Pokémon is given. You know, after a Pokémon was given, we had a chance to nickname it or not..
But this time it's different..
This was my script.
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x240
if 0x1 goto @Done
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @Yes
msgbox @saidnomsg 0x6
release
end
#org @Yes
countpokemon
compare 0x800D 0x6
if 0x1 goto @Full
msgbox @take 0x6
givepokemon 0x199 0x15 0x0 0x0 0x0 0x0
fanfare 0x101
msgbox @receive 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare LASTRESULT 0x1
if 0x1 call @YesToNick
msgbox @Donemsg 0x6
setflag 0x240
release
end
#org @YesToNick
setvar 0x8004 0x0
call 0x81A74EB
return
#org @Full
msgbox @Fullmsg 0x6
release
end
#org @Done
msgbox @Donemsg 0x6
release
end
#org @question
= Do you like a legendary Pokémon?
#org @saidnomsg
= Too bad[.]
#org @Fullmsg
= You don't have enough room for your party.
#org @Donemsg
= Bye!
#org @take
= You can have one of mine!
#org @receive
= You received a JIRACHI
#org @nick
= Give a nickname to JIRACHI?
The problem is after I receive a Pokémon, the nicknaming screen doesn't show up. And it keeps on repeating the same script again and again after I pressed yes.. help me out.
But this time it's different..
This was my script.
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x240
if 0x1 goto @Done
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @Yes
msgbox @saidnomsg 0x6
release
end
#org @Yes
countpokemon
compare 0x800D 0x6
if 0x1 goto @Full
msgbox @take 0x6
givepokemon 0x199 0x15 0x0 0x0 0x0 0x0
fanfare 0x101
msgbox @receive 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare LASTRESULT 0x1
if 0x1 call @YesToNick
msgbox @Donemsg 0x6
setflag 0x240
release
end
#org @YesToNick
setvar 0x8004 0x0
call 0x81A74EB
return
#org @Full
msgbox @Fullmsg 0x6
release
end
#org @Done
msgbox @Donemsg 0x6
release
end
#org @question
= Do you like a legendary Pokémon?
#org @saidnomsg
= Too bad[.]
#org @Fullmsg
= You don't have enough room for your party.
#org @Donemsg
= Bye!
#org @take
= You can have one of mine!
#org @receive
= You received a JIRACHI
#org @nick
= Give a nickname to JIRACHI?
The problem is after I receive a Pokémon, the nicknaming screen doesn't show up. And it keeps on repeating the same script again and again after I pressed yes.. help me out.