Tannecho51
Pokemon Lion's Eye
- 11
- Posts
- 14
- Years
- Illinois
- Seen Jun 28, 2013
The pokémon that is displayed on the nicknaming screen is dependent on the value stored in variable '0x8004'. Try inserting this right before calling the nicknaming function:
Code:countpokemon subvar LASTRESULT 0x1 copyvar 0x8004 LASTRESULT
How would you do that for Ruby?
Also, sort of bumping my last post.
How come the applymovements in the script below don't work? Something I've noted is that one of the person events disappears and the person I'm trying to move's picture is reset to the hero. I have 300 and 4050 in the script box.
The script:
Spoiler:
#dynamic 0x800000
#org @start
lock
checkflag 0x1201
if 0x1 goto @done
checkflag 0x1202
if 0x1 goto @done
checkflag 0x1203
if 0x1 goto @done
goto @begin
#org @begin
applymovement 0x9 @move1
waitmovement 0x9
msgbox @intro 0x6
goto @treecko
#org @move1
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x04
#raw 0x04
#raw 0xFE
#org @move2
#raw 0x05
#raw 0x05
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0xFE
#org @intro
=
#org @treecko
showpokepic 0x115 0xA 0x3
msgbox @treeckom 0x5
compare LASTRESULT 0x1
hidepokepic
if 0x1 goto @treeckoget
goto @torchic
#org @treeckoget
givepokemon 0x115 0x5 0x0 0x0 0x0 0x0
setflag 0x1201
goto @name
release
end
#org @treeckom
=
#org @torchic
showpokepic 0x118 0xA 0x3
msgbox @torchicm 0x5
compare LASTRESULT 0x1
hidepokepic
if 0x1 goto @torchicget
goto @mudkip
#org @torchicget
givepokemon 0x118 0x5 0x0 0x0 0x0 0x0
setflag 0x1203
goto @name
#org @torchicm
=
#org @mudkip
showpokepic 0x11B 0xA 0x3
msgbox @mudkipm 0x6
givepokemon 0x11B 0x5 0x0 0x0 0x0 0x0
hidepokepic
setflag 0x1203
goto @name
#org @mudkipm
=
#org @name
setflag 0x800
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 call @naming
msgbox @2 0x6
applymovement 0x6 @move2
waitmovement 0x6
release
end
#org @naming
special 0x166
waitstate
return
#org @1
=
#org @2
=
#org @done
release
end