Your Addiction... Is our Pleasure!
 
HomePortalFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Scripting - The Basics

View previous topic View next topic Go down 
AuthorMessage
Ricky
Starting Addiction
Starting Addiction
avatar

Posts : 96
Poke-Addict Points : 8765
Join date : 2009-08-03
Age : 21
Location : Las Vegas, Nevada, USA

PostSubject: Scripting - The Basics   Wed Aug 19, 2009 12:28 pm

Well, scripting may be known as the most confusing way to hack, but it is most important. In these tutorials I will teach you all how to script in ROMs.

This is what you will need -

AdvanceMap
Notepad
PokeScript (some use XSE, but this guide is based off of PokeScript)

Tutorial 1 - Talking

Talking is one of the most common script in the game of Pokemon, and it is encountered in just about every route and every town.

First off, start off by taking out your notepad and typing the following . . .

#org $script
lock
faceplayer

These are the most important things to right, I will break down what they do . . .

#org $script <---- you need this in every script, no matter what
lock <---- this will lock the player from moving around
faceplayer <---- this will make the npc face you when talking

Next, you will type what will tell the game that the npc will talk to you which is the following . . .

message $talk

if you have done everything right, your script should look like this so far . . .

#org $script
lock
faceplayer
message $talk

Time to enter what you want the player to say. To do that you type the following . . .

$talk 1 = (your message)

For this tutorial, we will use this being banned an example . . .

$talk 1 = Hello kind sir.

Your script should now look like this . . .

#org $script
lock
faceplayer
message $talk
$talk 1 = Hello kind sir.

We shall now type to the system telling it this is just a formal message and it is now over my typing this . . .

boxset 6
release
end

This indicates that you are now done talking. So this is what your script should now look like . . .

#org $script
lock
faceplayer
message $talk
$talk 1 = Hello kind sir.
boxset 6
release
end

Seems complicated, but after you get a hang of it, it is quite simple. But it is now time to import the script. But first you must save it a certain way. To do this, go to "save" and switch the option from .txt to All Files. Then type the title, we will just use talkingscript and add the extension .rbc .

Right click it and click "Compile Script". Now you should have a small window with a blue book. Click the book and choose your ROM. You should now have a window with a flashlight. Click the flashlight and choose any line with the &h. Next, highlight that minus the &h and copy it. And finish off by clicking assign.

Now open up good old AdvanceMap. I'm sure you all know what this is. Open the ROM you put the script on. Now chose the town with the npc that you will program the script into. Now go to the events tab. You can now either make a new npc or use a current one. Beware, if you put a new npc and not enter the script into it, talking to him would cause the game to CRASH. Click on the npc and scroll down to the "script offset" box. Replace the code (keeping the $) with the one you copied. you can now chose if you want your npc to walk around, run, and more. Now save your progress.

Tutorial 1.1 - Follow Up - Bunches of Text (coming soon)
Back to top Go down
View user profile http://www.myspace.com/sk8rkid163
5qwerty
Admin
Admin
avatar

Posts : 702
Poke-Addict Points : 9245
Join date : 2009-08-18
Age : 21
Location : You are a stalker.

PostSubject: Re: Scripting - The Basics   Wed Aug 19, 2009 12:32 pm

Rick, why don't ya make one for XSE, or do ya want me to?

_________________
I am ultra frog master!

The worst Vileplume Animation:

Back to top Go down
View user profile
Ricky
Starting Addiction
Starting Addiction
avatar

Posts : 96
Poke-Addict Points : 8765
Join date : 2009-08-03
Age : 21
Location : Las Vegas, Nevada, USA

PostSubject: Re: Scripting - The Basics   Wed Aug 19, 2009 12:34 pm

You can. I am not fond of XSE. Actually, I never used it xD
Back to top Go down
View user profile http://www.myspace.com/sk8rkid163
Codec
Ultra Admin
Ultra Admin
avatar

Posts : 702
Poke-Addict Points : 9431
Join date : 2009-08-03

PostSubject: Re: Scripting - The Basics   Wed Aug 19, 2009 3:38 pm

Awesome tut man!
Back to top Go down
View user profile http://poke-addict.mygoo.org
5qwerty
Admin
Admin
avatar

Posts : 702
Poke-Addict Points : 9245
Join date : 2009-08-18
Age : 21
Location : You are a stalker.

PostSubject: Re: Scripting - The Basics   Wed Aug 19, 2009 3:39 pm

Sad What about my tut? Sad

_________________
I am ultra frog master!

The worst Vileplume Animation:

Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Scripting - The Basics   

Back to top Go down
 
Scripting - The Basics
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» RGSS = Scripting Basics - Window Class
» Is there a good book covering the basics for blokes?
» RGSS = Scripting Basics - Comments
» Contruct2 - HTML5 Game Engine
» Terrain basics........warning big pic size!!

Permissions in this forum:You cannot reply to topics in this forum
PokeAddict :: Rom Hacking :: Tutorials-
Jump to: