Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] thethethethe's Scripting Tutorial

Notices
For all updates, view the main page.

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.



Reply
 
Thread Tools
  #101    
Old March 31st, 2008 (07:43 PM).
Luck Luck is offline
☆「GANG-STAR」☆
 
Join Date: Nov 2007
Posts: 6,758
sorry i can't help you there.
I forgot almost everything about scripting.
and for the rest of you guys...
i'm sure thethethethe enjoys finding the problems in your script(and outscripting everyone) but maybe you could post the scripts in the "script help" thread?
just a suggestion though.
Reply With Quote
  #102    
Old April 2nd, 2008 (05:05 PM).
Hellsing's Avatar
Hellsing Hellsing is offline
The bird of Hermes is my name
 
Join Date: Aug 2007
Location: Canada
Gender:
Nature: Rash
Posts: 121
A great tutorial. I'm very eager to see the Multi Choice command.
Reply With Quote
  #103    
Old April 4th, 2008 (02:34 PM).
Piplup-Trainer's Avatar
Piplup-Trainer Piplup-Trainer is offline
This is my custom user title.
 
Join Date: Nov 2007
Location: Europe. Many people haven`t heard about the country in which I live.
Age: 23
Gender: Male
Nature: Relaxed
Posts: 228
Cool! Your tutorial has got everything what you need for a hack!
__________________
I LEFT PC!
http://www.pokecommunity.com/member.php?u=66475&vmid=2790824#vmessage2790824


Short summary :

2007 : ROM Hacking - asking some questions regarding Pokemon Ruby/Sapphire
2008 : Trading - mostly to complePokemon keDex in Pokemon Diamond until 2009
2009 : Battling - battles without ev'd Pokemon until 2009, competitive battles until 2010
2010 : Chatting - talking to pc friends, but more often on ut more often on MSN), having a good time
2011 : Less activity - it dropped more because of Windows Live Messenger and Facebook
Reply With Quote
  #104    
Old April 4th, 2008 (06:55 PM).
greenozano's Avatar
greenozano greenozano is offline
Master of Pokemon
 
Join Date: Dec 2006
Location: i live in Detroit,Mi,USA,interior plains
Age: 21
Gender:
Nature: Calm
Posts: 36
can someone tell me what I did wrong the boy in my map just moves and the just goes screen red. He doesn't even talk. I followed thethethethe's tutorial correctly and even used his program to script it and this one still didn't even work. Is it the flag?

#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 =OMG!\nI can't beleive that you are finally\l14.\nI feel angery and happy because\nI can now get your room, but\nstill you get a pokemon and I dont.\nanyway come on down\n the professor is here.
applymovement 0x1 $move3
$move3 1 ; #binary 0x1E 0x1E 0x1E 0xFE
pause 0x40
message $message 2
$message 2 1 =\v\h01:Man is my little brother always this\nenergetic.\nJason:Yeah, I am!\n\v\h01:??? He heared me? I was just thinking.\n It wasn't even out loud \nJason:\nMom: Hurry Up!!!\n\v\h01:Ok coming!
#raw 0x53 0x01 0x00
setflag 0x203
release
end


#org $end
release
end
__________________


Kevin's PokePet

crisscross the level 55 Electivire!


Cna yuo raed tihs? Olny 55% of plepoe can.

I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg.
The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch
at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a
wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the
rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit
a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter
by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot
slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre
I feogrt who ollanirigy had tihs but wohveer did. TAHNKS
Reply With Quote[/sig-reason]
Reply With Quote
  #105    
Old April 5th, 2008 (08:50 PM).
DarkFear's Avatar
DarkFear DarkFear is offline
I will ^^
 
Join Date: Nov 2005
Location: NZ
Age: 20
Nature: Relaxed
Posts: 210
Send a message via Windows Live Messenger to DarkFear
Ok, I've got one problem. After I've compiled the script, when I go and talk to the person in the game, a weird symbol appears in the top right of the game screen. Then after that, the screen goes blank.

?
Reply With Quote
  #106    
Old April 8th, 2008 (06:37 AM).
Tré's Avatar
Tré Tré is offline
Raised by the bastards of 1969
 
Join Date: Oct 2007
Location: My town was blind from refinery sun
Gender: Male
Nature: Quiet
Posts: 1,591
hey thex4. thx for making this thread. this will really help me to script a game...
__________________
Reply With Quote
  #107    
Old April 8th, 2008 (07:55 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
Oh Hai Thar~ 'ω'
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 7,247
Quote originally posted by greenozano:
can someone tell me what I did wrong the boy in my map just moves and the just goes screen red. He doesn't even talk. I followed thethethethe's tutorial correctly and even used his program to script it and this one still didn't even work. Is it the flag?

#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 = OMG!\nI can't beleive that you are finally\l14.\nI feel angery and happy because\nI can now get your room, but\nstill you get a pokemon and I dont.\nanyway come on down\n the professor is here.
boxset 6
applymovement 0x1 $move3
$move3 1 ; #binary 0x1E 0x1E 0x1E 0xFE
pause 0x40
message $message 2
$message 2 1 =\v\h01:Man is my little brother always this\nenergetic.\nJason:Yeah, I am!\n\v\h01:??? He heared me? I was just thinking.\n It wasn't even out loud \nJason:\nMom: Hurry Up!!!\n\v\h01:Ok coming!
boxset 6
#raw 0x53 0x01 0x00
setflag 0x203
release
end


#org $end
release
end
ya forgot to add boxsets...
__________________


3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)

~Serge,
Chrono Cross


Reply With Quote
  #108    
Old April 9th, 2008 (05:35 AM).
HackChu's Avatar
HackChu HackChu is offline
I need a haircut...
Silver Tier
 
Join Date: Jan 2007
Location: Bankrupt Amerika
Age: 22
Gender: Male
Nature: Modest
Posts: 673
Hey this is a great tutorial but i was wandering.okay say that thier were 8 badges which thier is but i wanted 2 more what would i do because i want 4 extra badges for my hack
Reply With Quote
  #109    
Old April 9th, 2008 (10:18 PM).
X-Buster X-Buster is offline
 
Join Date: Feb 2008
Posts: 713
I don't know if this goes here but can you explain this and give at least an example.. ,

__________________
Reply With Quote
  #110    
Old April 9th, 2008 (11:40 PM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Quote originally posted by X-Buster:
I don't know if this goes here but can you explain this and give at least an example.. ,

Theres really no examples, it's a level script. Or in that case, a map script. Same thing .
What they are, are scripts that occur once you enter the map, so they can do various things.
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
Reply With Quote
  #111    
Old April 10th, 2008 (02:08 AM).
Nomaiya's Avatar
Nomaiya Nomaiya is offline
The Disappearing Act
 
Join Date: Nov 2005
Location: England
Age: 22
Gender:
Nature: Quiet
Posts: 85
Send a message via Windows Live Messenger to Nomaiya
I'm sorry to be a n00b, but would someone mind helping me with this?

I've installed/uninstalled Pokescript at least five times, and to begin with, everything goes well; I burn the script to my Fire Red rom, and it all seems fine and dandy. Then I copy the offset into AdvanceMap, and save that to my rom.

When I play the rom on no$gba to test it out, however, the script clearly doesn't work. Instead, I get a random box in the corner of the screen (here), and when I click A, this message comes up, and no$gba closes.

What the heck is making it do this!? I've followed every tutorial I can find, and I've even been using the scripts that are given as examples in these tutorials, but nothing works. So... Anyone kind enough to help a poor little n00blet?

I have tried using ScriptED, but the one linked to in the Tool Resources thread gave me a Trojan virus, so I had to delete it pretty quick >.> So, please help? :3
__________________
Reply With Quote
  #112    
Old April 10th, 2008 (05:06 AM).
X-Buster X-Buster is offline
 
Join Date: Feb 2008
Posts: 713
Quote originally posted by CheesePeow:
Theres really no examples, it's a level script. Or in that case, a map script. Same thing .
What they are, are scripts that occur once you enter the map, so they can do various things.
Can you explain how to make one?
__________________
Reply With Quote
  #113    
Old April 10th, 2008 (10:32 PM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Quote originally posted by X-Buster:
Can you explain how to make one?
A level script is just a normal script.
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
Reply With Quote
  #114    
Old April 10th, 2008 (11:40 PM).
ZodiacDaGreat's Avatar
ZodiacDaGreat ZodiacDaGreat is offline
Working on a Mobile System
 
Join Date: Feb 2007
Location: South Pacific
Age: 22
Gender: Male
Nature: Relaxed
Posts: 429
Send a message via ICQ to ZodiacDaGreat
Quote:
Can you explain how to make one?
Well, its pretty simple, one thing though, currently dont use advancemap 1.90's function of making Level scripts as its badly programmed.

What you do is open up a ROM with a hexeditor, and goto some free space, and depending on what sort of level script you want, you got different pointers. like:
1 = setmap tile
2 = msgboxes and applymovements
the rest I'm not sure.

For "01" Setmaptiles: goto some free space and enter 01XXXXXX0800, where XXXXXX is the pointer to the setmaptile script reversed, so 800000 = 000080 and 00 ends the main branch of level scripts

"02" msgboxes and applymovements, is tougher: goto some free space and enter 02XXXXXX0800, where XXXXXX,is the pointer to the conditionals script, and at pointer XXXXXX, put VVVV(Variable, reversed)CCCC(Conditionals)Pointer(005080)080000, so for example:

Quote:
800000: 020001800800
800100: 50400100XXXXXX080000 , 5040 is variable 4050 reversed and 0100 is 0001 reversed meaning the level script will only activate when its set to 0x1
After that, open AMap, goto header view, and press "Ctrl-H" to activate professional view, and put the offset to the main branch of the level script at "Map Script Section" and then Save changes and reload map.

There, done, hope that helps, If you're not clear ask again
__________________
Reply With Quote
  #115    
Old April 11th, 2008 (05:16 AM).
greenozano's Avatar
greenozano greenozano is offline
Master of Pokemon
 
Join Date: Dec 2006
Location: i live in Detroit,Mi,USA,interior plains
Age: 21
Gender:
Nature: Calm
Posts: 36
Quote:
Originally Posted by greenozano
can someone tell me what I did wrong the boy in my map just moves and the just goes screen red. He doesn't even talk. I followed thethethethe's tutorial correctly and even used his program to script it and this one still didn't even work. Is it the flag?

#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 = OMG!\nI can't beleive that you are finally\l14.\nI feel angery and happy because\nI can now get your room, but\nstill you get a pokemon and I dont.\nanyway come on down\n the professor is here.
boxset 6
applymovement 0x1 $move3
$move3 1 ; #binary 0x1E 0x1E 0x1E 0xFE
pause 0x40
message $message 2
$message 2 1 =\v\h01:Man is my little brother always this\nenergetic.\nJason:Yeah, I am!\n\v\h01:??? He heared me? I was just thinking.\n It wasn't even out loud \nJasonnMom: Hurry Up!!!\n\v\h01:Ok coming!
boxset 6
#raw 0x53 0x01 0x00
setflag 0x203
release
end


#org $end
release
end
ya forgot to add boxsets...
Thanks for that I remember now man Im stupid how can I forget that.
__________________


Kevin's PokePet

crisscross the level 55 Electivire!


Cna yuo raed tihs? Olny 55% of plepoe can.

I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg.
The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch
at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a
wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the
rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit
a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter
by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot
slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre
I feogrt who ollanirigy had tihs but wohveer did. TAHNKS
Reply With Quote[/sig-reason]
Reply With Quote
  #116    
Old April 11th, 2008 (02:57 PM).
X-Buster X-Buster is offline
 
Join Date: Feb 2008
Posts: 713
Quote originally posted by ZodiacDaGreat:
Well, its pretty simple, one thing though, currently dont use advancemap 1.90's function of making Level scripts as its badly programmed.

What you do is open up a ROM with a hexeditor, and goto some free space, and depending on what sort of level script you want, you got different pointers. like:
1 = setmap tile
2 = msgboxes and applymovements
the rest I'm not sure.

For "01" Setmaptiles: goto some free space and enter 01XXXXXX0800, where XXXXXX is the pointer to the setmaptile script reversed, so 800000 = 000080 and 00 ends the main branch of level scripts

"02" msgboxes and applymovements, is tougher: goto some free space and enter 02XXXXXX0800, where XXXXXX,is the pointer to the conditionals script, and at pointer XXXXXX, put VVVV(Variable, reversed)CCCC(Conditionals)Pointer(005080)080000, so for example:



After that, open AMap, goto header view, and press "Ctrl-H" to activate professional view, and put the offset to the main branch of the level script at "Map Script Section" and then Save changes and reload map.

There, done, hope that helps, If you're not clear ask again
I still can't, Maybe I'll Never Understand this..!
__________________
Reply With Quote
  #117    
Old April 11th, 2008 (04:55 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
@ZodiacDaGreat
Thanks for explaining that. I also don't really like the level script layout of A-Map 1.90. I'm still mainly using 1.82, instead of 1.90.

Quote originally posted by X-Buster:
I still can't, Maybe I'll Never Understand this..!
It takes a while to understand and a little bit of trial and error before you understand them. There's a few tutorials on level scripts that might help you out. They aren't full tutorials on level scripts but you can get read into the certain things that seem to be what you need to look at.
There's a tutorial at WAH by Baro, just use a online to get a pretty bad translation, but it should be good enough to read.
And there's a tutorial here by me, that goes into de-activating level scripts. There's some info in that on the layout of level scripts and you'll hopefully be able to extract some information from it.
__________________
Gone.
Reply With Quote
  #118    
Old April 11th, 2008 (05:10 PM).
ZodiacDaGreat's Avatar
ZodiacDaGreat ZodiacDaGreat is offline
Working on a Mobile System
 
Join Date: Feb 2007
Location: South Pacific
Age: 22
Gender: Male
Nature: Relaxed
Posts: 429
Send a message via ICQ to ZodiacDaGreat
Quote:
@ZodiacDaGreat
Thanks for explaining that. I also don't really like the level script layout of A-Map 1.90. I'm still mainly using 1.82, instead of 1.90.
Thanks alot Thethethethe, yeah, A-Map 1.90 is glitched up
__________________
Reply With Quote
  #119    
Old April 12th, 2008 (04:15 AM).
Jamachi's Avatar
Jamachi Jamachi is offline
Sorry for not logging much
 
Join Date: Dec 2007
Location: Jirachi's Shrine
Age: 17
Gender:
Nature: Jolly
Posts: 15
thanx for everything i now know how to script
__________________
PC Family:

Brother: EniruvTux
Couzin:????NOBODY

Hi..................... i've been not logging in for a long time........................................i miss all of the members here at PC...........(sniff).............☻☻☻
Reply With Quote
  #120    
Old April 12th, 2008 (07:35 AM).
Pheya's Avatar
Pheya Pheya is offline
Is very excited about HH & SS.
 
Join Date: Apr 2008
Gender:
Posts: 80
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?
Reply With Quote
  #121    
Old April 12th, 2008 (03:27 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote originally posted by Dark Swellow:
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.
__________________
Gone.
Reply With Quote
  #122    
Old April 12th, 2008 (10:42 PM).
コリンク's Avatar
コリンク コリンク is offline
Pokémon HyperSpeed Creator
 
Join Date: Apr 2008
Location: Galactic Headquaters, Veilstone City
Age: 19
Gender:
Nature: Lonely
Posts: 96
Send a message via AIM to コリンク Send a message via Windows Live Messenger to コリンク
I'm not sure if this has been asked, but how and what would the offsets and cries be if you inserted Sinnoh Pokemon?
__________________
My FanGame - = Pokemon HyperSpeed =

Team Magma -

Team Aqua -
Team Rocket -

Team Galactic -


Yeah, all of these user bars were made by me. If you want one, simply PM me and I'll make it.
Reply With Quote
  #123    
Old April 13th, 2008 (05:47 AM). Edited April 13th, 2008 by Pokepal2007.
Pokepal2007's Avatar
Pokepal2007 Pokepal2007 is offline
angels awakening
 
Join Date: Jun 2007
Location: Fire City
Nature: Calm
Posts: 458
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.
__________________


Click here to feed me a Star Fruit!


Click here to feed me a Rare Candy!

[center]
Name: Hevaa Guardian
Mascot of Pokémon Heaven Legends
Reply With Quote
  #124    
Old April 13th, 2008 (08:35 AM).
Khalil's Avatar
Khalil Khalil is offline
 
Join Date: Jul 2007
Gender:
Nature: Adamant
Posts: 9
#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
__________________

Name: Flygon
Adopt one yourself! @Pokémon Orphanage
Reply With Quote
  #125    
Old April 14th, 2008 (05:41 AM).
Pheya's Avatar
Pheya Pheya is offline
Is very excited about HH & SS.
 
Join Date: Apr 2008
Gender:
Posts: 80
Quote originally posted by thethethethe:
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.
Reply With Quote
Reply
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 08:33 PM.