• 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.

thethethethe's Scripting Tutorial

1,104
Posts
16
Years
Okay, I got a BIG problem, I copied a script from a friend of mine, but when I choose Compile Script he shows a lot of data, after that I get a empty LOG, he doesn't jump to bufrite. What to do?

What's the name of the .rbc file? If you have certain characters within the name it does that. Try changing the name of the .rbc file to something simple like 123.rbc, and see if that works.
 

Pokepal2007

angels awakening
458
Posts
16
Years
ok guys i have a problem with this script i just don't know what it is can you help
?

#org $begin
checkflag 0x828
if b_true goto $done
message $1
boxset 5
compare LASTRESULT 0x1
if b_true goto $take
message $2
boxset 6
release
end

#org $take
message $3
boxset 6
givepokemon 280 10 0
fanfare 0x13E
message $4
boxset 4
waitfanfare
#raw 0x68
setflag 0x828
message $5
boxset 6
release
end

#org $done
message $6
boxset 6
release
end

#org $1
$1 1 =Hello there, i am kingdra leader of the\nPokémon Rescuers\pAre you wanting to join?

#org $2
$2 1 =Come back if you wish to join.

#org $3
$3 1 =Good, Your first mission is to goto\nthe center of Snake Forest and rescue\pa Pikachu.

#org $4
$4 1 =You got your first mission.

#org $5
$5 1 =Good luck on your mission.

#org $6
$6 1 =Good luck.
 
Last edited:
9
Posts
16
Years
  • Seen Mar 14, 2009
#org $begin
lock
faceplayer
message $whatup
boxset6
applymovement 0x10 $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
applymovement 0x10 $move3
applymovement 0xFF $move3
pausemove 0x0
message $whatup2
boxset6
release
end

$org $whatup
$whatup 1 = Yo kid come with me.\n\v\h01!:....IM NOT A\pKID!

$org $move
#raw 0x10 0x10 0x10 0x10 0xFE

$org $move2
#raw 0x65 0XFE

$org $move3
#raw 0X11 0X11 0X11 0X11 0X12 0X12 0X12 0X12 0X12 0X11 0XFE

$org $whatup2
$whatup2 1 = \v\h01!:why did u take me here\n???:I don't know\p\v\h01!:**** YOU *****!

can u help me with this one? it wont compile the script
 

Pheya

Is very excited about HH & SS.
80
Posts
16
Years
  • Seen Jan 2, 2010
What's the name of the .rbc file? If you have certain characters within the name it does that. Try changing the name of the .rbc file to something simple like 123.rbc, and see if that works.

It was named givepkmn.rbc, I renamed it to 123.rbc and they both didn't work.
 

The Shadow Knight

Roaming Kanto
195
Posts
16
Years
  • Seen Jun 26, 2022
This is a truly awesome guide, it has helped me a lot.

There is one thing I didn't find to be mentioned that is quite cool to use: #raw 0x2F
0x2F is used for sound effects like the exclamation mark sound, it's used like this:
#raw 0x2F 0xnn 0xnn

(Where the last two stand for the flipped sound effect number)
 

Pokepal2007

angels awakening
458
Posts
16
Years
can someone help me this script dosen't finish why?.

#org $begin
checkflag 0x201
if b_true goto $done
applymovement 0xFF $move1
pausemove 0
message $1
boxset 6
trainerbattle 0 0x001 $before $after $later
end

#org $done
release
end

#org $move1
#raw 0x10 0x10 0x10 0x10 0x12 0x12 0x10 0x10 0xFE

#org $1
$1 1 =Hey leave that pikachu alone!

#org $before
$before 1 = Battle me now and if you win i will\nGo away.

#org $after
$after 1 = Okay i will leave this pikachu alone.

#org $later
message $2
boxset 6
applymovement 0x01 $move1
pausemove 0
message $3
boxset 6
applymovement 0x00 $move2
pausemove 0
setflag 0x201
release
end

