The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page [Archive] Script help thread

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
  #326   Link to this post, but load the entire thread.  
Old January 27th, 2008 (12:54 PM).
TB Pro's Avatar
TB Pro TB Pro is offline
Old-timer
 
Join Date: Nov 2004
Location: Midwestern USA
Age: 28
Gender: Male
Posts: 2,707
Quote:
Originally Posted by shane2243 View Post
when using A-map i type my offset code into the script offset box, but it doesnt seem to work, when testing it, the rom crashes, in pokescript the code i get is "message1. $begin (D01000)", so i type "D01000" into the box in A-map, is there something im doing wrong?
Yes type it in as $D01000.
Always put a "$" in front of offsets!
Lol!
__________________
--I'm a creepin'..
  #327   Link to this post, but load the entire thread.  
Old January 27th, 2008 (12:57 PM).
shane2243's Avatar
shane2243 shane2243 is offline
Dragonite Lover
 
Join Date: Jan 2008
Location: Croydon
Gender:
Nature: Naughty
Posts: 94
Quote:
Originally Posted by Teh Blaziken View Post
Yes type it in as $D01000.
Always put a "$" in front of offsets!
Lol!

oh forgot to mention i also put the $ but it doesnt work =[
  #328   Link to this post, but load the entire thread.  
Old January 27th, 2008 (1:15 PM).
Derlo's Avatar
Derlo Derlo is offline
Tired....
 
Join Date: Aug 2007
Location: Mossoró-RN-BR
Gender: Male
Posts: 135
Try to put 0xOFFSET like this he angers to open the written message of the offset.
-->
message 0xD01000
0xD01000 1 =Hey \v\h01!\nHows your journey going?
boxset 6
  #329   Link to this post, but load the entire thread.  
Old January 27th, 2008 (1:17 PM).
+Sneasel™'s Avatar
+Sneasel™ +Sneasel™ is offline
It's a meeee, itman!
 
Join Date: May 2007
Location: None of your business!
Age: 29
Gender:
Nature: Lonely
Posts: 1,032
#org $begin
lock
faceplayer
message $howareyou
boxset 6
release
end

#org $howareyou
$howareyou 1 = Hey \v\h01! \nHows your journey going?

I corrected it, try this
__________________
Intentions that were pure have turned obscure,
Seconds into hours, minutes into years.
Don't ask me why,
PLEASE DON'T CRY!
I can't tell you lies...

Don't click this!

PPH - A great hacking forum :)
  #330   Link to this post, but load the entire thread.  
Old January 27th, 2008 (1:28 PM).
shane2243's Avatar
shane2243 shane2243 is offline
Dragonite Lover
 
Join Date: Jan 2008
Location: Croydon
Gender:
Nature: Naughty
Posts: 94
Quote:
Originally Posted by itman1234 View Post
#org $begin
lock
faceplayer
message $howareyou
boxset 6
release
end

#org $howareyou
$howareyou 1 = Hey \v\h01! \nHows your journey going?

I corrected it, try this
Quote:
Originally Posted by Derlo View Post
Try to put 0xOFFSET like this he angers to open the written message of the offset.
-->
message 0xD01000
0xD01000 1 =Hey \v\h01!\nHows your journey going?
boxset 6

ill try both of these thanks =].
not on the pc atm, on the goddamn mac, but ill get back to you with the results =].
  #331   Link to this post, but load the entire thread.  
Old January 27th, 2008 (3:59 PM).
efilonn's Avatar
efilonn efilonn is offline
 
Join Date: Aug 2007
Location: Long Island, New York
Age: 31
Gender:
Posts: 23
Okay, I understand how to script, but I don't understand how to ignite a script to be performed after you walk on a certain space in the game.

For example I have this script
Code:
#ORG $start
lock
message $lol
boxset 6
release
end

#ORG $lol
$lol 1 = Lolled!
Very simple, and very basic. I don't think there can be any flaws to that.... but if there is tell me.

Anyway, I entered in the starting offset for $start (happens to be $800437) into the script offset box for the script event in Advance Map. And yes, I have the script spot positioned on the map. In game when I walk on the square, the player freezes up but no messages pop up or nothing, and the music keeps on playing...

Help appreciated =)
  #332   Link to this post, but load the entire thread.  
