The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Requests/Sharing/Discussion

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Closed Thread
 
Thread Tools
  #351   Link to this post, but load the entire thread.  
Old June 29th, 2007 (6:46 PM).
Hedgehogger's Avatar
Hedgehogger Hedgehogger is offline
Learning ASM, but struggling
 
Join Date: Feb 2007
Location: Somewhere near a box.
Gender: Male
Nature: Quiet
Posts: 204
Quote:
Originally Posted by clakes707 View Post
Can someone make me a script that makes someone (I am going to use the guy in LittleRoot that says something about Proff. Birch) give you a Pokemon( Cyndaquil) once, and once you have it, he says " How is that Cyndaquil doing?" Thanks! Oh, and once the script is made, can someone tell me how to put it in the game? The scripting program I use is the ne called ScriptEd that comes with EliteMap. Can someone telll me EVERY step in putting the script into the guy? By every step, I mean from loading it in ScriptEd aqnd to playing the game to see if it works. Thanks once again!
Well, here's a GivePokemon script I have that you can use as a base:
Spoiler:
#org 0x8C0FA0
lock
faceplayer
checkflag 0x480
if 0x1 goto 0x8C00A0
message 0x8C01A0
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8C02A0
message 0x8C03A0
boxset 0x6
release
end

#org 0x8C00A0
message 0x8C04A0
boxset 0x6
release
end

#org 0x8C02A0
message 0x8C05A0
boxset 0x6
givepokemon 155 5 0xD
#Raw 0 0 0 0 0 0 0 0
#Raw 0 0 0 0 0 0 0 0
setflag 0x480
release
end

#org 0x8C01A0
= Pardon me, but could you look after this \nPOKéMON? I found it lying on the beach.

#org 0x8C03A0
= Okay. I suppose I'll wait until someone \nelse comes along...

#org 0x8C04A0
= So, how's the POKéMON doing?

#org 0x8C05A0
= Here you are. Take good care of it!\p\v\h01 received a CYNDAQUIL!
You may want to change some of the stuff in the script.

Although some people don't need to, a reason ScriptED may not work for many is because it doesn't see the file extension. To make it see it, in a folder, go to View> Folder Options> View, and turn off the "hide filetype extensions" box.

1. Make the said script and save it as InsertNameHere.rbc.

2. Make sure the script and your ROM have no spaces in the name

3. Open ScriptED, then open the script from there, and hit compile, and select your ROM. If it worked properly, a window with a ton of programming language should come up. Close it afterward.

4. Open Advance Map and go to the map where the person is, change the person's offset to the first offset in the script, and save the map.

5. Now, use your Emulator and open your ROM, and go to the person you've just edited.
  #352   Link to this post, but load the entire thread.  
Old June 29th, 2007 (7:19 PM).
clakes707 clakes707 is offline
 
Join Date: Jun 2007
Gender:
Nature: Adamant
Posts: 49
Ok, so far so good. I have to start a new game, because I messed the person's original script up before I did this and he won't say anything at all. Also, I can't load any new saved files, because VBA says that there is an erro when loading it, There is a patch for it, but when I go to the link posted in the Hack's showcase( under playing the hacks) the page never loads.
  #353   Link to this post, but load the entire thread.  
Old June 30th, 2007 (6:00 AM).
flash boy's Avatar
flash boy flash boy is offline
Hacking since 2006
 
Join Date: Jan 2006
Location: Mars.
Gender: Male
Nature: Relaxed
Posts: 146
#ORG $givePikachu
Lock
Faceplayer
message $msgGivePikachu
$msgGivePikachu 1 = Ancho: You need a pokemon for protection, here's one.
boxset BOXSET_NORMAL
givepokemon PKMN_PIKACHU 5 0
jingle
message $msgGotPikachu
$msgGotPikachu 1 = You Recieved a Pikachu
boxset BOXSET_NORMAL
message $msgNamePikachu
$msgNamePikachu 1 = Would you like to give Pikachu a name?
boxset BOXSET_YESNO
compare LASTRESULT 1
if b_True call $namePikachu
Release
setflag MENU_PARTY
fadescreen 0
end

