• 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.
1) Well, the command to change the music in a map is "playsound 0x??" replace the "??" with the music values in Advance Map.

2) That requires ASM hacking. There is a tutorial on how to do it in the Document and Tutorial section.

3)You mean for the wild battle? I don't think you can. However, you can rig a script to give you an item after the battle. To attach a hold item to a Pokemon in a givepokemon script you'd use: "givepokemon 0x? 0x?? 0x???". Now, "?" is the Pokemon's hex value, "??" is the level (in hex also. Ex. 13 is D in hex), and "???" is the hold item's hex value.

Your wild encounter script would go something like this:
Code:
#org 0x(offset)
lock
checkflag 0x(flag offset)
if 0x1 goto 0x(offset2)
setflag 0x(same flag offset as checkflag)
cry PKMN_(Pokemon)
wildbattle 0x(Pokemon) 0x(level) 0x(battle style)
release
end

#org 0x(offset2)
release
end

Alrighty? There are four battle styles: 0, 1, 2, and 3. They control the music and such of the battle. Is that okay?

Thanks, it works perfectly. Took a little experimentation with battle styles, but now you encounter Celebi with the Deoxys music.
 
vanishsprite command. The syntax is the following:

Code:
#raw 53
#raw XX
#raw 00

XX is People #. For example, to hide the first person:

Code:
#raw 53
#raw 01
#raw 00

And so on.

I got a question about this. If the people no. is 10 would XX be 0A or 10


Can Somone Make me a give Item Script and include the Peoples ID? The Item is A Entai lvl 5 holding Charcoal.

Don't you mean a givepokemon
#org $start
lock
faceplayer
checkflag 0x200
if b_true goto $done
message $poke
boxset 6
givepokemon 244 5 0xD7
setflag 0x200
release
end

#org $done
message $how
boxset 6
release
end

#org $poke
$poke 1 =Here take this Entei.

#org $how
$how 1 =How's my old pokemon?
 
Last edited:
Spoiler:

That's what I have now,it works very good but where would I have to put playsound and fadesound in there?Any attempts I've made so far made the game freeze...
 
Last edited:
What is the script code for bring up a pokemon's image for scriptED(On FR).
 
It should be 0A, the numbering in scritps is in hexadecimal.

Yes, it's hexadecimal so 0A. When using #raw or #binary commands, all the bytes used are always treated as hex.


That's what I have now,it works very good but where would I have to put playsound and fadesound in there?Any attempts I've made so far made the game freeze...

Well, where did you try to insert those commands?


What is the script code for bring up a pokemon's image for scriptED(On FR).

You have to use the displaypic/closepic commands.

displaypic syntax:

Code:
#raw 75
#raw PP
#raw QQ
#raw XX
#raw YY

closepic syntax:

Code:
#raw 76


PP and QQ stays for the Pokémon species bytes, swapped. XX and YY are, respectively, the X/Y coordinates of the picture box on the screen.
Remember that when you use the displaypic command, you have always to use the closepic one after a bit or the picture box won't close.

Example:

Displays a centered Mewtwo's picture and close it after some time.

Code:
#raw 75
#raw 97
#raw 00
#raw 0A
#raw 03
pause 0x28
#raw 76
 
Last edited:
Thank you so much man.I do have an other question.How do you bring up the exlamation mark?
 
Hey when you are giving a pokemon how do you make the pokemon part to appear on your start menu?
 
does anyone know the " giveitem etc." thing for receving 5 pokeballs in fire red please =]
 
#ORG $begin
lock
faceplayer
checkflag 0x200
if B_true goto $done
message $aidtalk
boxset 6
giveitem 0x4 5
setflag 0x200
release
end

#org $done
message $aidtalk2
boxset 6
release
end

#org $aidtalk
$aidtalk 1 = Oh, hello \v\h01.\pHere, take these pokeballs!

#org $aidtalk2
$aidtalk2 1 = So how did those pokeballs work?

I am pretty sure that will work, but then again I'm new to scripting.

I have a question, what is the script for selling stuff in the pokemart?
 
I have a small question,I'm new to scripting and I made two similar scripts but only one works i'm put the scripts in spoiler.

Spoiler:

the above works,but the other doesn't I wanna now what went wrong

Spoiler:

:(
 
Is something wrong with this Script(it is my First):
Code:
#org $start
lock
faceplayer
checkflag 0x200
if b_true, goto $done
message $person
boxset 6
givepokemon 244 5 0xD7
setflag 0x200
release
end

#org $done
message $done
boxset 6
release
end

#org $person
$person =Here, \ptake this \v\h01!!

#org $done
$done =Run They are\pafter you!

Question:
Can Someone tell me after you Right Click then compile, what to do when you see the "Buf Rite" in pokescript?

Request:
A pokeball Script that contains an Eevee inside of it, no item, level 5.
Please and thank you.
 
Something shoudl pop up immediatly that has a log of the compile. Then you click the torch and assign it to an offset, write down the offset, hit burn, then copy the offset down for the person in advancemap.
 
Is something wrong with this Script(it is my First):
Code:
#org $start
lock
faceplayer
checkflag 0x200
if b_true, goto $done
message $person
boxset 6
givepokemon 244 5 0xD7
setflag 0x200
release
end

#org $done
message $done
boxset 6
release
end

#org $person
$person =Here, \ptake this \v\h01!!

#org $done
$done =Run They are\pafter you!

Question:
Can Someone tell me after you Right Click then compile, what to do when you see the "Buf Rite" in pokescript?

Request:
A pokeball Script that contains an Eevee inside of it, no item, level 5.
Please and thank you.


I've answered that first question in the other place you posted it, please only post your question in one thread, it makes it easier for everyone.
About the second question, read Irish Witch's tutorial, Part one explains compiling in pokescript.
and your request, if it's a starter, before the second release add 0x828 for FR LG, or 0x800 for RS
Code:
#org $start
faceplayer
message $take
boxset 5
compare LASTRESULT 1
if b_true goto $yes
message $leave
boxset 6
release
end

#org $yes
givepokemon 133 5 0
message $recieve
boxset 6
release
end

#org $take
$take 1 =Should I take it?

#org $leave
$leave 1 =You left it there.


#org $recieve
$receive 1 =You recieved an EEVEE!

Oh Kazaam. Here is a pokemart script.
Code:
#org $StartMarket
lock
faceplayer
pokemart $marketValues
release
end

#org $marketValues
#binary int 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8
#binary int 0x9 0xa 0xb 0xc 0x13 0x14 0x0
the 0x1 0x2 0x3 they're the items and 0x0 is close.
 
Status
Not open for further replies.
Back
Top