- 23
- Posts
- 15
- Years
- Seen Jun 3, 2013
Okay I have been testing stuff out, and I concluded that the problem exists because I have it being used as a map load script so when I enter a map.
'---------------
#org 0x152D9A
lock
faceplayer
if 0x0 goto 0x86B34D5
release
end
'---------------
#org 0x6B34D5
lock
faceplayer
msgbox 0x86B5624 MSG_YESNO '"PROF. LILAC: Ah, [player]!\pHow wo..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3510
compare LASTRESULT 0x1
if 0x1 goto 0x86B351B
release
end
'---------------
#org 0x6B3510
msgbox 0x86B5DF0 MSG_KEEPOPEN '"PROF. LILAC: Well alright..."
release
end
'---------------
#org 0x6B351B
lock
faceplayer
msgbox 0x86B64B9 MSG_YESNO '"PROF. LILAC: OK.\pWould you like a..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B353E
compare LASTRESULT 0x1
if 0x1 goto 0x86B3584
release
end
'---------------
#org 0x6B353E
lock
faceplayer
msgbox 0x86B55E3 MSG_YESNO '"Fine.\pDo you want a Water \ntype ..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3561
compare LASTRESULT 0x1
if 0x1 goto 0x86B4EB4
release
end
'---------------
#org 0x6B3584
lock
faceplayer
msgbox 0x86B559B MSG_YESNO '"Do You want CHARMANDER?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B35A7
compare LASTRESULT 0x1
if 0x1 goto 0x86B36B9
release
end
'---------------
#org 0x6B3561
lock
faceplayer
msgbox 0x86B55B5 MSG_YESNO '"Alright.\pDo You want a Grass\n Ty..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3561
compare LASTRESULT 0x1
if 0x1 goto 0x86B4FB7
release
end
'---------------
#org 0x6B4EB4
faceplayer
msgbox 0x86B5DC1 MSG_YESNO '"Do you want SQUIRTLE?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B37B5
compare LASTRESULT 0x1
if 0x1 goto 0x86B3776
release
end
'---------------
#org 0x6B35A7
lock
faceplayer
msgbox 0x86B5DD9 MSG_YESNO '"How about CYNDAQUIL?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B4DA3
compare LASTRESULT 0x1
if 0x1 goto 0x86B36F8
release
end
'---------------
#org 0x6B36B9
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5E70 MSG_KEEPOPEN '"(player) received a CHARMANDER!"
waitfanfare
closeonkeypress
setvar 0x4000 0x0
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B4FB7
faceplayer
msgbox 0x86B5E0F MSG_YESNO '"Do you want BULBASAUR?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B4FD9
compare LASTRESULT 0x1
if 0x1 goto 0x86B62FF
release
end
'---------------
#org 0x6B37B5
givepokemon 0x158 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5EF2 MSG_KEEPOPEN '"(player) received a TOTODILE!"
waitfanfare
closeonkeypress
setvar 0x4000 0x4
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B3776
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5ED2 MSG_KEEPOPEN '"(player) received a SQUIRTLE!"
waitfanfare
closeonkeypress
setvar 0x4000 0x3
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B4DA3
lock
faceplayer
msgbox 0x86B560E MSG_YESNO '"What about TORCHIC?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B351B
compare LASTRESULT 0x1
if 0x1 goto 0x86B3737
release
end
'---------------
#org 0x6B36F8
givepokemon 0x155 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5E92 MSG_KEEPOPEN '"(player) received a CYNDAQUIL!"
waitfanfare
closeonkeypress
setvar 0x4000 0x1
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x1A74EB
'---------------
#org 0x6B4FD9
faceplayer
msgbox 0x86B5E3E MSG_YESNO '"How about CHIKORITA?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B5FB4
compare LASTRESULT 0x1
if 0x1 goto 0x86B633E
release
end
'---------------
#org 0x6B62FF
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F30 MSG_KEEPOPEN '"(player) received a BULBASAUR!"
waitfanfare
closeonkeypress
setvar 0x4000 0x6
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B3737
givepokemon 0x280 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5EB3 MSG_KEEPOPEN '"(player) received a TORCHIC!"
waitfanfare
closeonkeypress
setvar 0x4000 0x2
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B5FB4
faceplayer
msgbox 0x86B5E55 MSG_YESNO '"What about want TREECKO?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B351B
compare LASTRESULT 0x1
if 0x1 goto 0x86B38B1
release
end
'---------------
#org 0x6B633E
givepokemon 0x152 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F51 MSG_KEEPOPEN '"(player) received a CHIKORITA!"
waitfanfare
closeonkeypress
setvar 0x4000 0x7
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B38B1
givepokemon 0x277 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F72 MSG_KEEPOPEN '"(player) received a TREECKO!"
waitfanfare
closeonkeypress
setvar 0x4000 0x8
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------
' Strings
'---------
#org 0x6B5624
= PROF. LILAC: Ah, [player]!\pHow would you like a POKEMON?
#org 0x6B5DF0
= PROF. LILAC: Well alright...
#org 0x6B64B9
= PROF. LILAC: OK.\pWould you like a Fire \nType POKEMON?
#org 0x6B55E3
= Fine.\pDo you want a Water \ntype POKEMON?
#org 0x6B559B
= Do You want CHARMANDER?
#org 0x6B55B5
= Alright.\pDo You want a Grass\n Type POKEMON?
#org 0x6B5DC1
= Do you want SQUIRTLE?
#org 0x6B5DD9
= How about CYNDAQUIL?
#org 0x6B5E70
= (player) received a CHARMANDER!
#org 0x6B5F91
= You should name your\nnew POKEMON.
#org 0x6B38F1
= This is the start\nof your adventure,\n(player)!
#org 0x6B5E0F
= Do you want BULBASAUR?
#org 0x6B5EF2
= (player) received a TOTODILE!
#org 0x6B5ED2
= (player) received a SQUIRTLE!
#org 0x6B560E
= What about TORCHIC?
#org 0x6B5E92
= (player) received a CYNDAQUIL!
#org 0x6B5E3E
= How about CHIKORITA?
#org 0x6B5F30
= (player) received a BULBASAUR!
#org 0x6B5EB3
= (player) received a TORCHIC!
#org 0x6B5E55
= What about want TREECKO?
#org 0x6B5F51
= (player) received a CHIKORITA!
#org 0x6B5F72
= (player) received a TREECKO!
'---------------
#org 0x812F83
lock
applymovement 0x3 0x881228E
applymovement 0x9 0x8812294
applymovement 0x8 0x8812294
applymovement 0x7 0x8812294
applymovement 0x6 0x8812294
waitmovement 0x0
hidesprite 0x3
hidesprite 0x6
hidesprite 0x7
hidesprite 0x8
hidesprite 0x9
hidesprite 0x10
hidesprite 0x11
hidesprite 0x12
setflag 0x42
setflag 0x47
setvar 0x7001 0x1
setflag 0x41
release
end
So, I want Professor Lilac (PKMN. PROF. in my game) to ask the player what type of pokemon they want, and then which pokemon in that category, and if they say no to all, then she starts at the top again. The player starts in the Lab, and the problem is, Prof. Lilac's sprite isnt even there when I start the game! Please help this is my first time scripting and I still havent gotten a nice scrip to work...:'( Its a ruby hack btw
EDIT---Yes she has a person Id
Spoiler:
'---------------
#org 0x152D9A
lock
faceplayer
if 0x0 goto 0x86B34D5
release
end
'---------------
#org 0x6B34D5
lock
faceplayer
msgbox 0x86B5624 MSG_YESNO '"PROF. LILAC: Ah, [player]!\pHow wo..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3510
compare LASTRESULT 0x1
if 0x1 goto 0x86B351B
release
end
'---------------
#org 0x6B3510
msgbox 0x86B5DF0 MSG_KEEPOPEN '"PROF. LILAC: Well alright..."
release
end
'---------------
#org 0x6B351B
lock
faceplayer
msgbox 0x86B64B9 MSG_YESNO '"PROF. LILAC: OK.\pWould you like a..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B353E
compare LASTRESULT 0x1
if 0x1 goto 0x86B3584
release
end
'---------------
#org 0x6B353E
lock
faceplayer
msgbox 0x86B55E3 MSG_YESNO '"Fine.\pDo you want a Water \ntype ..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3561
compare LASTRESULT 0x1
if 0x1 goto 0x86B4EB4
release
end
'---------------
#org 0x6B3584
lock
faceplayer
msgbox 0x86B559B MSG_YESNO '"Do You want CHARMANDER?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B35A7
compare LASTRESULT 0x1
if 0x1 goto 0x86B36B9
release
end
'---------------
#org 0x6B3561
lock
faceplayer
msgbox 0x86B55B5 MSG_YESNO '"Alright.\pDo You want a Grass\n Ty..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3561
compare LASTRESULT 0x1
if 0x1 goto 0x86B4FB7
release
end
'---------------
#org 0x6B4EB4
faceplayer
msgbox 0x86B5DC1 MSG_YESNO '"Do you want SQUIRTLE?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B37B5
compare LASTRESULT 0x1
if 0x1 goto 0x86B3776
release
end
'---------------
#org 0x6B35A7
lock
faceplayer
msgbox 0x86B5DD9 MSG_YESNO '"How about CYNDAQUIL?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B4DA3
compare LASTRESULT 0x1
if 0x1 goto 0x86B36F8
release
end
'---------------
#org 0x6B36B9
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5E70 MSG_KEEPOPEN '"(player) received a CHARMANDER!"
waitfanfare
closeonkeypress
setvar 0x4000 0x0
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B4FB7
faceplayer
msgbox 0x86B5E0F MSG_YESNO '"Do you want BULBASAUR?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B4FD9
compare LASTRESULT 0x1
if 0x1 goto 0x86B62FF
release
end
'---------------
#org 0x6B37B5
givepokemon 0x158 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5EF2 MSG_KEEPOPEN '"(player) received a TOTODILE!"
waitfanfare
closeonkeypress
setvar 0x4000 0x4
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B3776
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5ED2 MSG_KEEPOPEN '"(player) received a SQUIRTLE!"
waitfanfare
closeonkeypress
setvar 0x4000 0x3
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B4DA3
lock
faceplayer
msgbox 0x86B560E MSG_YESNO '"What about TORCHIC?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B351B
compare LASTRESULT 0x1
if 0x1 goto 0x86B3737
release
end
'---------------
#org 0x6B36F8
givepokemon 0x155 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5E92 MSG_KEEPOPEN '"(player) received a CYNDAQUIL!"
waitfanfare
closeonkeypress
setvar 0x4000 0x1
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x1A74EB
'---------------
#org 0x6B4FD9
faceplayer
msgbox 0x86B5E3E MSG_YESNO '"How about CHIKORITA?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B5FB4
compare LASTRESULT 0x1
if 0x1 goto 0x86B633E
release
end
'---------------
#org 0x6B62FF
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F30 MSG_KEEPOPEN '"(player) received a BULBASAUR!"
waitfanfare
closeonkeypress
setvar 0x4000 0x6
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B3737
givepokemon 0x280 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5EB3 MSG_KEEPOPEN '"(player) received a TORCHIC!"
waitfanfare
closeonkeypress
setvar 0x4000 0x2
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B5FB4
faceplayer
msgbox 0x86B5E55 MSG_YESNO '"What about want TREECKO?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B351B
compare LASTRESULT 0x1
if 0x1 goto 0x86B38B1
release
end
'---------------
#org 0x6B633E
givepokemon 0x152 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F51 MSG_KEEPOPEN '"(player) received a CHIKORITA!"
waitfanfare
closeonkeypress
setvar 0x4000 0x7
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B38B1
givepokemon 0x277 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F72 MSG_KEEPOPEN '"(player) received a TREECKO!"
waitfanfare
closeonkeypress
setvar 0x4000 0x8
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------
' Strings
'---------
#org 0x6B5624
= PROF. LILAC: Ah, [player]!\pHow would you like a POKEMON?
#org 0x6B5DF0
= PROF. LILAC: Well alright...
#org 0x6B64B9
= PROF. LILAC: OK.\pWould you like a Fire \nType POKEMON?
#org 0x6B55E3
= Fine.\pDo you want a Water \ntype POKEMON?
#org 0x6B559B
= Do You want CHARMANDER?
#org 0x6B55B5
= Alright.\pDo You want a Grass\n Type POKEMON?
#org 0x6B5DC1
= Do you want SQUIRTLE?
#org 0x6B5DD9
= How about CYNDAQUIL?
#org 0x6B5E70
= (player) received a CHARMANDER!
#org 0x6B5F91
= You should name your\nnew POKEMON.
#org 0x6B38F1
= This is the start\nof your adventure,\n(player)!
#org 0x6B5E0F
= Do you want BULBASAUR?
#org 0x6B5EF2
= (player) received a TOTODILE!
#org 0x6B5ED2
= (player) received a SQUIRTLE!
#org 0x6B560E
= What about TORCHIC?
#org 0x6B5E92
= (player) received a CYNDAQUIL!
#org 0x6B5E3E
= How about CHIKORITA?
#org 0x6B5F30
= (player) received a BULBASAUR!
#org 0x6B5EB3
= (player) received a TORCHIC!
#org 0x6B5E55
= What about want TREECKO?
#org 0x6B5F51
= (player) received a CHIKORITA!
#org 0x6B5F72
= (player) received a TREECKO!
@cand098 : Does the Porfessor have any person ID? (Check it in Advance Map)
Now for my own problem, when I use this level script, I can't seem to get it to work. It works part way, but some of the people I want to "Disappear" don't disappear. It's strange because the others disappear, it's only some few people that don't. They are assigned the Id 47 and I even have setflag 0x47. If that's not enough, they have the event numbers 10, 11, and 12, which I also put in for the hidesprite command. Who knows what i did wrong? Btw, this is in XSE.
Code:'--------------- #org 0x812F83 lock applymovement 0x3 0x881228E applymovement 0x9 0x8812294 applymovement 0x8 0x8812294 applymovement 0x7 0x8812294 applymovement 0x6 0x8812294 waitmovement 0x0 hidesprite 0x3 hidesprite 0x6 hidesprite 0x7 hidesprite 0x8 hidesprite 0x9 hidesprite 0x10 hidesprite 0x11 hidesprite 0x12 setflag 0x42 setflag 0x47 setvar 0x7001 0x1 setflag 0x41 release end
'---------------
#org 0x152D9A
lock
faceplayer
msgbox 0x86B5624 MSG_YESNO '"PROF. LILAC: Ah, [player]!\pHow wo..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3510
compare LASTRESULT 0x1
if 0x1 goto 0x86B351B
release
end
'---------------
#org 0x6B3510
msgbox 0x86B5DF0 MSG_KEEPOPEN '"PROF. LILAC: Well alright..."
release
end
'---------------
#org 0x6B351B
lock
faceplayer
msgbox 0x86B64B9 MSG_YESNO '"PROF. LILAC: OK.\pWould you like a..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B353E
compare LASTRESULT 0x1
if 0x1 goto 0x86B3584
release
end
'---------------
#org 0x6B353E
lock
faceplayer
msgbox 0x86B55E3 MSG_YESNO '"Fine.\pDo you want a Water \ntype ..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3561
compare LASTRESULT 0x1
if 0x1 goto 0x86B4EB4
release
end
'---------------
#org 0x6B3584
lock
faceplayer
msgbox 0x86B559B MSG_YESNO '"Do You want CHARMANDER?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B35A7
compare LASTRESULT 0x1
if 0x1 goto 0x86B36B9
release
end
'---------------
#org 0x6B3561
lock
faceplayer
msgbox 0x86B55B5 MSG_YESNO '"Alright.\pDo You want a Grass\n Ty..."
compare LASTRESULT 0x0
if 0x1 goto 0x86B3561
compare LASTRESULT 0x1
if 0x1 goto 0x86B4FB7
release
end
'---------------
#org 0x6B4EB4
faceplayer
msgbox 0x86B5DC1 MSG_YESNO '"Do you want SQUIRTLE?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B37B5
compare LASTRESULT 0x1
if 0x1 goto 0x86B3776
release
end
'---------------
#org 0x6B35A7
lock
faceplayer
msgbox 0x86B5DD9 MSG_YESNO '"How about CYNDAQUIL?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B4DA3
compare LASTRESULT 0x1
if 0x1 goto 0x86B36F8
release
end
'---------------
#org 0x6B36B9
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5E70 MSG_KEEPOPEN '"[player] received a CHARMANDER!"
waitfanfare
closeonkeypress
setvar 0x4000 0x0
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B4FB7
faceplayer
msgbox 0x86B5E0F MSG_YESNO '"Do you want BULBASAUR?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B4FD9
compare LASTRESULT 0x1
if 0x1 goto 0x86B62FF
release
end
'---------------
#org 0x6B37B5
givepokemon 0x158 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5EF2 MSG_KEEPOPEN '"[player] received a TOTODILE!"
waitfanfare
closeonkeypress
setvar 0x4000 0x4
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B3776
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5ED2 MSG_KEEPOPEN '"[player] received a SQUIRTLE!"
waitfanfare
closeonkeypress
setvar 0x4000 0x3
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B4DA3
lock
faceplayer
msgbox 0x86B560E MSG_YESNO '"What about TORCHIC?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B351B
compare LASTRESULT 0x1
if 0x1 goto 0x86B3737
release
end
'---------------
#org 0x6B36F8
givepokemon 0x155 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5E92 MSG_KEEPOPEN '"[player] received a CYNDAQUIL!"
waitfanfare
closeonkeypress
setvar 0x4000 0x1
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x1A74EB
'---------------
#org 0x6B4FD9
faceplayer
msgbox 0x86B5E3E MSG_YESNO '"How about CHIKORITA?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B5FB4
compare LASTRESULT 0x1
if 0x1 goto 0x86B633E
release
end
'---------------
#org 0x6B62FF
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F30 MSG_KEEPOPEN '"[player] received a BULBASAUR!"
waitfanfare
closeonkeypress
setvar 0x4000 0x6
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B3737
givepokemon 0x280 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5EB3 MSG_KEEPOPEN '"[player] received a TORCHIC!"
waitfanfare
closeonkeypress
setvar 0x4000 0x2
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B5FB4
faceplayer
msgbox 0x86B5E55 MSG_YESNO '"What about want TREECKO?"
compare LASTRESULT 0x0
if 0x1 goto 0x86B351B
compare LASTRESULT 0x1
if 0x1 goto 0x86B38B1
release
end
'---------------
#org 0x6B633E
givepokemon 0x152 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F51 MSG_KEEPOPEN '"[player] received a CHIKORITA!"
waitfanfare
closeonkeypress
setvar 0x4000 0x7
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------------
#org 0x6B38B1
givepokemon 0x277 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x86B5F72 MSG_KEEPOPEN '"[player] received a TREECKO!"
waitfanfare
closeonkeypress
setvar 0x4000 0x8
msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON."
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..."
release
end
'---------
' Strings
'---------
#org 0x6B5624
= PROF. LILAC: Ah, [player]!\pHow would you like a POKEMON?
#org 0x6B5DF0
= PROF. LILAC: Well alright...
#org 0x6B64B9
= PROF. LILAC: OK.\pWould you like a Fire \nType POKEMON?
#org 0x6B55E3
= Fine.\pDo you want a Water \ntype POKEMON?
#org 0x6B559B
= Do You want CHARMANDER?
#org 0x6B55B5
= Alright.\pDo You want a Grass\n Type POKEMON?
#org 0x6B5DC1
= Do you want SQUIRTLE?
#org 0x6B5DD9
= How about CYNDAQUIL?
#org 0x6B5E70
= [player] received a CHARMANDER!
#org 0x6B5F91
= You should name your\nnew POKEMON.
#org 0x6B38F1
= This is the start\nof your adventure,\n[player]!
#org 0x6B5E0F
= Do you want BULBASAUR?
#org 0x6B5EF2
= [player] received a TOTODILE!
#org 0x6B5ED2
= [player] received a SQUIRTLE!
#org 0x6B560E
= What about TORCHIC?
#org 0x6B5E92
= [player] received a CYNDAQUIL!
#org 0x6B5E3E
= How about CHIKORITA?
#org 0x6B5F30
= [player] received a BULBASAUR!
#org 0x6B5EB3
= [player] received a TORCHIC!
#org 0x6B5E55
= What about want TREECKO?
#org 0x6B5F51
= [player] received a CHIKORITA!
#org 0x6B5F72
= [player] received a TREECKO!
Ok, hopefully the LAST problem with this script, actually 2 problems, Everything works fine, and it acts like the professor gives you the pokemon you chose, but when she ask for a nickname and you say yes, the question asking you to give one stays up and if you push A, it starts the text over again...And if thats not bad enough even after you say no, the pokemon option on the start menu isn't even there! In an xse tutorial I copied the offset for the nickname, but that was fire red and I guess the nickname script is in a diffrent place in Ruby, and I have no idea why there is no pokemon tab... Please help...
Code:'--------------- #org 0x152D9A lock faceplayer msgbox 0x86B5624 MSG_YESNO '"PROF. LILAC: Ah, [player]!\pHow wo..." compare LASTRESULT 0x0 if 0x1 goto 0x86B3510 compare LASTRESULT 0x1 if 0x1 goto 0x86B351B release end '--------------- #org 0x6B3510 msgbox 0x86B5DF0 MSG_KEEPOPEN '"PROF. LILAC: Well alright..." release end '--------------- #org 0x6B351B lock faceplayer msgbox 0x86B64B9 MSG_YESNO '"PROF. LILAC: OK.\pWould you like a..." compare LASTRESULT 0x0 if 0x1 goto 0x86B353E compare LASTRESULT 0x1 if 0x1 goto 0x86B3584 release end '--------------- #org 0x6B353E lock faceplayer msgbox 0x86B55E3 MSG_YESNO '"Fine.\pDo you want a Water \ntype ..." compare LASTRESULT 0x0 if 0x1 goto 0x86B3561 compare LASTRESULT 0x1 if 0x1 goto 0x86B4EB4 release end '--------------- #org 0x6B3584 lock faceplayer msgbox 0x86B559B MSG_YESNO '"Do You want CHARMANDER?" compare LASTRESULT 0x0 if 0x1 goto 0x86B35A7 compare LASTRESULT 0x1 if 0x1 goto 0x86B36B9 release end '--------------- #org 0x6B3561 lock faceplayer msgbox 0x86B55B5 MSG_YESNO '"Alright.\pDo You want a Grass\n Ty..." compare LASTRESULT 0x0 if 0x1 goto 0x86B3561 compare LASTRESULT 0x1 if 0x1 goto 0x86B4FB7 release end '--------------- #org 0x6B4EB4 faceplayer msgbox 0x86B5DC1 MSG_YESNO '"Do you want SQUIRTLE?" compare LASTRESULT 0x0 if 0x1 goto 0x86B37B5 compare LASTRESULT 0x1 if 0x1 goto 0x86B3776 release end '--------------- #org 0x6B35A7 lock faceplayer msgbox 0x86B5DD9 MSG_YESNO '"How about CYNDAQUIL?" compare LASTRESULT 0x0 if 0x1 goto 0x86B4DA3 compare LASTRESULT 0x1 if 0x1 goto 0x86B36F8 release end '--------------- #org 0x6B36B9 givepokemon 0x4 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox 0x86B5E70 MSG_KEEPOPEN '"[player] received a CHARMANDER!" waitfanfare closeonkeypress setvar 0x4000 0x0 msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON." compare LASTRESULT 0x1 if 0x1 call 0x81A74EB msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..." release end '--------------- #org 0x6B4FB7 faceplayer msgbox 0x86B5E0F MSG_YESNO '"Do you want BULBASAUR?" compare LASTRESULT 0x0 if 0x1 goto 0x86B4FD9 compare LASTRESULT 0x1 if 0x1 goto 0x86B62FF release end '--------------- #org 0x6B37B5 givepokemon 0x158 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox 0x86B5EF2 MSG_KEEPOPEN '"[player] received a TOTODILE!" waitfanfare closeonkeypress setvar 0x4000 0x4 msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON." compare LASTRESULT 0x1 if 0x1 call 0x81A74EB msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..." release end '--------------- #org 0x6B3776 givepokemon 0x7 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox 0x86B5ED2 MSG_KEEPOPEN '"[player] received a SQUIRTLE!" waitfanfare closeonkeypress setvar 0x4000 0x3 msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON." compare LASTRESULT 0x1 if 0x1 call 0x81A74EB msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..." release end '--------------- #org 0x6B4DA3 lock faceplayer msgbox 0x86B560E MSG_YESNO '"What about TORCHIC?" compare LASTRESULT 0x0 if 0x1 goto 0x86B351B compare LASTRESULT 0x1 if 0x1 goto 0x86B3737 release end '--------------- #org 0x6B36F8 givepokemon 0x155 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox 0x86B5E92 MSG_KEEPOPEN '"[player] received a CYNDAQUIL!" waitfanfare closeonkeypress setvar 0x4000 0x1 msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON." compare LASTRESULT 0x1 if 0x1 call 0x81A74EB msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..." release end '--------------- #org 0x1A74EB '--------------- #org 0x6B4FD9 faceplayer msgbox 0x86B5E3E MSG_YESNO '"How about CHIKORITA?" compare LASTRESULT 0x0 if 0x1 goto 0x86B5FB4 compare LASTRESULT 0x1 if 0x1 goto 0x86B633E release end '--------------- #org 0x6B62FF givepokemon 0x1 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox 0x86B5F30 MSG_KEEPOPEN '"[player] received a BULBASAUR!" waitfanfare closeonkeypress setvar 0x4000 0x6 msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON." compare LASTRESULT 0x1 if 0x1 call 0x81A74EB msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..." release end '--------------- #org 0x6B3737 givepokemon 0x280 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox 0x86B5EB3 MSG_KEEPOPEN '"[player] received a TORCHIC!" waitfanfare closeonkeypress setvar 0x4000 0x2 msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON." compare LASTRESULT 0x1 if 0x1 call 0x81A74EB msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..." release end '--------------- #org 0x6B5FB4 faceplayer msgbox 0x86B5E55 MSG_YESNO '"What about want TREECKO?" compare LASTRESULT 0x0 if 0x1 goto 0x86B351B compare LASTRESULT 0x1 if 0x1 goto 0x86B38B1 release end '--------------- #org 0x6B633E givepokemon 0x152 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox 0x86B5F51 MSG_KEEPOPEN '"[player] received a CHIKORITA!" waitfanfare closeonkeypress setvar 0x4000 0x7 msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON." compare LASTRESULT 0x1 if 0x1 call 0x81A74EB msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..." release end '--------------- #org 0x6B38B1 givepokemon 0x277 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox 0x86B5F72 MSG_KEEPOPEN '"[player] received a TREECKO!" waitfanfare closeonkeypress setvar 0x4000 0x8 msgbox 0x86B5F91 MSG_YESNO '"You should name your\nnew POKEMON." compare LASTRESULT 0x1 if 0x1 call 0x81A74EB msgbox 0x86B38F1 MSG_NORMAL '"This is the start\nof your adventu..." release end '--------- ' Strings '--------- #org 0x6B5624 = PROF. LILAC: Ah, [player]!\pHow would you like a POKEMON? #org 0x6B5DF0 = PROF. LILAC: Well alright... #org 0x6B64B9 = PROF. LILAC: OK.\pWould you like a Fire \nType POKEMON? #org 0x6B55E3 = Fine.\pDo you want a Water \ntype POKEMON? #org 0x6B559B = Do You want CHARMANDER? #org 0x6B55B5 = Alright.\pDo You want a Grass\n Type POKEMON? #org 0x6B5DC1 = Do you want SQUIRTLE? #org 0x6B5DD9 = How about CYNDAQUIL? #org 0x6B5E70 = [player] received a CHARMANDER! #org 0x6B5F91 = You should name your\nnew POKEMON. #org 0x6B38F1 = This is the start\nof your adventure,\n[player]! #org 0x6B5E0F = Do you want BULBASAUR? #org 0x6B5EF2 = [player] received a TOTODILE! #org 0x6B5ED2 = [player] received a SQUIRTLE! #org 0x6B560E = What about TORCHIC? #org 0x6B5E92 = [player] received a CYNDAQUIL! #org 0x6B5E3E = How about CHIKORITA? #org 0x6B5F30 = [player] received a BULBASAUR! #org 0x6B5EB3 = [player] received a TORCHIC! #org 0x6B5E55 = What about want TREECKO? #org 0x6B5F51 = [player] received a CHIKORITA! #org 0x6B5F72 = [player] received a TREECKO!
Well I don't really have too much time to help you, but the Pokemon menu will only appear when you set the flag: setflag POKEMON . That will make the Pokemon menu appear!
When I type that and compile it says missing #define, what do I put for the '#define'??
setflag RS_PKMNMENU
setflag FR_PKMNMENU
setflag EM_PKMNMENU
Thanks for the help, the script now works!
I just have another question...How do I change where the player starts when the player starts a new game? I'm modifying a Ruby Rom, and it starts by having seperate genders in seperate houses, but I want to change that so both genders start in one house, and in their room instead of outside the house and all that walking, etc.
Also, when you have a script, i think i know what to do, but when you have a person event, and you want them to walk away, do you have to do anything special to make the applymovement command work?
Thanks for the help ^w^
Okay I have been testing stuff out, and I concluded that the problem exists because I have it being used as a map load script so when I enter a map.
How do I find the choice list ID #s in XSE? I'm trying to edit the Game Corner.
Edit: OK so I found the offset for the multichoices in FireRed but I'm hacking LeafGreen. Is the offset different?
I've just put a level script on the same map as another level script (Is that bad, two level scripts on the same area?). I can get the first to activate no problem, but the second one checks for the Po0kedex flag and activates afetr that. The problem is I can't seem to activate the second one, even after the conditions are set. This is XSE. Here is the second script:
Spoiler:
#dynamic 0x810000
#org @start
lockall
setvar 0x7003 0x1
checkflag 0x828 //Assuming you're using Fire-red, the flag is 0x828, not 0x829
if 0x0 goto 0x881048D
goto @begin
#org @begin
clearflag 0x47
showsprite 0xA
showsprite 0xB
showsprite 0xC
applymovement 0xFF @Down
msgbox @Mom1 0x6
applymovement 0xA @Up
waitmovement 0x0
fanfare 0x13D
call @newmaps
waitfanfare
hidepokepic
additem 0x169 0x1
loadpointer 0x0 @recieve '"[player] obtained a [blue_fr]Town ..."
giveitem2 0x169 0x1 0x13E
applymovement 0xA @LeftLookUp
waitmovement 0x0
msgbox @Mom2 0x6
msgbox @Ch1 0x6
applymovement 0xA @RightRightLookUp
waitmovement 0x0
msgbox @Mom3 0x6
msgbox @Bel1 0x6
applymovement 0xA @DownLookUp
waitmovement 0x0
msgbox @Mom4 0x6
applymovement 0xA @LeftLookUp
waitmovement 0x0
msgbox @Mom5 0x6
applymovement 0xA 0x881228E
waitmovement 0x0
applymovement 0xB @LookRight
waitmovement 0x0
applymovement 0xFF @LookLeft
applymovement 0xC @LookLeft
waitmovement 0x0
msgbox @Ch2 0x6
applymovement 0xC @StepStepRight
waitmovement 0x0
msgbox @Bel2 0x6
applymovement 0xB @UpRight9Times
applymovement 0xC @Right7Times
applymovement 0xFF @LookRight
waitmovement 0x0
pause 0x40
hidesprite 0xA
hidesprite 0xB
hidesprite 0xC
setflag 0x47
setflag 0x16F
releaseall
end
#org @newmaps
showpokepic 0x2 0x1 0x1
hidebox 0x1 0x1 0xF 0xF
pause 0x1
hidepokepic
showpokepic 0x101 0x2 0x7
hidebox 0x2 0x7 0xE 0xE
return
#org 0x81048D
releaseall
end
hey maybe some body can help me out here im wondering how i can change the script for when you get your starter i want to ad more then 3 can any tell me how to do that like break down what is what in that script ive tried reading tutorials its all just gibberish to me i cant make seance of it
I've just put a level script on the same map as another level script (Is that bad, two level scripts on the same area?). I can get the first to activate no problem, but the second one checks for the Po0kedex flag and activates afetr that. The problem is I can't seem to activate the second one, even after the conditions are set. This is XSE. Here is the second script:
Spoiler:
#dynamic 0x810000
#org @start
lockall
setvar 0x7003 0x1
checkflag 0x829
if 0x0 goto 0x881048D
goto @begin
#org @begin
clearflag 0x47
showsprite 0xA
showsprite 0xB
showsprite 0xC
applymovement 0xFF @Down
msgbox @Mom1 0x6
applymovement 0xA @Up
waitmovement 0x0
fanfare 0x13D
call @newmaps
waitfanfare
hidepokepic
additem 0x169 0x1
loadpointer 0x0 @recieve '"[player] obtained a [blue_fr]Town ..."
giveitem2 0x169 0x1 0x13E
applymovement 0xA @LeftLookUp
waitmovement 0x0
msgbox @Mom2 0x6
msgbox @Ch1 0x6
applymovement 0xA @RightRightLookUp
waitmovement 0x0
msgbox @Mom3 0x6
msgbox @Bel1 0x6
applymovement 0xA @DownLookUp
waitmovement 0x0
msgbox @Mom4 0x6
applymovement 0xA @LeftLookUp
waitmovement 0x0
msgbox @Mom5 0x6
applymovement 0xA 0x881228E
waitmovement 0x0
applymovement 0xB @LookRight
waitmovement 0x0
applymovement 0xFF @LookLeft
applymovement 0xC @LookLeft
waitmovement 0x0
msgbox @Ch2 0x6
applymovement 0xC @StepStepRight
waitmovement 0x0
msgbox @Bel2 0x6
applymovement 0xB @UpRight9Times
applymovement 0xC @Right7Times
applymovement 0xFF @LookRight
waitmovement 0x0
pause 0x40
hidesprite 0xA
hidesprite 0xB
hidesprite 0xC
setflag 0x47
setflag 0x16F
releaseall
end
#org @newmaps
showpokepic 0x2 0x1 0x1
hidebox 0x1 0x1 0xF 0xF
pause 0x1
hidepokepic
showpokepic 0x101 0x2 0x7
hidebox 0x2 0x7 0xE 0xE
return
#org 0x81048D
releaseall
end
I've started using XSE now, and well its providing problems for me already.
Spoiler:#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x2000
if 0x01 goto @done
checkflag 0x2001
if 0x01 goto @done1
msgbox @1 0x6
setvar 0x6000 0x01
release
end
#org @1
= Emily: Hey [player]!\nI'm not feeling too well would you\l please get my Pok\h1bmon from Prof. Fir\lfor me?
#org @done
msgbox @2 0x6
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
clearflag 0x2000
release
end
#org @2
= Emily: Thank you [player]!\nIt's just the Pok\h1bmon I wanted.\p...\pSince you did this for me I'd like to give\nyou these.\lI hope they are useful!
#org @3
= [player] recieved the Running Shoes.
#org @done1
msgbox @4 0x6
release
end
#org @4
= Emily: Hopefully I'll feel better soon!
In the game it only shows the last line, anyone help?
To the person above, I haven't set any other scripts up, except two script boxes which are triggered by the setvar 0x6000 in that script. Could it be because I haven't got those flag set anywhere?
I know I'm not the person you spoke to... but you should be careful with using variables from 0x5000 and up, because unless you're using JPAN's hacked engine, you'll be overwriting Pokémon box data with values higher than 0x4FFF You can see the research and Development thread for more info. Variables are NOT the same as flags. Similar, yes, but different.
How can I prevent the roaming legendary from roaming? Any way to break the script without causing damage to other parts of the game would be great. Thank you in advance.