• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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 Requests/Sharing/Discussion

Status
Not open for further replies.
So can I get some help with this one? I know I come here a lot, but I was dazed when I was writing this one so I don't know what I forgot to put in.
Code:
#org $dex
lock
faceplayer
checkflag 0x204
compare lastresult 1
if b_true goto $hey
message $give
$give 1 = Hey \v\h01, so this\nis your birthday? Well, Sam said you\n would be by to pick up your\npokemon. First take this,
setflag 0x829 ' No need for 'setflag 0x828' That just opens the POKèMON menu
special 0x16F
message $recieved
$recieved 1 = You recieved the Pokedex!!
boxset 6
message $follow
$follow 1 = Now for your Pokemon,\nfollow me.
boxset 6
applymovement [B]0x03[/B] $walk1
[B]applymovement 0xFF $walk1[/B] ' To follow people no. 3
$walk1 1 ; 0x01 0x09 0x09 0x04  ' You don't have to put '#binary'
pausemove 0
message $pick
$pick 1 = Pick one of these Pokemon\nand take it to Viridian,[B]\l[/B]Sam said he wanted you to come[B]\p[/B]to Agatha's house.
[B]boxset 6[/B]
release
end


#org $hey
checkflag 0x200
compare lastresult 1
if b_true goto $alright
checkflag 0x201
compare lastresult 1
if b_true goto $alright
checkflag ox202
compare lastresult 1
if b_true goto $alright
message $hey1 'don't have to put lock and faceplayer there
$hey1 1 = So have you went to see Sam yet?
boxset 6
release
end

#org $alright
message $alright1 'again The player is already locked from the beginning
$alright1 1 = So do you like your Pokemon?
boxset 6
release
end

Oh, and a basic text script is:

Code:
#org $[B]text[/B] ' I changed it because you already have a pointer named '$text' 
lock
faceplayer
[B]message $talk[/B]
$talk 1 = Hello
boxset 6 'yes You do need that
release 
end

The only 'Next line command' isn't only '\n', There are \p, and \l too.
I think it should work now.


I didn't correct all mistakes, because I don't have the time now.
 
I'll try it, but I do want it to open the Pokemon menu.

Oh, the script doesn't work for some reason. It just freezes the screen.
 
Last edited:
Omg stupid me...Thank you.

Edit: now, is there some type of pause for a wildbattle? When the screen flashs when going into the battle I see it is still showing the text that happens after the battle. And the pokemon does not disappear after I set the flag and fadescreen.

I always have the same problem as yours, coin3.., and I can't find ways to fix it. Anyways, you could just add more scripts that the OW of that certain PKMN will disappear and just let it move out of the player's way. That, I think is 1 solution, since I have no idea how to correctly use the fadescreen effect.
 
can anyone make me a script when u click to battle groudon instead fight blastiose? or can u change that in the story somehow?
 
xx1hacker1xx: Please learn to script? This thread is mainly for help on scripts or discussing them, I'm sure I saw an encounter pokemon script a few pages back. There are tuts on these >.>

Heres one I whipped up, you'll need to change the values in bold to a Blastoise.

Code:
#org 0x800000
message pokemonbattle
boxset 0x6
[U][B]cry PKMN_MEW[/B][/U]
wildbattle [B][U]0x97 0x46[/U][/B] 0x3
release
end

#org pokemonbattle = Blastoise attacked!
 
Yes! I got my steal item script to work! It has everything it would need!!
It includes being busted, several different items that you can get etc. The only glitch with it is that I spelt \v\H01 wrong, so that is what it says, so you can fix it up. It is in the spoiler.
Spoiler:
 
destinyjagold: I beleive that my script should work, when I fix it up...
It has something to do with the script. See where I put the mew thing, it needs to be there BUT you need to find out the proper name, it should be in the Pokemon List in PokeWitches thread, try using the hex value for the Pokemon, maybe that will work?
 
Is there any reason why this wouldn't work?

Spoiler:
I used the applymovement command to make the thing hidden after you "talk" to it, since it's lying on a table. The Dex doesn't disappear, and even though it says Pokedex on the menu, it won't let me open it for some reason. And in case, you couldn't already tell, this is for FR.
 
Is there any reason why this wouldn't work?

Spoiler:
I used the applymovement command to make the thing hidden after you "talk" to it, since it's lying on a table. The Dex doesn't disappear, and even though it says Pokedex on the menu, it won't let me open it for some reason. And in case, you couldn't already tell, this is for FR.
Overflow of data (your text overwrites your script). Your script is about 23 bytes long but your message is placed only 5 bytes after the start of the script. In a similar fashion, your text is 24 bytes long so if it started at 0x801485 it would finish at 0x80149D, which is where you've elected to put the movement data. Here's a rewrite using valid offsets instead:
Spoiler:
I gave the text 25-bytes space as it is 24 bytes text then one FF-byte to finish the text.
 