#ORG $namePikachu
Namepokemon
return

i get the pikachu but i want the guy to disappear but he wont i don't know why can u help me.
  #354   Link to this post, but load the entire thread.  
Old June 30th, 2007 (8:14 AM).
foullump's Avatar
foullump foullump is offline
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Posts: 221
Quote:
Originally Posted by flash boy View Post
#ORG $givePikachu
Lock
Faceplayer
message $msgGivePikachu
$msgGivePikachu 1 = Ancho: You need a pokemon for protection, here's one.
boxset BOXSET_NORMAL
givepokemon PKMN_PIKACHU 5 0
jingle
message $msgGotPikachu
$msgGotPikachu 1 = You Recieved a Pikachu
boxset BOXSET_NORMAL
message $msgNamePikachu
$msgNamePikachu 1 = Would you like to give Pikachu a name?
boxset BOXSET_YESNO
compare LASTRESULT 1
if b_True call $namePikachu
Release
setflag MENU_PARTY
fadescreen 0
end

#ORG $namePikachu
Namepokemon
return

i get the pikachu but i want the guy to disappear but he wont i don't know why can u help me.
put in a 'setflag 0x[flag number] and put that as the person's id code in advance map.
__________________
  #355   Link to this post, but load the entire thread.  
Old June 30th, 2007 (8:35 AM).
clakes707 clakes707 is offline
 
Join Date: Jun 2007
Gender:
Nature: Adamant
Posts: 49
When i do those steps, and then play the game in VBA, the person won't say anything when I talk to him, He ignores me! Help please!
  #356   Link to this post, but load the entire thread.  
Old June 30th, 2007 (12:51 PM).
Bluelatios*'s Avatar
Bluelatios* Bluelatios* is offline
 
Join Date: Apr 2007
Location: Alto Mare, Johto
Gender: Male
Posts: 105
me and a couple of my friends are into hacking, but its complicated! plus I am making a hack of Pokemon Ruby (being discussed on Glitch City Labs forums). I was wondering if somebody could write us a guide on how to script edit, comeplete with how to make almost any kind of event happen. I have seen some of the scripts in pokemon ruby and it looks really complicated! we at least want to know how to make scripts for item balls, people that give items and pokemon ect. help us please?
  #357   Link to this post, but load the entire thread.  
Old June 30th, 2007 (12:54 PM).
Youji's Avatar
Youji Youji is offline
Game Designer
 
Join Date: Jun 2007
Location: Germany
Age: 31
Gender: Male
Nature: Quiet
Posts: 599
Quote:
Originally Posted by Bluelatios* View Post
me and a couple of my friends are into hacking, but its complicated! plus I am making a hack of Pokemon Ruby (being discussed on Glitch City Labs forums). I was wondering if somebody could write us a guide on how to script edit, comeplete with how to make almost any kind of event happen. I have seen some of the scripts in pokemon ruby and it looks really complicated! we at least want to know how to make scripts for item balls, people that give items and pokemon ect. help us please?
Hey newbe. Welcome to the world of hacking. It's not as hard as you think. This Community has a tutorial and documents part with many examples and tutorials all about scripting. I got all I know up to now of this pages and I'm making a hack too. Just read the tutorials and documents and posts.
  #358   Link to this post, but load the entire thread.  
Old June 30th, 2007 (1:29 PM).
foullump's Avatar
foullump foullump is offline
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Posts: 221
Quote:
Originally Posted by Bluelatios* View Post
me and a couple of my friends are into hacking, but its complicated! plus I am making a hack of Pokemon Ruby (being discussed on Glitch City Labs forums). I was wondering if somebody could write us a guide on how to script edit, comeplete with how to make almost any kind of event happen. I have seen some of the scripts in pokemon ruby and it looks really complicated! we at least want to know how to make scripts for item balls, people that give items and pokemon ect. help us please?
And whenever you need help, you can always ask. There are many people here who know exactly what they're doing [me? I guess so] and will be glad to help.
__________________
  #359   Link to this post, but load the entire thread.  