Old January 28th, 2008 (5:00 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
Maybe it's your ORG in the beginning, try using lowercase letters. What program do you use, PoketScript or something else? If it's PoketScript, then tell me what it says when you are burning it into the game. If not, then I can't help.

And does anyone know what to put to make an earthquake happen? Like when you're running to Groudon/Kyogre in Ruby/Sapphire? Yes, it is Ruby/Sapphire.
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #333   Link to this post, but load the entire thread.  
Old January 28th, 2008 (7:53 AM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 30
Gender: Male
Nature: Timid
Posts: 860
Quote:
Originally Posted by efilonn View Post
Okay, I understand how to script, but I don't understand how to ignite a script to be performed after you walk on a certain space in the game.

For example I have this script
Code:
#ORG $start
lock
message $lol
boxset 6
release
end

#ORG $lol
$lol 1 = Lolled!
Very simple, and very basic. I don't think there can be any flaws to that.... but if there is tell me.

Anyway, I entered in the starting offset for $start (happens to be $800437) into the script offset box for the script event in Advance Map. And yes, I have the script spot positioned on the map. In game when I walk on the square, the player freezes up but no messages pop up or nothing, and the music keeps on playing...

Help appreciated =)
Did you put the numbers in the script tile in the right way?
unkown: 03 00
var number: 6C(can be 50 to) 40
var value: 00 00
unkown: 00 00

I usually use 6C but you can do 50 to..
__________________
  #334   Link to this post, but load the entire thread.  
Old January 28th, 2008 (8:05 AM). Edited January 28th, 2008 by Piplup-Trainer.
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: 31
Gender: Male
Nature: Relaxed
Posts: 228
Well, I burned this script, whichI've got from the Irish Witch's thread :

Quote:
#org $ShowText
Lock
Faceplayer

$message noCookie
$noCookie = Hi! I haven't got a cookie for you!!!

release
end
If I click on the person then he don't answers me!
Here is the video (You can't hear the clicks because my Hypercam doesn't record sound. I don't know why - I clicked "Record Sound").
Attached Files
File Type: avi clip0035.avi‎ (6.45 MB, 6 views) (Save to Dropbox)
__________________
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
  #335   Link to this post, but load the entire thread.  
Old January 28th, 2008 (8:25 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
You forgot the video. :P

But that tutorial is outdated, try doing this:

#org $ShowText
Lock
Faceplayer
message $noCookie
boxset 6
release
end

$message noCookie
$noCookie = Hi! I haven't got a cookie for you!!!
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #336   Link to this post, but load the entire thread.  
Old January 28th, 2008 (10:36 AM). Edited January 28th, 2008 by Piplup-Trainer.
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: 31
Gender: Male
Nature: Relaxed
Posts: 228
I edited it. the video is now aviable (Sorry, that you couldn't see the video before, because my internet is slow...)

I've inserted your version, Pikafan.
He is speaking with me if I click on him.
But he don't say that he haven#t a cookie.
He is teling that Prof. Birch is gone and he is asking when he'll come back (like in the original ruby).
__________________
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
  #337   Link to this post, but load the entire thread.  
Old January 28th, 2008 (11:35 AM).
Larsie13
Guest
 
Posts: n/a
In FR, there are some Rockets that you first see as an other sprite. But then they "transform" into a Rocket-sprite. How can you do that with a script?
  #338   Link to this post, but load the entire thread.  
Old January 28th, 2008 (12:25 PM). Edited January 28th, 2008 by Pikachu™.
Pikachu™'s Avatar
Pikachu™ Pikachu™ is offline
Pika Pika!
 
Join Date: Jan 2008
Nature: Brave
Posts: 199
I need help with this script:
#org $begin
lock
faceplayer
checkflag 0x200
if b_true goto $alreadygotone
message $wantpoke
$wantpoke 1 =Hey,\nwould you like this Eevee?
boxset 5
compare LASTRESULT 1
if 1 goto $geteevee
message $toobad
$toobad 1 =Oh, thats too bad.
boxset 6
release
end
#org $geteevee
lock
message $getone
$getone 1 =Oh cool!\nI cant take care of it\panymore...
boxset 6
givepokemon 0x85 0x5 0x0
message $received
$received 1 =PLAYER received EEVEE!
boxset 6
applymovement 0x1 $going
pausemove 0
release
end
#org $going
#raw 0x60 it works but after the script as finshed it freezes what am I doing wrong?
__________________
Hmm....
  #339   Link to this post, but load the entire thread.  
Old January 28th, 2008 (12:39 PM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 30
Gender: Male
Nature: Timid
Posts: 860
Quote:
Originally Posted by darkness lucario View Post
I need help with this script:
#org $begin
lock
faceplayer doesnt have to be here
checkflag 0x200
if b_true goto $alreadygotone
message $wantpoke
$wantpoke 1 =Hey,\nwould you like this Eevee?
boxset 5
compare LASTRESULT 1
if 1 goto $geteevee
message $toobad
$toobad 1 =Oh, thats too bad.
boxset 6
release
end

#org $geteevee
lock
message $getone
$getone 1 =Oh cool!\nI cant take care of it\panymore...
boxset 6
givepokemon 0x85 0x5 0x0
message $received
$received 1 =\v\h01 received EEVEE!
boxset 6
applymovement 0x1 $going
pausemove 0
release
end

#org $going
#raw 0x60 whitt this you want to make the OW disappear if im right?
so I ewould do it like this

#org $going
$going 1 ; #binary 0x60 0xFE (always has to be there)

it works but after the script as finshed it freezes what am I doing wrong?
It would work like that...
__________________
  #340   Link to this post, but load the entire thread.  
Old January 28th, 2008 (12:52 PM).
Pikachu™'s Avatar
Pikachu™ Pikachu™ is offline
Pika Pika!
 
Join Date: Jan 2008
Nature: Brave
Posts: 199
thanks it worked really well
__________________
Hmm....
  #341   Link to this post, but load the entire thread.  
Old January 28th, 2008 (1:23 PM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
Quote:
Originally Posted by Piplup-Trainer View Post
I edited it. the video is now aviable (Sorry, that you couldn't see the video before, because my internet is slow...)

I've inserted your version, Pikafan.
He is speaking with me if I click on him.
But he don't say that he haven#t a cookie.
He is teling that Prof. Birch is gone and he is asking when he'll come back (like in the original ruby).
That's because of a Level script. Choose a different map.
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #342   Link to this post, but load the entire thread.  
Old January 28th, 2008 (2:36 PM).
efilonn's Avatar
efilonn efilonn is offline
 
Join Date: Aug 2007
Location: Long Island, New York
Age: 31
Gender:
Posts: 23
Quote:
Originally Posted by Poke-Roy View Post
Did you put the numbers in the script tile in the right way?
unkown: 03 00
var number: 6C(can be 50 to) 40
var value: 00 00
unkown: 00 00

I usually use 6C but you can do 50 to..


TYVM!!! Those numbers for the vars were what I was looking for, it works perfectly now =D
  #343   Link to this post, but load the entire thread.  
Old January 28th, 2008 (4:08 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: 31
Gender: Male
Nature: Relaxed
Posts: 228
Quote:
Originally Posted by ~*Pikafan*~ View Post
That's because of a Level script. Choose a different map.
I putted the offset for that girl in the second town (after Route 101).
I click on her --> it happens nothing.

By the way, what is a level script (stupid question)?
__________________
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
  #344   Link to this post, but load the entire thread.  
Old January 28th, 2008 (4:11 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 Piplup-Trainer View Post
I putted the offset for that girl in the second town (after Route 101).
I click on her --> it happens nothing.

By the way, what is a level script (stupid question)?
1. You could show us a script for your problem?

2. A level script is a normal script, but it doesn't have a certain tile, it is in the level, for instance. In Pokemon Gold, when you enter Ecruteak Pokemon Centre Bill comes and talks to you, right? You cant enter through a warp and have that script happen, it is done by a level script. So as soon as you enter the map, the level script will activate, hopefully that explains it?
__________________
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.
  #345   Link to this post, but load the entire thread.  
Old January 28th, 2008 (5:30 PM).
Ghost's Avatar
Ghost Ghost is offline
In the Mainframe!
 
Join Date: Jan 2008
Location: Las Vegas
Gender: Male
Nature: Relaxed
Posts: 742
does any one know garys song before u battle him
It would be nice if someone answer this
  #346   Link to this post, but load the entire thread.  
Old January 28th, 2008 (5:59 PM).
efilonn's Avatar
efilonn efilonn is offline
 
Join Date: Aug 2007
Location: Long Island, New York
Age: 31
Gender:
Posts: 23
Okay well I'm hacking FireRed and I'm trying to make a script where it gives you a pokemon, but there's a problem. This is right at the beginning of the game (before you are given a first pokemon) so there's no pokedex or anything. But then I found the setflags for the pokemon menu and pokedex and set them right before I gave the pokemon, but still the game just somehow messes up and gives me a master ball instead???? I'm totally lost.

Well anyway here's the code
Code:
#ORG $begin
lock
checkflag 0x200
if B_False goto $done
checkflag 0x201
if B_true goto $done2
message $right
$right 1 = You've successfully entered\nthe passcode!
boxset 6
message $pokemon
$pokemon 1 = Would you like a\n free pokemon?
boxset 5
compare lastresult 1
if b_true then goto $givemeh
release
end

#ORG $done2
message $loll
$loll 1 = You've already got\nyour pokemon.
boxset 6
release
end

#ORG $done
message $wrong
$wrong 1 = It seems a code is\nneeded to boot up...
boxset 6
release
end

#ORG $givemeh
setflag 0x828
setflag 0x829
special 0x16F
setflag 0x201
message $ugot
$ugot 1 = You received Mew!!!
boxset 6
setflag 0x203
givepokemon 150 2 1
release
end
You can kindof forget the setflags in the beginning as they influence other scripts i have in the future (i understand the jist of coding) but yeah.... look towards the #ORG $givemeh part at the bottom, as I'm sure it gets to that point (I've tested). The problem is I never even see the You received Mew!!! message at all and also the pokedex and the pokemon menu hasn't even been activated, instead as I've said before I somehow receive a master ball (which doesn't even show up in the item bag either). The setflags 828-829 should activate teh pokedex and menu's (I've looked it up).

Yes I know I typed a lot but it's very complicated and I'm totally stuck =(
  #347   Link to this post, but load the entire thread.  
Old January 28th, 2008 (6:26 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
#org $givemeh
setflag 0x828
setflag 0x829
special 0x16F
givepokemon 150 2 1
message $ugot
$ugot 1 = You received Mew!!!
boxset 6
setflag 0x203
setflag 0x201
release
end

I do think these are the only I found that makes it glitchy, but I'm no expert in scripting, so I am quite so sure about it...
__________________

  #348   Link to this post, but load the entire thread.  
Old January 29th, 2008 (2:14 AM).
shane2243's Avatar
shane2243 shane2243 is offline
Dragonite Lover
 
Join Date: Jan 2008
Location: Croydon
Gender:
Nature: Naughty
Posts: 94
Quote:
Originally Posted by itman1234 View Post
#org $begin
lock
faceplayer
message $howareyou
boxset 6
release
end

#org $howareyou
$howareyou 1 = Hey \v\h01! \nHows your journey going?

I corrected it, try this

i tried this, copied and pasted it exactly.

this is what i got when testing...


is that because i am using No$GBA?


or is the code wrong?

i left the offset in the image so you can see what im typing.
  #349   Link to this post, but load the entire thread.  
Old January 29th, 2008 (3:47 AM).
+Sneasel™'s Avatar
+Sneasel™ +Sneasel™ is offline
It's a meeee, itman!
 
Join Date: May 2007
Location: None of your business!
Age: 29
Gender:
Nature: Lonely
Posts: 1,032
oh, that's happened to me.
It means you have a bugged ROM.
Get a new one, i could send you one if you want, just PM me.
__________________
Intentions that were pure have turned obscure,
Seconds into hours, minutes into years.
Don't ask me why,
PLEASE DON'T CRY!
I can't tell you lies...

Don't click this!

PPH - A great hacking forum :)
  #350   Link to this post, but load the entire thread.  
Old January 29th, 2008 (11:05 AM). Edited January 29th, 2008 by Piplup-Trainer.
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: 31
Gender: Male
Nature: Relaxed
Posts: 228
Quote:
Originally Posted by Crashink View Post
1. You could show us a script for your problem?

2. A level script is a normal script, but it doesn't have a certain tile, it is in the level, for instance. In Pokemon Gold, when you enter Ecruteak Pokemon Centre Bill comes and talks to you, right? You cant enter through a warp and have that script happen, it is done by a level script. So as soon as you enter the map, the level script will activate, hopefully that explains it?
I'll upload the video and post the link here.
The video shows how I show the script, burn it into the rom and how I set the offset.

EDIT :
Here is the link : http://www.youtube.com/watch?v=graoDgm9_xU
__________________
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
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:25 AM.