Overflow of data (your text overwrites your script). Your script is about 23 bytes long but your message is placed only 5 bytes after the start of the script. In a similar fashion, your text is 24 bytes long so if it started at 0x801485 it would finish at 0x80149D, which is where you've elected to put the movement data. Here's a rewrite using valid offsets instead:
Spoiler:
I gave the text 25-bytes space as it is 24 bytes text then one FF-byte to finish the text.

Well, the message works and all, and Pokedex does appear on the menu, but it still won't open whenever I choose it; It does nothing. What's odd is that the other things on the menu work perfectly.
 
I still don't know what's wrong with this script, any help?

Code:
#org $dex
lock
faceplayer
checkflag 0x205
if b_true goto $hey
message $give
$give 1 = Hey \v\h01, so this\nis your birthday? Well, Sam said \pyou would be by to pick up your\npokemon. First take this,
boxset 6
setflag 0x829
setflag 0x828
special 0x16F
message $recieved
$recieved 1 = You recieved the Pokedex!!
boxset 6
message $follow
$follow 1 = Now for your Pokemon,\nfollow me.
boxset 6
applymovement $Walk1
$Walk1 1 ; #Binary 0x01 0x09 0x09 0x04
pausemove 0
message $pick
$pick 1 = Pick one of these Pokemon\nand take it to Viridian,\pSam said he wanted you to\ncome to Agatha's house.
setflag 0x205
release
end


#org $hey
checkflag 0x200
compare lastresult 1
if b_true goto $alright
checkflag 0x201
compare lastresult 1
if b_true goto $alright
checkflag ox202
compare lastresult 1
if b_true goto $alright
lock 
faceplayer
message $hey1
$hey1 1 = So have you went to see Sam yet?
boxset 6
release
end

#org $alright
lock
faceplayer
message $alright1
$alright1 1 = So do you like your Pokemon?
boxset 6
release
end
 
i know this may not be much help but i had a probem like that and then thethethethe put 0x828 first then 0x829. that might not b the problem but hey... atleast i tried
 
Well, the message works and all, and Pokedex does appear on the menu, but it still won't open whenever I choose it; It does nothing. What's odd is that the other things on the menu work perfectly.

It could be that in game you might not have any Pokemon?
 
Can someone check this script?
(it's one of my first PokeScript scripts so I made much faults I think that's why I'm asking you to check..:D)
Spoiler:
 
Can someone check this script?
(it's one of my first PokeScript scripts so I made much faults I think that's why I'm asking you to check..:D)
Spoiler:


I'll have a go at fixing that for you (All changed parts in bold)
Spoiler:


Most of it looks pretty fine to me. I just fixed up the parts woth "Pause 0x?" and stuff like that.
 
I still don't know what's wrong with this script, any help?

Code:
#org $dex
lock
faceplayer
checkflag 0x205
if b_true goto $hey
message $give
$give 1 = Hey \v\h01, so this\nis your birthday? Well, Sam said \pyou would be by to pick up your\npokemon. First take this,
boxset 6
setflag 0x829
setflag 0x828
special 0x16F
message $recieved
$recieved 1 = You recieved the Pokedex!!
boxset 6
message $follow
$follow 1 = Now for your Pokemon,\nfollow me.
boxset 6
applymovement $Walk1
$Walk1 1 ; #Binary 0x01 0x09 0x09 0x04
pausemove 0
message $pick
$pick 1 = Pick one of these Pokemon\nand take it to Viridian,\pSam said he wanted you to\ncome to Agatha's house.
setflag 0x205
release
end


#org $hey
checkflag 0x200
compare lastresult 1
if b_true goto $alright
checkflag 0x201
compare lastresult 1
if b_true goto $alright
checkflag ox202
compare lastresult 1
if b_true goto $alright
lock 
faceplayer
message $hey1
$hey1 1 = So have you went to see Sam yet?
boxset 6
release
end

#org $alright
lock
faceplayer
message $alright1
$alright1 1 = So do you like your Pokemon?
boxset 6
release
end
Please tell what happens in-game. What is up with the "compare LASTRESULT's"?

An My question is: After I put 0x60, Or #raw 53 #raw <People no.> #raw 00, how come the person that disappeared isn't there, and When I try to past the original spot that person was at,

I can't get past it. When I press A on it, it Freezes the game. Any command that will permanently remove the sprite? Like when you find an item in a pokeball.
-cooley
 
Last edited:
Status
Not open for further replies.
Back
Top