#org $2
$2 1 =I will return and you will lose.

#org $move1
#raw 0x13 0x60 0xFE

#org $3
$3 1 =Thank you for Saving me this staircase\nwill take us out.

#org $move2
#raw 0x13 0x60 0x13 0xFE
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
can someone help me this script dosen't finish why?.

#org $begin
checkflag 0x201
if b_true goto $done
applymovement 0xFF $move1
pausemove 0
message $1
boxset 6
trainerbattle 0 0x001 $before $after $later
end

#org $done
release
end

#org $move1
#raw 0x10 0x10 0x10 0x10 0x12 0x12 0x10 0x10 0xFE

#org $1
$1 1 =Hey leave that pikachu alone!

#org $before
$before 1 = Battle me now and if you win i will\nGo away.

#org $after
$after 1 = Okay i will leave this pikachu alone.

#org $later
message $2
boxset 6
applymovement 0x01 $move1
pausemove 0
message $3
boxset 6
applymovement 0x00 $move2
pausemove 0
setflag 0x201
release
end

#org $2
$2 1 =I will return and you will lose.

#org $move1
#raw 0x13 0x60 0xFE

#org $3
$3 1 =Thank you for Saving me this staircase\nwill take us out.

#org $move2
#raw 0x13 0x60 0x13 0xFE
This is not a request thread, it's a Tutorial But I'll tell you what's wrong.

trainerbattle 0x0 is for battles that don't have $further or $later

trainerbattle 0x1 is for battles that have a script that continues after the battle eg. $later
 

himowa

Buy one get one free
20
Posts
16
Years
Code:
#org $start
checkflag 0x828
if b_true goto $done
message $1
boxset 5
compare LASTRESULT 0x1
if b_true goto $take
message $2
boxset 6
release
end

#org $take
givepokemon 133 5 0
fanfare 0x13E
message $3
boxset 4
waitfanfare
#raw 0x68
setflag 0x828
message $4
boxset 5
compare LASTRESULT 0x1
if b_true gosub $name
message $5
boxset 6
release
end

#org $name
call 0x1A74EB
return

#org $done
message $6
boxset 6
release
end

#org $1
$1 1 =AID: I'm sorry, PROF. PINE isn't\nhere right now.\p...Oh, so you need a POKeMON to travel with?\pHere, you can have\nthis POKeMON we study in the lab.\pTake the POKeMON? 

#org $2
$2 1 =AID: Well if you change your mind let me know.

#org $3
$3 1 =\c\h01\h02You received an EEVEE!

#org $4
$4 1 =\c\h01\h02Would you like to rename EEVEE?

#org $5
$5 1 =We have been monitering\nEEVEE's evolution patterns.\lWe have plenty of them in the\nso this one is probably\lbetter off with you.

#org $6
$6 1 =How is EEVEE doing?

I'm having some problems with this script here. Everything seems to work, he says everything and you get the Eevee, but when you go to give it a nickname it has missingno's icon with ?'s for the name where is should have Eevee's icon and name.

But when you look through the start menu and everything you have a Eevee, only during renaming process.

Also after you rename you seem to have an identity crisis and switch places/sprites with the aid. (until you walk into a new map, then you go back to normal)
 
Last edited:

Hellsing

The bird of Hermes is my name
121
Posts
16
Years
hey how do you insert scripts using the tool....???

just right click your rbc. file and press compile.
and guys, this is a script tutorial, please just post in the script help thread for all these scripting screwups.
 
76
Posts
16
Years
Code:
#org $start
[B]lock
faceplayer[/B]
checkflag 0x828
if b_true goto $done
message $1
boxset 5
compare LASTRESULT 0x1
if b_true goto $take
message $2
boxset 6
release
end

#org $take
givepokemon 133 5 0
fanfare 0x13E
message $3
boxset 4
waitfanfare
#raw 0x68
setflag 0x828
message $4
boxset 5
compare LASTRESULT 0x1
if b_true gosub $name
message $5
boxset 6
release
end

