• 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

31
Posts
16
Years
  • Age 32
  • Seen Apr 27, 2016
ok im having a problem with this script

Code:
#dynamic 0x80000C
'-----------------------
#org 0x800000
lock
faceplayer
checkflag 0x299
if 0x1 goto 0x8800029
msgbox 0x8800055 '"I Cant take \ncare of my \nBULBASAU..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8800034
msgbox 0x88000C4 '"IIm sure somebody else would\nlike ..."
callstd 0x6
release
end
'-----------------------
#org 0x800029
msgbox 0x880008F '"Hows my Bulbasuar doing?"
callstd 0x6
release
end
'-----------------------
#org 0x800034
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88000A9 '"You received a Bulbasaur."
callstd 0x6
waitfanfare
setflag 0x299
release
end
 
'---------
' Strings
'---------
#org 0x800055
= I cant take care of my \pBULBASAUR.\pYou can have it.
#org 0x8000C4
= Im sure somebody else would\nlike to have it.
#org 0x80008F
= Hows my Bulbasuar doing?
#org 0x8000A9
= You received a Bulbasaur.

Wen i go and talk to the girl if i say yes the game frezzes. and if i say no it says put ???????? in iteams poket??
 

Vrai

can you feel my heart?
2,896
Posts
15
Years
  • Age 29
  • Seen Oct 24, 2022
ok im having a problem with this script

Code:
#dynamic 0x80000C
'-----------------------
#org 0x800000
lock
faceplayer
checkflag 0x299
if 0x1 goto 0x8800029
msgbox 0x8800055 '"I Cant take \ncare of my \nBULBASAU..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8800034
msgbox 0x88000C4 '"IIm sure somebody else would\nlike ..."
callstd 0x6
release
end
'-----------------------
#org 0x800029
msgbox 0x880008F '"Hows my Bulbasuar doing?"
callstd 0x6
release
end
'-----------------------
#org 0x800034
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88000A9 '"You received a Bulbasaur."
callstd 0x6
waitfanfare
setflag 0x299
release
end
 
'---------
' Strings
'---------
#org 0x800055
= I cant take care of my \pBULBASAUR.\pYou can have it.
#org 0x8000C4
= Im sure somebody else would\nlike to have it.
#org 0x80008F
= Hows my Bulbasuar doing?
#org 0x8000A9
= You received a Bulbasaur.
Wen i go and talk to the girl if i say yes the game frezzes. and if i say no it says put ???????? in iteams poket??

Questions about script help should go into the Script Help thread, found in the Scrapbox. And, just so you know, thethethethe isn't around anymore. >_>
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
Just to stop posts about freezing walk-on-scripts, change:
Unknown to 0003
Var Number to 4050

Don't put the Unknown as 0300
 
1
Posts
15
Years
  • Seen Dec 25, 2010
first of all I have to say this is more friendly to the person who has no clue what things mean all the other tutorials always need you to have some kind of basic knowledge and im new so I dont have any. I will start now!! thank you
 

12345

Sky
157
Posts
16
Years
  • Seen Aug 18, 2016
I don't know sbout callasm?
What does the offset after this command means?
 
61
Posts
16
Years
  • Seen Nov 22, 2010
SO many scripting tuts
This one is very helpful, but if u ask me, i find it complicated
i find many things in hacking complicated, so dun bother me
im just a lazy person
 

foullump

Rom Hacking Guru
221
Posts
17
Years
I still firmly believe this is the MOST complete and simple tutorial out there. It holds nearly every code, many of which took me forever to figure out on my own... :( Note: for some of the commands mentioned above, you'll need his custom database. Thank you so much, thethethethe! Sorry to see you're no longer hacking... :(

I really need help. For some reason this script isn't working propally.
Spoiler:

What is wriong with it?
GOOD LORD! Your movements are way too long! Stuff like that never works for me! Try breaking it down into smaller chunks. eg.
Code:
#org $move2a
$move 2a 1 ; #binary 0x11 0x11 0x11 0x11 0x13 0x13 0x13 0x13 0x13 0xFE

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

#org $move2c
$move2c 1 ; #binary 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x12 0x11 0xFE

#org $move2d
$move2d 1 ; #binary 0x11 0x11 0x00 0xFE
Notice I broke that one movement into 3 parts of nine. Anything more than nine never works for me. I also changed #raw to #binary. Sorry if #raw works, but I've always used #binary since I was a noob, so I naturally recommend it. See if that works for you! :)
 
Last edited:

OtherAlias

Just another alias.
58
Posts
15
Years
  • Seen Mar 26, 2024
Why is it when I compile a script, it says the script is "Subscript out of range"?
 

luigirulze

Australia's Biggest Luigi Nerd
21
Posts
15
Years
  • Age 28
  • Seen May 24, 2010
Wow. Just wow. Incredibly detailed, helpful, just about a perfect tut. well done.
 
75
Posts
15
Years
  • Seen Jul 15, 2014
im a complete scripting newb but i tried to make a talking script and i talk to the person and it pops in the bottom for 1 sec then a box at the top with a weird symbol and im stuck there
 

minchan

Mudkip Worshipper
714
Posts
15
Years
Wow! I've wanted to learn scripting for a while now. Since I wanna try making a Pokemon hack. But I fail at it. XD So this thread it great! I'm sure it will help me out. Thanks!
 

foullump

Rom Hacking Guru
221
Posts
17
Years
Wow! I've wanted to learn scripting for a while now. Since I wanna try making a Pokemon hack. But I fail at it. XD So this thread it great! I'm sure it will help me out. Thanks!

If following text tutorials turns out to be too difficult, you can always try my video tutorial on youtube. I believe it covers things thoroughly.
 

0m3GA ARS3NAL

Im comin' home...
1,816
Posts
16
Years
Well... I have not seen this tutorial in a long while.
But I gotta say, it is quite out of date, PokeScript is flawed, and should not be used anymore.
Don't get me wrong, this is probably the most extensive guide on here for scripting, but it is just out of date.
(I would know that it is probably the best scripting tutorial on here, because this is the only tutorial I have ever read, that made sense, this tutorial got my scripting knowledge started.)
 

onyx79

Red Dead Revolver
488
Posts
15
Years
hmmm about the wild battle script,do I need to copy all of this code?how can I change chrizard to a lapras?how can I put this on advanced map?is that works with pksvui?
 
Back
Top