Old June 30th, 2007 (5:32 PM).
PocketPika's Avatar
PocketPika PocketPika is offline
Quiet Trainer
 
Join Date: Jun 2007
Gender: Male
Nature: Quiet
Posts: 23
hey. i want a script were after you defeat the Pewter Gym leader he walks out of the gym but since i have never made a script before i was thinking that one of you guys could make me one
  #360   Link to this post, but load the entire thread.  
Old June 30th, 2007 (8:17 PM). Edited July 2nd, 2007 by Forest Grovyle.
clakes707 clakes707 is offline
 
Join Date: Jun 2007
Gender:
Nature: Adamant
Posts: 49
How can I edit a script that was already in the ROM before I hacked it? I use Advance Map, but I have Elite Map. Thanks!

In a givepokemon script, what do you change for each pokemon?

EDIT by FG: Posts merged. do NOT double post. Read the rules before you post again.
  #361   Link to this post, but load the entire thread.  
Old July 1st, 2007 (9:37 AM).
Ultima Super's Avatar
Ultima Super Ultima Super is offline
Noob Hacker o.O
 
Join Date: Jun 2007
Location: Somewhere
Age: 32
Gender:
Nature: Brave
Posts: 28
can anyone help me with this script (im hacking emerald)

Code:
#org 0xDE402C
message 0xDE4050
boxset 0x6
goto 0xDE4074
end
#org 0xDE4074
checkflag 0x106
compare LASTRESULT 0x206
if 0x206 goto 0xDE4098
checkitem 0x4
compare LASTRESULT 0x1
if 0x4 goto 0xDE0498
setflag 0x106
end
#org 0xDE0498
checkflag  0x206
compare LASTRESULT 0x106
if 0x206 goto 0xDE4170 
message 0xDE40BC
boxset 0x6
release
applymovement 0x5 0xDE40E0
message 0xDE4104
boxset 0x6
applymovement 0x5 0xDE4128
message 0xDE414C
boxset 0x6
setflag 0x206
goto 0xDE4170
end
#org 0xDE4170
message 0xDE4194
boxset 0x6
end

#org 0xDE4050
= This is a PC you can store and/nput in POKéMON and items in it./p
It's a great system.../nBut you need an account with\p
the owner...

#org 0xDE40BC
= Oh!\pYou have a POKéDEX!\nI can get you an account with the owner...\p
Okey here!\nI'll need you name.\p...\nThanks!

#org 0xDE40E0
#raw 0x1
#raw 0xFE

#org 0xDE4104
= *BEEP*\pOld Man: Hi I have a Trainer here\nwho needs an account...\p
A while later...\p... ... ... ...\pOkay I got you an account.\nThat sould help you!

#org 0xDE4128
#raw 0x0
#raw 0x2C
#raw 0x0
#raw 0xFE

#org 0xDE414C
= There try it!

#org 0xDE4194
= Use your new PC account\nIt will be  great!

also what do you nedd to put to give some one a potion?
__________________

Go Pikachu!!!
Ultima Super's PokePet

Sparky the level 77 Pikachu!

www.freewebs.com/ultimasuper
The web of Pokémon(It's new)
  #362   Link to this post, but load the entire thread.  
Old July 1st, 2007 (11:47 AM).
clakes707 clakes707 is offline
 
Join Date: Jun 2007
Gender:
Nature: Adamant
Posts: 49
What is the script that makes someone say something? It can say whatever, I just need to be a ble to change it later. Thanks!
  #363   Link to this post, but load the entire thread.  
Old July 1st, 2007 (7:38 PM).
fuznug's Avatar
fuznug fuznug is offline
Hacker In Training
 
Join Date: Aug 2006
Location: Pennsburg, PA
Age: 32
Nature: Calm
Posts: 27
k i got a big request, can some one post a script at the beginning when oak stops you to take you to his lab, make it got 5 down, 4 right, then up 1? i would greatly appreciate it thanks
  #364   Link to this post, but load the entire thread.  
Old July 1st, 2007 (11:42 PM).
PocketPika's Avatar
PocketPika PocketPika is offline
Quiet Trainer
 
Join Date: Jun 2007
Gender: Male
Nature: Quiet
Posts: 23
Ok. right now on my firered hack i have a guy blocking the entrance to a building and i need a script that will make him go away after you beat the 8 gyms
__________________
  #365   Link to this post, but load the entire thread.  
Old July 2nd, 2007 (10:03 AM). Edited July 2nd, 2007 by foullump.
foullump's Avatar
foullump foullump is offline
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Posts: 221
Quote:
Originally Posted by PocketPika View Post
hey. i want a script were after you defeat the Pewter Gym leader he walks out of the gym but since i have never made a script before i was thinking that one of you guys could make me one
I think this will solve your problem.
Spoiler:

#org $go
trainerbattle 1 0x[trainerbattle number] $before $after $further
release
end

#org $further
fanfare 0x[getbadge fanfare]
message $obtained
boxset 4
waitfanfare
giveitem 0x[TM number]
applymovement 0x[brock's People number] $leave
pause 0x90
setflag 0x820
setflag 0x[brock's ID number]
release
end

That should help. If you need help filling the gaps, let me know.

Quote:
Originally Posted by clakes707 View Post
How can I edit a script that was already in the ROM before I hacked it? I use Advance Map, but I have Elite Map. Thanks!
You will have to hex-edit the script. Hex-editing can be hard, so I recommend making your own scripts until you get good at it before trying to hex edit stuff.

Quote:
Originally Posted by clakes707 View Post
In a givepokemon script, what do you change for each pokemon?
Can you be a little more specific please? I don't understand your question.

Quote:
Originally Posted by Ultima Super View Post
can anyone help me with this script (im hacking emerald)

Spoiler:
#org 0xDE402C
message 0xDE4050
boxset 0x6
goto 0xDE4074
end
#org 0xDE4074
checkflag 0x106
compare LASTRESULT 0x206
if 0x206 goto 0xDE4098
checkitem 0x4
compare LASTRESULT 0x1
if 0x4 goto 0xDE0498
setflag 0x106
end
#org 0xDE0498
checkflag 0x206
compare LASTRESULT 0x106
if 0x206 goto 0xDE4170
message 0xDE40BC
boxset 0x6
release
applymovement 0x5 0xDE40E0
message 0xDE4104
boxset 0x6
applymovement 0x5 0xDE4128
message 0xDE414C
boxset 0x6
setflag 0x206
goto 0xDE4170
end
#org 0xDE4170
message 0xDE4194
boxset 0x6
end

#org 0xDE4050
= This is a PC you can store and/nput in POKéMON and items in it./p
It's a great system.../nBut you need an account with\p
the owner...

#org 0xDE40BC
= Oh!\pYou have a POKéDEX!\nI can get you an account with the owner...\p
Okey here!\nI'll need you name.\p...\nThanks!

#org 0xDE40E0
#raw 0x1
#raw 0xFE

#org 0xDE4104
= *BEEP*\pOld Man: Hi I have a Trainer here\nwho needs an account...\p
A while later...\p... ... ... ...\pOkay I got you an account.\nThat sould help you!

#org 0xDE4128
#raw 0x0
#raw 0x2C
#raw 0x0
#raw 0xFE

#org 0xDE414C
= There try it!

#org 0xDE4194
= Use your new PC account\nIt will be great!



also what do you nedd to put to give some one a potion?
Well, I'm not a script-EDITER, but I am a scriptER. For a potion, use:
Spoiler:

giveitem 0xD


Quote:
Originally Posted by clakes707 View Post
What is the script that makes someone say something? It can say whatever, I just need to be a ble to change it later. Thanks!
Spoiler:

#org $go
lock
faceplayer
message $text
boxset 6
release
end

#org $text
$text 1 = WATERFALL CITY is a lush, green\nplace that was built upon\lthe world's largest waterfall.


Quote:
Originally Posted by fuznug View Post
k i got a big request, can some one post a script at the beginning when oak stops you to take you to his lab, make it got 5 down, 4 right, then up 1? i would greatly appreciate it thanks
Spoiler:

#org $go
checkflag 0x200 [can be any flag]
if B_true goto $done
playsound 0x0159
#raw 0x33
applymovement 0x[Oak's people number] $walkup
pause 0x60
message $text
boxset 6
applymovement 0x[Oak's people number] $walkdown
applymovement 0xFF $walkdown
pause 0x100
fadesound
setflag 0x200
release
end

#org $walkdown
$walkdown 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0x13 0x13 0x13 0x13 0x11 0xFE

Quote:
Originally Posted by PocketPika View Post
Ok. right now on my firered hack i have a guy blocking the entrance to a building and i need a script that will make him go away after you beat the 8 gyms
Just set his people ID as 827. When you beat Giovanni, he'll be gone.
__________________
  #366   Link to this post, but load the entire thread.  
Old July 2nd, 2007 (2:56 PM).
zel 2.0's Avatar
zel 2.0 zel 2.0 is offline
Gold Remaker
 
Join Date: Jun 2006
Location: Argentina
Age: 36
Gender: Male
Nature: Quiet
Posts: 1,955
Seeing as most has been answered (yay for foullump! :D), I just have something regarding Prof.9 and Ultima Super's posts.

I don't know why you are using the compare LASTRESULT after doing the checkflag. In my case, I just use: checkflag command, then the if 0x1 jump command, and that's enough to see if a flag is enabled or not. If it is, then it jumps, if not, it keeps going. Maybe when you are comparing, LASTRESULT doesn't have the waited value. I'm not sure, that's the last thing I could think about it.
Oh, one more detail for Ultima Super: I suggest you to always finish the scripts with "release" then "end", not just "end" (that way you'll be safe from some game freezes)

And, foullump, I can't answer your question, as I see you use Pokescript, so I guess you need to wait till Irish shows up around this thread (or send her a PM). The only thing is that, unless she reprogrammed the command, the trainerbattle for scripted worked trainerbattle 0xValue 0xID 0x0 0xMessage1 0xMessage2, so it's 5 values (again, in Scripted. Value usually is either 0, 4 or 9)
__________________


  #367   Link to this post, but load the entire thread.  
Old July 2nd, 2007 (3:16 PM).
foullump's Avatar
foullump foullump is offline
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Posts: 221
Well, I actually had another trainerbattle question. When I was playing shiny gold yesterday, I was just above mahogany town, and pkmn trainer ard (bug catcher) battled me. For reasons I'd rather not say, I lost. But when I lost, He withdrew his butterfree, and said something like "yes! you'll finally understand!" How do you set a "lose" text?

And when I fought Falkner, it played the fanfare for getting the badge when I was still in the battle. (Of course I had beat him before it did this) It was like: Here is the official pokemon league zephyrbadge. (sorry for spelling). How do I make it do fanfare while still in the battle? And with that, could I do like how the first rival battle in FR, how when you attack, Prof. Oak will say some annoying thing? Just asking for this stuff.

And if you don't know how to do it for Pokescript, just tell me how to do it in diamond cutter or sripted or something.

Thanks!
__________________
  #368   Link to this post, but load the entire thread.  
Old July 2nd, 2007 (3:40 PM).
zel 2.0's Avatar
zel 2.0 zel 2.0 is offline
Gold Remaker
 
Join Date: Jun 2006
Location: Argentina
Age: 36
Gender: Male
Nature: Quiet
Posts: 1,955
As I said before, the trainerbattle command for Scripted has that "Value", just put a 9 there, and the two messages become 0xMessage1-VictoryAgainstTrainer 0xMessage2-DefeatAgainstTrainer

The fanfare on the battle message, I just followed the same text as any other leader, I'll post what I do here, but keep in mind that I'm certain a big part of it is just garbage...

\c\h06Á\v\h01 received the FOGBADGE!\c\h17\c\h0BÇÀ\c\h08\n\c\h08[Ke]\c\h18
\c\h08[Ke]\c[&H18]

The Oak talking while battling is something related to one of those special commands. But, still the only thing you could get with that is just editing the text, as there is not a way (for us common scripters) to make like a trainer talking in the middle of a battle (I bet you wanted something like that, huh? XD)
__________________


  #369   Link to this post, but load the entire thread.  
Old July 2nd, 2007 (8:03 PM).
pokemonlover93's Avatar
pokemonlover93 pokemonlover93 is offline
The Crystal Sharder.
 
Join Date: Jun 2007
Location: Somewhat Peaceful Place.
Gender:
Nature: Timid
Posts: 29
Can someone post some pokemon crystal scripts? to put in advance games like pokemon leafgreen? Please?!
  #370   Link to this post, but load the entire thread.  
Old July 2nd, 2007 (10:20 PM).
Veng3anc3's Avatar
Veng3anc3 Veng3anc3 is offline
Woah..
 
Join Date: May 2007
Location: England
Age: 29
Gender:
Nature: Lonely
Posts: 179
help? -_-'
i cant script, period i have pokescript nd bufright/rite?
well ugh i havnt
de a succsesfull script yet witch.. sux cuz im tryin to make a hack but no scripts no hack <.>
  #371   Link to this post, but load the entire thread.  
Old July 3rd, 2007 (5:56 AM).
zel 2.0's Avatar
zel 2.0 zel 2.0 is offline
Gold Remaker
 
Join Date: Jun 2006
Location: Argentina
Age: 36
Gender: Male
Nature: Quiet
Posts: 1,955
Quote:
Originally Posted by pokemonlover93 View Post
Can someone post some pokemon crystal scripts? to put in advance games like pokemon leafgreen? Please?!
Even when I'm not into the old-gen games, I bet the scripts can be done in a similar way (obviously, hex-speaking), but that doesn't mean the hex codes used for scripting can be used from one generation to another. So, the only way to make Crystal scripts into a GBA game is to make them from scratch. Read Christos' tutorial on scripting for that.
__________________


  #372   Link to this post, but load the entire thread.  
Old July 3rd, 2007 (8:49 AM).
pokemonlover93's Avatar
pokemonlover93 pokemonlover93 is offline
The Crystal Sharder.
 
Join Date: Jun 2007
Location: Somewhat Peaceful Place.
Gender:
Nature: Timid
Posts: 29
okkk, thanks zel, but i dont know how to make scripts myself and the numbers and letters are to confusing....but thanks ill check into it. :)
  #373   Link to this post, but load the entire thread.  
Old July 3rd, 2007 (2:22 PM). Edited July 3rd, 2007 by Shadow-Soul.
Shadow-Soul's Avatar
Shadow-Soul Shadow-Soul is offline
Mapper/Hacker
 
Join Date: Jun 2007
Gender:
Nature: Calm
Posts: 32
ineed a good scripter for my new hack, if you would like to script for it pm me

pm proof of work and previous hacks
  #374   Link to this post, but load the entire thread.  
Old July 3rd, 2007 (4:20 PM).
PocketPika's Avatar
PocketPika PocketPika is offline
Quiet Trainer
 
Join Date: Jun 2007
Gender: Male
Nature: Quiet
Posts: 23
is there a script that would make celebi have its own legendary battle? you know you can walk up to it then click and it would battle you?
__________________
  #375   Link to this post, but load the entire thread.  
Old July 3rd, 2007 (5:25 PM).
pokemonlover93's Avatar
pokemonlover93 pokemonlover93 is offline
The Crystal Sharder.
 
Join Date: Jun 2007
Location: Somewhat Peaceful Place.
Gender:
Nature: Timid
Posts: 29
Can someone help me with scripts and also maybe....join my team for my hack? I need members........
Closed Thread

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 GMT -8. The time now is 9:21 AM.