• 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.
Requesting many scripts. (If you do any of these you will be mentioned in the credits)

1. A script for a person that when you talk too them, they give you the national dex. After talking to them, they go up one square then warp(?) I'm not sure but they dissapear.

2. The script for the guard on the west side of saffron, to be changed so you need the tea, and the first badge, instead the 3rd 4th or 5th badge (not sure which...)

Here is the first one, this is incase you don't know you have to place the people no. into the ?. And place 0245 into the person's people Id, this is so the person doesn't reappear.
Code:
#org $start
lock
faceplayer
message $talk
boxset 5
compare LASTRESULT 1
if b_true goto $yes
message $no
boxset 6
release
end

#org $yes
setflag 0x16F
message $update
boxset 6
jingle
applymovement 0x0? $move
pausemove 0
setflag 0x245
release
end

#org $move
$move 1 ; #binary 0x0D 0x60 0xFE

#org $talk
$talk 1 =Would you like me to update\nyour pokedex?

#org $no
$no 1 =That's okay.

#org $update
$update 1 =Your pokedex was upgraded.

Here is the second one. For some reason I can't get the checkitem command to work with key items. I'd say write a script for the tea and place the flag used in this command;
checkflag 0x???
if b_true goto $????
and put it under the first checkflag. Hope this helps.
Code:
#org $start
checkflag 0x820
if b_true goto $done
message $talk
boxset 6
applymovement 0xFF $move
pausemove 0
release
end

#org $talk
$talk 1 =(Your text here)

#org $move
$move 1 ; #binary 0x0E 0xFE

I need some help badly. How can i make a shiny encounter script for poketscript, and a diaolog script for poketscript? Any help would be gladly apreaciated!
Sorry, you'd have to look at the tutorial in the documents and tutorials section, entitled 'The Shiny Hack'. This involves a little scripting and a lot of ASM hacking(which I don't know anything about). And by dialogue script do you mean just a simple message script. If so here.
Code:
#org $start
lock
faceplayer
message $talk
boxset 6
release
end

#org $talk
$talk 1 =(Your text here)
 
what's wrong with this?
Code:
#org $start
applymovement 0x2 $walk
$walk 1 ; #binary 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x33 0x33 0x33 0x33 0x33 0x31 0x31 0x31 0x31 0x31 0x31 0x34 0xFE
pausemove 0
faceplayer 
message $talk
$talk 1 = Here\nTake this egg\pQuick!
callstd 6
goto $give
end

#org $give
#binary 201 00
return
goto $walkback
end

#org $walkback
applymovement 0x2 $walkterug
$walkterug 1 ; #binary 0x33 0x32 0x32 0x32 0x32 0x32 0x32 0x34 0x34 0x34 0x34 0x34 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34  0xFE
pausemove 0
goto $second
end

#org $second
applymovement 0x3 $loop
$loop 1 ; #binary  0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x33 0x33 0x33 0x33 0x33 0x31 0x31 0x31 0x31 0x31 0x31 0x34 0xFE
pausemove 0
faceplayer
message $vraag
$vraag 1 = Hey\nYou!\pDid you saw a\nwoman passing by?\pNo?\nDammit!
callstd 6
goto $loopterug
end

#org $loopterug
applymovement 0x3 $walktrug
$walktrug 1 ; #binary 0x33 0x33 0x32 0x32 0x32 0x32 0x32 0x32 0x34 0x34 0x34 0x34 0x34 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0xFE
pausemove 0
end
 
what's wrong with this?
Code:
#org $start
applymovement 0x2 $walk
$walk 1 ; #binary 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x33 0x33 0x33 0x33 0x33 0x31 0x31 0x31 0x31 0x31 0x31 0x34 0xFE
pausemove 0
faceplayer 
message $talk
$talk 1 = Here\nTake this egg\pQuick!
callstd 6
goto $give
end

#org $give
#binary 201 00
return
goto $walkback
end

