• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
23
Posts
14
Years
  • Age 29
  • 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.
 
6
Posts
13
Years
  • Seen Apr 8, 2011
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



Code:
'---------------
#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!
 
Last edited:

Teh Blazer

Divider of Zero
776
Posts
15
Years
@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
 

DrFuji

[I]Heiki Hecchara‌‌[/I]
1,691
Posts
14
Years
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:

I like your professor's name a lot :3

Since she has a 'Person ID' it is the most likely thing that is causing her to disappear before you even speak to her. If the ID is the same a a flag that was set previously that is why she is disappearing. If you haven't set the flag that is the same as her ID may be because of an old levelscript (If you haven't removed any of the original ones from the map) that utilises the movesprite command.

@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

Use 0xA, 0xB and 0xC instead of 0x10, 0x11 and 0x12 as you are scripting it in terms of HEX. A-Map doesn't translate their event numbers directly into HEX so keep that in mind if you are scripting with anything over 9.
 
26
Posts
13
Years
  • Seen Jan 22, 2012
Probably something simple, but I can't figure it out, total noob me.

The problem I'm having is that when it is suppose to say "Player recieved the Eevee" it displays a blank box and freezes.

Spoiler:


Yes I'm using Pokescript, I just find it easier.
 
Last edited:
17
Posts
13
Years
  • Age 30
  • Seen Aug 15, 2012
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?
 
Last edited:
6
Posts
13
Years
  • Seen Apr 8, 2011
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!
 

Bolens

Soul Hacker
359
Posts
14
Years
  • Age 30
  • PA
  • Seen Aug 22, 2016
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!
 
6
Posts
13
Years
  • Seen Apr 8, 2011
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'??
 
26
Posts
13
Years
  • Seen Jan 22, 2012
I solved my last 'issue' though I don't know how, but that doesn't matter.

I'm now having another issue

Spoiler:


The script runs the first line then freezes, I think I know what the problem is, because I can't set the Person ID to 1211, and have a trainer ID?
 

colcolstyles

Yours truly
1,588
Posts
15
Years
When I type that and compile it says missing #define, what do I put for the '#define'??

It says that because Bolens gave you an incorrect symbol. You should use one of the following, depending on which game you are hacking:

Code:
setflag RS_PKMNMENU
setflag FR_PKMNMENU
setflag EM_PKMNMENU
 
26
Posts
13
Years
  • Seen Jan 22, 2012
I've started using XSE now, and well its providing problems for me already.

Spoiler:


In the game it only shows the last line, anyone help?
 

Teh Blazer

Divider of Zero
776
Posts
15
Years
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:
 
8
Posts
15
Years
  • Seen Mar 17, 2014
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
 

Nerketur

PokéScripter
104
Posts
13
Years
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^

In order to change where the player starts, I'd recommend HackMew's Start Map Chooser Advance. (SMCA) I'd like to note, though, it will not get rid of the truck sound, even if you change the map to a different one. (I don't know if that matters, but it's good to know in any case)

As for the applymovement command, yes. The movement of the person in AdvanceMap needs to be set to something OTHER than "No Movement" (If you choose "look down", then also set the movement byte under the dropdown box to "11") Aside from that, you don't need anything special.

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.

That would explain things. But then it wouldn't be a "trigger" It would be a Level Script. I'd recommend reading a tutorial on them before progressing. =)

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?

Yes. Virtually all offsets are different between both games. It'd be pretty easy to find, though, with a Hex editor, because they are still in the same order =)

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:

The Pokémon menu flag is 0x828 for FireRed/LeafGreen. If you're using Ruby or Sapphire, it's different. You'll have to look it up.
 

destinedjagold

You can contact me in PC's discord server...
8,593
Posts
16
Years
  • Age 33
  • Seen Dec 23, 2023
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

You'll never learn if you skip through or think those tutorials are gibberish.
Learn from the basics and understand what you're doing.

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:

There's nothing wrong with having two or more level scripts in one map, though, as long as both doesn't have the same level Script Type.
If both your level scripts are using the same Script Type, then why not just unify both into one?

I've started using XSE now, and well its providing problems for me already.

Spoiler:


In the game it only shows the last line, anyone help?

I see nothing wrong with your script.
But probably something went wrong through setting the flags in some of your other scripts.
 
26
Posts
13
Years
  • Seen Jan 22, 2012
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?
 

Nerketur

PokéScripter
104
Posts
13
Years
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.
 
26
Posts
13
Years
  • Seen Jan 22, 2012


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.

Thanks, I'll be careful about that in the future, though that doesn't appear to be the issue here.

I've completed all the scripts that are linked and none of them seem to work properly.

Spoiler:


The above script is attached to 2 script boxes, basically acts as a way of preventing the player from exiting the town before completing an 'event'. This works fine.

Spoiler:


This one is quite random, I've spoke to the person before and it comes up with either the giving running shoes part, or the hopefully I'll feel better part. I'll then go out and in the house and it'll come up with the first line.

Spoiler:


This is the receiving starter pokemon script, when I spoke to him all it came up with was the last line.
 
20
Posts
16
Years
  • Seen Jul 30, 2012
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.

Bump. I've checked the champion battle script and Oak's script, but I can't find the bit of code that activates the roaming pokemon in Leaf Green. I hope someone can give me enough info so I can start. I want to prevent the roaming battle from happening at all, so I'm fine with any way to break that script without breaking other parts of the game.

I hope you guys can help me, thanks.
 
Status
Not open for further replies.
Back
Top