#org $name
call 0x1A74EB
return

#org $done
message $6
boxset 6
release
end

#org $1
$1 1 =AID: I'm sorry, PROF. PINE isn't\nhere right now.\p...Oh, so you need a POKeMON to travel with?\pHere, you can have\nthis POKeMON we study in the lab.\pTake the POKeMON? 

#org $2
$2 1 =AID: Well if you change your mind let me know.

#org $3
$3 1 =\c\h01\h02You received an EEVEE!

#org $4
$4 1 =\c\h01\h02Would you like to rename EEVEE?

#org $5
$5 1 =We have been monitering\nEEVEE's evolution patterns.\lWe have plenty of them in the\nso this one is probably\lbetter off with you.

#org $6
$6 1 =How is EEVEE doing?

I'm having some problems with this script here. Everything seems to work, he says everything and you get the Eevee, but when you go to give it a nickname it has missingno's icon with ?'s for the name where is should have Eevee's icon and name.

But when you look through the start menu and everything you have a Eevee, only during renaming process.

Also after you rename you seem to have an identity crisis and switch places/sprites with the aid. (until you walk into a new map, then you go back to normal)

The letters in bold are the ones that are new. I don't know what happened, make sure you have lock and faceplayer when you're speaking with a person.
 
16
Posts
16
Years
  • Seen Apr 25, 2011
I've a script, but it doesn't work. I've tried to change some flags, but I don't think that's the problem because the script is in the beginning of the game (when you down the stairs into your livingroom)

Code:
#org $start
checkflag 0x202
if b_true goto $done
setflag 0x202
applymovement 0x01 $popup
pausemove 0
message $verslapen
boxset 6
applymovement 0x01 $moves
pausemove 0
message $oak
boxset 6
applymovement 0x01 $movesback
pausemove 0
release
end

#org $done
release
end

#org $verslapen
$verslapen 1 =YOU OVERSLEPT!

#org $oak
$oak 1 =I don't think Professor Brown has \nany Pok\h1Bmon left for you. \lHe might have a pok\h1Bdex for you...


#org $popup
#raw 0x62
#raw 0xFE

#org $moves
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0xFE

#org $movesback
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x02
#raw 0xFE

Does anyone has an idea what's going wrong? If I walk onto it nothing happens. When I walk the second time over it the game freezes...
 

greenozano

Master of Pokemon
36
Posts
17
Years
I made this script in which your mom is suppose to barge in your room and act excited it works all the way up to her disappearance then it frezzes try it out your self. What did I do wrong.

#org $start
checkflag 0x203
if 0x1 goto $end
applymovement 0xFF $move1
$move1 1 ; #binary 0x62 0xFE
pause 0x20
applymovement 0x1 $move2
$move2 1 ; #binary 0x61 0x1D 0x1D 0x1D 0x1F 0x1F 0x20 0x20 0x02 0xFE
pause 0x40
message $MESSAGE1
$MESSAGE1 1 = I can't beleive that you are finally\l14.\nI feel angery and happy at the same time\nanyway come on down\n the professor is here.
boxset 0x6
applymovement 0x1 $move3
$move3 1 ; #binary 0x1E 0x1E 0x1E 0xFE
pause 0x40
#raw 0x53 0x01 0x00
setflag 0x204
message $message 2
$message 2 1 =\v\h01:Man when did my mother get this\nenergetic.\nJason:Yeah, I am!\n\v\h01:??? did she heared me? I was just thinking.\n It wasn't even out loud\nMom: Hurry Up!!!\n\v\h01:Ok coming!
boxset 0x6
setflag 0x203
release
end


#org $end
release
end
 

Binary

え?
3,977
Posts
16
Years
  • Age 29
  • Seen Apr 7, 2014