#org $walkback
applymovement 0x2 $walkterug
$walkterug 1 ; #binary 0x33 0x32 0x32 0x32 0x32 0x32 0x32 0x34 0x34 0x34 0x34 0x34 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34  0xFE
pausemove 0
goto $second
end

#org $second
applymovement 0x3 $loop
$loop 1 ; #binary  0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x33 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x31 0x33 0x33 0x33 0x33 0x33 0x31 0x31 0x31 0x31 0x31 0x31 0x34 0xFE
pausemove 0
faceplayer
message $vraag
$vraag 1 = Hey\nYou!\pDid you saw a\nwoman passing by?\pNo?\nDammit!
callstd 6
goto $loopterug
end

#org $loopterug
applymovement 0x3 $walktrug
$walktrug 1 ; #binary 0x33 0x33 0x32 0x32 0x32 0x32 0x32 0x32 0x34 0x34 0x34 0x34 0x34 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0x34 0xFE
pausemove 0
end

What's the problem with it? I'm guessing that it doesn't compile. I think the problem is that there are too many movements in each applymovement. Pokescript only allows about 14 or 15 movements(It's annoying isn't it). Try to split it into 2 applymovements.
 
What's the problem with it? I'm guessing that it doesn't compile. I think the problem is that there are too many movements in each applymovement. Pokescript only allows about 14 or 15 movements(It's annoying isn't it). Try to split it into 2 applymovements.

ok i'll try. the problem is that when i try to compile it say: Run type error 13 Type mismatch
 
What is the diference from
movesprite and applymovement
 
What is the diference from
movesprite and applymovement

I'm not that sure, I am yet to use the movesprite command, but I think movesprite just moves a sprite from the ledt side of the map to the other side without any walking. Applymovement moves the sprite with walking or running.
 
Oh thanks alot man.that really helped ^-^
 
i need a script that when i activate a pokeball it says "there is a pokemon inside this pokeball. take pokeball?" then a yes/no choice:

if yes is clicked then it says "you receieved a dratini" then the pokemon menu is turned on and you receive a dratini. then "give nickname to dratini?" yes/no option with the nickname command thing. then it would say "also found national dex" and the nationl dex would be turned on and then the pokeball disappears.

if no is clicked then the pokeball would stay there and nothing would happen.

im working in pokemon fire red. and if anyone could put this together for me it would be greatly appreciated
 
Is it possible to make a shiny pokemon script? And a new dialog script?
If it is can you please post/ PM it to me? I'm working on a hack with a friend. Anybody who helps will be credited.
 
Is it possible to make a shiny pokemon script? And a new dialog script?
If it is can you please post/ PM it to me? I'm working on a hack with a friend. Anybody who helps will be credited.
There is a Tutorial for how zel made his Shiny Gyarados appear, so maybe you can see how he did it so you can learn. Otherwise ASM and little Scripting as thethethethe said.
 
How do you determine/Calculate the "People ID" in Advance map.

Just put a random number there, but make sure it's not used in any other events, or they may be moved, or not be in the game when you play.
 
Last edited:
i need a script that when i activate a pokeball it says "there is a pokemon inside this pokeball. take pokeball?" then a yes/no choice:

if yes is clicked then it says "you receieved a dratini" then the pokemon menu is turned on and you receive a dratini. then "give nickname to dratini?" yes/no option with the nickname command thing. then it would say "also found national dex" and the nationl dex would be turned on and then the pokeball disappears.

if no is clicked then the pokeball would stay there and nothing would happen.

im working in pokemon fire red. and if anyone could put this together for me it would be greatly appreciated

Place the people number into the pokeball and place in movements to move the pokeball off the screen. I'll put basic movements below.
0x1D ' step down
0x1E ' step up
0x1F ' step left
0x20 ' step right
Code:
#org $start
lock
message $drat
boxset 5
compare LASTRESULT 1
if b_true goto $yes
release
end

#org $yes
applymovement 0x<pokeball people number> $move
givepokemon 147 5 0
jingle
message $poke
boxset 6
setflag 0x828
setflag 0x829
setflag 0x16F
message $dex
boxset 6
release
end

#org $move
$move 1 ; #binary 0x60 <your movements here> 0xFE

#org $drat
$drat 1 =There is a pokemon inside this pokeball. Take pokeball?

#org $poke
$poke 1 =You recieved a Dratini!

#org $dex
$dex 1 =Also found a National Dex!
 
has anyone got the setflag for running shoes on fire red?

P.s. thanks thethethethe for the script.. worked perfectly =D!!
 
has anyone got the setflag for running shoes on fire red?

P.s. thanks thethethethe for the script.. worked perfectly =D!!

The flag for the Running shoes in Fire Red and Leaf Green is "82F".
 
Whats wrong with my script? The first part (the part where you get the pokemon) works, but the part where it checks the item, doesn't. The game freezes then..

Code:
#org $broeler
faceplayer
checkflag 0x15B
if B_True goto $potionz
message $osda
$osda 1 = So \v\h01..\nBefore you can start you need\pan Pokemon.\nThis pokemon is perfect for\pyou.
boxset 6
givepokemon 197 5 0
fanfare 0x12
message $Gotpoke
$Gotpoke 1 = You Recieved a Umbreon!
boxset 2
message $job
$job 1 = Now you have to do a job\nfor me.\pGo to Leavy Town,\nwhich is located south-west\pfrom here.\pYou can pass the river by\nhaving these boots on.\pGet me a nice potion.
boxset 6
fanfare 0x12
message $gotboot
$gotboot 1 = You received a pair of boots!
boxset 6
message $head
$head 1 = Now go to the river\nwhich is located at the west.
boxset 6
release
setflag 0x15B
setflag 0x828
end

#org $potionz
checkitem 0xD
compare LASTRESULT 1
if B_<< goto $napot
message $lasad
$lasad 1 = Ah. You're back.
boxset 6
message $lsfea
$lsfea 1 = Very well.\nTake this pokedex.
boxset 6
message $yey
$yey 1 = You received a pokedex!
boxset 6
removeitem 0xD 1
message $lafd
$lafd 1 = I need to go now.
boxset 6
applymovement 0x4 $movedads
pausemove 0
release
setflag 0x829
end

#org $napot
faceplayer
message $napos
$napos 1 = First bring me a potion!
boxset 6
end

#org $movedads
#binary 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x60 0x13 0xFE
 
Hello. I'm a bit new to scripting, so I need some help.

1) I need a person that will trade your Eevee for his Lapras [don't ask].

The text doesn't matter, I just need the script.

2) I'm having a problem with a Pokemon battle. I followed the demo script for PokeScript, but whenever I put it in [i made the ID 808 and everything]:

#org $StartWild
lock
faceplayer
message $miscry
$miscry 1 = ...
boxset 6
checkflag 0x808
if 0x1 goto $WildBatt
release
end

#org $WildBatt
lock
wildbattle 150 50 1
release
setflag 0x500
fadescreen 0
end

It only shows the text "..." and doesn't begin a battle. Why is that?
 
Hello. I'm a bit new to scripting, so I need some help.

1) I need a person that will trade your Eevee for his Lapras [don't ask].

The text doesn't matter, I just need the script.

2) I'm having a problem with a Pokemon battle. I followed the demo script for PokeScript, but whenever I put it in [i made the ID 808 and everything]:



It only shows the text "..." and doesn't begin a battle. Why is that?

Okay this could be you're problem. When you tried this script, did you have the second badge(ruby)I don't think 0x808 is anything in Fire red. For you to have the battle, the 0x808 has to have been set first. Hope this helps


And frank$or, I can't find anything wrong with that. But I have problems with the checkitem commands. I tend to only use them when I need them. Otherwise I use a key item and use the flag used in the script that you recieved the item. Sorry if thaty doesn't help you.
 
Status
Not open for further replies.
Back
Top