#org $start
checkflag 0x203
if B_true goto $end
applymovement 0xFF $move1
pause 0x10
applymovement 0x1 $move2
pausemove
message $MESSAGE1
boxset 6
applymovement 0x1 $move3
pause 0x30
#raw 0x53 0x01 0x00
message $message 2
boxset 6
setflag 0x203
release
end

#org $end
release
end

#org $move1
$move1 1 ; #binary 0x62 0xFE

#org $move2
$move2 1 ; #binary 0x61 0x1D 0x1D 0x1D 0x1F 0x1F 0x20 0x20 0x02 0xFE

#org $MESSAGE1
$MESSAGE1 1 = I can't beleive that you are finally\l14.\nI feel angery and happy at the sametime\nanyway come on down\n the professor is here.

#org $move3
$move3 1 ; #binary 0x1E 0x1E 0x1E 0xFE

#org $message 2
$message 2 1 =\v\h01:Man when did my mother get this\nenergetic.\nJason:Yeah, I am!\n\v\h01:??? did she heared me? I was just thinking.\n It wasn't even out loud\nMom: Hurry Up!!!\n\v\h01:Ok coming!

I suggest you to put the offsets in the end.
 
16
Posts
16
Years
  • Seen Apr 25, 2011
I've got this script:
Code:
#org $start
checkflag 0x202
if b_true goto $done
applymovement 0x01 $popup
pausemove 0
message $verslapen
boxset 6
applymovement 0x01 $moves
pausemove 0
message $oak
boxset 6
applymovement 0x01 $movesback
pausemove 0
setflag 0x202
release
end

#org $done
release
end

#org $verslapen
$verslapen 1 = YOU OVERSLEPT!

#org $oak
$oak 1 = I don't think Professor Brown has \nany Pok\h1Bmon left for you. \lHe might have a pok\h1Bdex for you...


#org $popup
$popup 1 ; #binary 0x62 0xFE

#org $moves
$moves 1 ; #binary 0x11 0x11 0x13 0xFE

#org $movesback
$movesback 1 ; #binary 0x12 0x10 0x10 0x02 0xFE

When I walk onto the script, the game freezes. If I give the offset to people no.1 It will do the script perfectly when I talk to her. Why is that so? Why does it work on a People and not on a Script???
 

greenozano

Master of Pokemon
36
Posts
17
Years


Quote:
#org $start
checkflag 0x203
if B_true goto $end
applymovement 0xFF $move1
pause 0x10
applymovement 0x1 $move2
pausemove
message $MESSAGE1
boxset 6
applymovement 0x1 $move3
pause 0x30
#raw 0x53 0x01 0x00
message $message 2
boxset 6
setflag 0x203
release
end

#org $end
release
end

#org $move1
$move1 1 ; #binary 0x62 0xFE

#org $move2
$move2 1 ; #binary 0x61 0x1D 0x1D 0x1D 0x1F 0x1F 0x20 0x20 0x02 0xFE

#org $MESSAGE1
$MESSAGE1 1 = I can't beleive that you are finally\l14.\nI feel angery and happy at the sametime\nanyway come on down\n the professor is here.

#org $move3
$move3 1 ; #binary 0x1E 0x1E 0x1E 0xFE

#org $message 2
$message 2 1 =\v\h01:Man when did my mother get this\nenergetic.\nJason:Yeah, I am!\n\v\h01:??? did she heared me? I was just thinking.\n It wasn't even out loud\nMom: Hurry Up!!!\n\v\h01:Ok coming!
I suggest you to put the offsets in the end.

Dude it still doesn't work right now it doesn't even start now.
 
17
Posts
15
Years
  • Seen Jan 13, 2009
Man thethethethe i was just reading thru some of your tut and it is such nice work
man i didint think there was that much stuff for Scripting.
 

geno421

Script and Spriter
55
Posts
15
Years
  • Age 33
  • USA
  • Seen Jul 16, 2022
That was alot to take in but now I have a clear understanding on how PokeScript works. Thanks. :)
 
Back
Top