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
  #101   Link to this post, but load the entire thread.  
Old March 10th, 2007 (4:09 PM).
D-Trogh's Avatar
D-Trogh D-Trogh is offline
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 31
Gender: Male
Posts: 439
When you want to use decimal numbers, DON't add the 0x before them..!!
So for example, instead of: wildbattle 0x151 0x25 0x3
You need to use: wildbattle 151 25 0x3
The '0x3' can be there..
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #102   Link to this post, but load the entire thread.  
Old March 10th, 2007 (8:04 PM). Edited March 10th, 2007 by Irish Witch.
Irish Witch's Avatar
Irish Witch Irish Witch is offline
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 42
Gender:
Nature: Lonely
Posts: 147
I hope where you wrote

Script:

Mew:

etc before each scrip that you'r not going to leave those words there. They'll stuff up your script.

It's best to make comments using

' This is a comment

or

/************

Bulk Comment
When will it stop.
I ATE snorlax

************/

Also, you need to put end at the end of each script or they crash.
And if you want to put all those scripts in one file then you'll need to use A different var name for each script instead of all of them using $msg.
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
  #103   Link to this post, but load the entire thread.  
Old March 11th, 2007 (4:53 AM).
MikeC MikeC is offline
Banned
 
Join Date: Mar 2007
Nature: Adamant
Posts: 1
#org 0xCB9A70
0x3 0x949010
pause 0x30
end

#org 0xCB9A70
#raw 0x8
#raw 0x8
#raw 0xA
#raw 0xFE

Is that right to make a person move north and dissapear from the game forever, It didn't work. :(

I tried that in my FR rom hack and that's a FR script. Wondering what I'm doing wrong.
  #104   Link to this post, but load the entire thread.  
Old March 11th, 2007 (5:07 PM).
userpr's Avatar
userpr userpr is offline
Quilava Trainer
 
Join Date: Nov 2006
Age: 31
Gender:
Nature: Adamant
Posts: 51
I'm trying to hack Emerald and I would like to know the offset for the intro with Prof. Birch's speech and everything. Or if not could someone tell me how I could find out myself? Thanks in advance.
  #105   Link to this post, but load the entire thread.  
Old March 11th, 2007 (11:05 PM).
ChaosKing ChaosKing is offline
 
Join Date: Jan 2007
Gender:
Nature: Adamant
Posts: 19
can someone give me the boat script
  #106   Link to this post, but load the entire thread.  
Old March 12th, 2007 (2:10 AM).
foofatron foofatron is offline
Banned
 
Join Date: Jan 2007
Age: 21
Gender:
Nature: Adamant
Posts: 309
What kind of boat script?Want the boat to go anywhere or something?
  #107   Link to this post, but load the entire thread.  
Old March 13th, 2007 (10:02 PM).
max1992's Avatar
max1992 max1992 is offline
newbie hacker
 
Join Date: Mar 2007
Age: 30
Gender:
Nature: Relaxed
Posts: 4
hi
i am new into hacking some questions i want some 1 to answer:embarrass
1.how to change the text??
2.how do i change the intro video??
plz plz plz............answer lot of thanks for the one who answers:embarrass
  #108   Link to this post, but load the entire thread.  
Old March 14th, 2007 (5:05 AM).
Christos's Avatar
Christos Christos is offline
 
Join Date: Feb 2006
Gender: Male
Nature: Serious
Posts: 6,355
Quote:
Originally Posted by ChaosKing View Post
can someone give me the boat script
Something like a warp script? You'll have to tell us where do you want the script to warp you and the location in the map or the warp's number.

Quote:
Originally Posted by max1992 View Post
hi
i am new into hacking some questions i want some 1 to answer:embarrass
1.how to change the text??
2.how do i change the intro video??
plz plz plz............answer lot of thanks for the one who answers:embarrass
This thread is only for scripting stuff. You should post these questions here.
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.
  #109   Link to this post, but load the entire thread.  
Old March 14th, 2007 (10:31 PM).
Blazin Blazin is offline
 
Join Date: Aug 2006
Gender:
Nature: Adamant
Posts: 4
Hey all, I've got a couple of questions I've been needing answers to so I hope someone can help me out. I am hacking Emerald and I want the the first pokemon to be Eevee. But I don't want to use prof.birch script. I'm wanting the eevee to be on the table inside the players house in a pokeball. I'm working on that script myself but I want another script where if the player doesn't pick up the pokeball and goes to walk through the warp outside, the professor comes in and tells you to pickup the eevee and meet him in the lab. This is so the player can't actually leave the house without the pokemon, but I'm not sure how to script the professor to come inside the house if the player tries to warp outside. Any help for this is very appreciative.

My other question hopefully is a simple one. Since I am hacking Emerald I don't want the player to start in the truck or have the hero's mum to exist at all. I want the player to start in his room without any scripts. Anyone know how to make him start in his room and not the truck, and have none of the scripts involving the mum?

All help will be great for me and getting my hack ready.
  #110   Link to this post, but load the entire thread.  
Old March 15th, 2007 (5:20 AM).
Irish Witch's Avatar
Irish Witch Irish Witch is offline
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 42
Gender:
Nature: Lonely
Posts: 147
That second question is actually hard. I've been trying to work out a way around that myself.

Once I have a working alternative I'll post something on it!

----

The first one is easy, the bedroom has a sprite of 'mum' hiden inside the door frame. Replace that sprite with the person you want and put a walk on event right in front of the door.

When you pick up the pokemon use something like the 'professional givepokemon script' a couple of pages back then on the walk-over event use

countpokemon ' This command in Pokescript
compare LASTRESULT 0x0
if 0x1 goto $location

or
#raw 0x43 ' This command in scripted
compare LASTRESULT 0x0
if 0x1 goto 0xlocation


to make sure they picked it up. Location is the scipt containing the move events etc for the sprite hidden under the door!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
  #111   Link to this post, but load the entire thread.  
Old March 15th, 2007 (6:09 AM).
pichu2000 pichu2000 is offline
 
Join Date: Nov 2005
Gender:
Posts: 153
can I add new flight position?
  #112   Link to this post, but load the entire thread.  
Old March 16th, 2007 (8:31 AM).
frank$or frank$or is offline
 
Join Date: Nov 2006
Gender:
Nature: Adamant
Posts: 91
Quote:
Originally Posted by Blazin View Post
My other question hopefully is a simple one. Since I am hacking Emerald I don't want the player to start in the truck or have the hero's mum to exist at all. I want the player to start in his room without any scripts. Anyone know how to make him start in his room and not the truck, and have none of the scripts involving the mum?
You could use SMEA, it supports emerald, and you can edit the bank/map where you want to start.
You can find SMEA at scizz's site, or just google it.
  #113   Link to this post, but load the entire thread.  
Old March 16th, 2007 (2:42 PM).
Irish Witch's Avatar
Irish Witch Irish Witch is offline
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 42
Gender:
Nature: Lonely
Posts: 147
Would have been nice to know about that program, but still has problems because of the 'truck' animation sequence.

Hey Andrea Sartori where's the byte address for those values. Maybe we can decode the script and remove the animation!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
  #114   Link to this post, but load the entire thread.  
Old March 17th, 2007 (2:14 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
Well, now that I've put my scriptsback in EliteMap's folder, I ran into another problem. I made this script:
Spoiler:
#org 0x900000
lock
faceplayer
message 0x900100
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x900200
message 0x900300
boxset 0x6
release
end

#org 0x900200
message 0x900400
boxset 0x6
release
end

#org 0x900100
= Do you want to be the best?

#org 0x900300
= Fine, be that way.

#org 0x900400
= Alright! Just beat the Elite 4!


I tried to apply that to the fat guy's script in Littleroot town, but there's just a bleep and nothing happens. Anyone know what's wrong?
__________________


Pokeymenz Am-nee-shaaah Beta 4 Released!
  #115   Link to this post, but load the entire thread.  
Old March 18th, 2007 (7: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
Hedgehogger: When you said "apply that to the fat guy", you mean you opened Advance Map, went to the fat guy's sprite, and changed its offset from $Whatever to $900000, because I don't see problems with the script.
__________________


  #116   Link to this post, but load the entire thread.  
Old March 19th, 2007 (2:43 AM).
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 zel View Post
Hedgehogger: When you said "apply that to the fat guy", you mean you opened Advance Map, went to the fat guy's sprite, and changed its offset from $Whatever to $900000, because I don't see problems with the script.
Yeah, I did that; In fact I just tested it out now with the same result as before. :(
__________________


Pokeymenz Am-nee-shaaah Beta 4 Released!
  #117   Link to this post, but load the entire thread.  
Old March 19th, 2007 (7:06 AM).
Irish Witch's Avatar
Irish Witch Irish Witch is offline
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 42
Gender:
Nature: Lonely
Posts: 147
Hedgehogger: Are you writing that with Scripted or Pokescript?
If it's pokescript then check the bufrite log. There should be a lot of lines like this:

Spoiler:
- Pushed simplescript.$startjolt to 800000
#PROCESS: D:\PokeWitch\POKEMON SAPPHIRE VERSION.GBA F:2 for read
/---------------------------------------------------------------
| - Pushed simplescript.$joltbattle to 80001C
| - Pushed simplescript.$winjolt to 80003E
| - Pushed simplescript.$sorry to 80005F
| - Pushed simplescript.$givebadge to 800068
| - Pushed simplescript.$domove to 800082
| - Pushed simplescript.$givepoke to 8000BD
| - Pushed simplescript.$error to 800100
| - Pushed simplescript.$nameevee to 80010A
| - Pushed simplescript.$battlejohn to 800126
| - Pushed simplescript.$challenge to 800133


That first value is the one you want to put in your script. If scripted then I honestly don't have a clue!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
  #118   Link to this post, but load the entire thread.  
Old March 19th, 2007 (8:31 AM).
Haile Selassie IV's Avatar
Haile Selassie IV Haile Selassie IV is offline
.
 
Join Date: Mar 2007
Location: Aker, Amsterdam, Noord-Holland, The Netherlands, Europe, The Earth.
Age: 29
Nature: Modest
Posts: 82
Meh, they don't work, can someone please show an correct example of a wild battle script? It's voor PokeScript.
__________________
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.
  #119   Link to this post, but load the entire thread.  
Old March 19th, 2007 (2:00 PM).
Monkey's Avatar
Monkey Monkey is offline
 
Join Date: Feb 2007
Gender:
Nature: Adamant
Posts: 32
Code:
#org $start
lock
applymovement ... $move
warp 0 7 ...
release
end

#org $move
#raw ...
#raw ...
#raw ...
#raw FE
its warp script i dont know what to fill in at the ... (no i didnt make the script some1 that did wanna help me with me hack did)

its for pokescript
  #120   Link to this post, but load the entire thread.  
Old March 19th, 2007 (2:31 PM).
rpgdude's Avatar
rpgdude rpgdude is offline
Wobbuffet = GOD!
 
Join Date: Feb 2005
Location: Zimbabwe
Gender:
Nature: Adamant
Posts: 63
How would I make so a guy won't let you in a cave unless you have a Groudon. I am using PokeScript
Thanks in advance
  #121   Link to this post, but load the entire thread.  
Old March 20th, 2007 (9:04 AM).
Irish Witch's Avatar
Irish Witch Irish Witch is offline
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 42
Gender:
Nature: Lonely
Posts: 147
Quote:
Originally Posted by lukenetty View Post
Meh, they don't work, can someone please show an correct example of a wild battle script? It's voor PokeScript.
You can modify the 'simple tutorial' script for the basics. Replace the givepokemon command with

wildbattle <pokemon> <level> <object>

The pokemon number are the same as givepokemon. I think I posted them in the tut

Quote:
Originally Posted by Monkey View Post
Code:
#org $start
lock
applymovement <Sprite No> $move
pausemove 0
warp <Bank> <map> <warp no>
release
end

#org $move
#raw ...
#raw ...
#raw ...
#raw FE
I've replaced the ... with descriptors in the above quote and added a command so the applymove works properly. The values have to be read from the map you're referring to in advanced map.

ie(Fictional values):
map 7(bank).3(map) has a warp with the warp no 7.
and if your applying your movement to the main character use the value FF.
If not get the sprite no from the map where your placing your script.

the values for #RAW movement data are posted earlier in this thread.

Quote:
Originally Posted by rpgdude View Post
How would I make so a guy won't let you in a cave unless you have a Groudon. I am using PokeScript
Thanks in advance
Check my tutorial for usage in flags and displaying text. Then put a 'script' event in front of the door to the cave (or even the guy himself). Set the guy or scripts 'flag value' to the flag you set in your script!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
  #122   Link to this post, but load the entire thread.  
Old March 20th, 2007 (9:05 AM).
Quil Quil is offline
Me
 
Join Date: Dec 2006
Age: 27
Nature: Sassy
Posts: 67
Code:
'-----------------------
#org 0x9D0000
checkflag 0x9E2
if 0x1 call 0x9D0900
checkflag 0x9D3
if 0x1 call 0x9D0800
checkflag 0x9D1
if 0x1 goto 0x9D0B00
msgbox 0x89D0100 '"DWARF:So...\nYou wan..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 call 0x9D0200
msgbox 0x89D0300 '"DWARF:NO?! N00b...."
release
end

'-----------------------
#org 0x9D0900
msgbox 0x89D0A00 '"DWARF:Isn't the unde..."
callstd 0x2
release
end

'-----------------------
#org 0x9D0800
setflag 0x9E2
msgbox 0x89D0700 '"DWARF: You gave him ..."
callstd 0x2
release
end

'-----------------------
#org 0x9D0200
setflag 0x9D1
msgbox 0x89D0400 '"DWARF:But you don't ..."
callstd 0x2
release
end

#org 0x9D0B00
message 0x9D0C00
boxset 0x2
end

'---------
' Strings
'---------
#org 0x9D0100
= DWARF:So...\nYou wanna use my underground?
#org 0x9D0300
= DWARF:NO?! N00b.
#org 0x9D0A00
= DWARF:Isn't the underground easy to use?
#org 0x9D0700
= DWARF:You gave him the Lobster? Good.\nYou can use my Underground
#org 0x9D0400
= DWARF:But you don't use it before you\nhave earned the rights.\pGive a Fisher this...\p\c\h01Á\v\h01 Obianted a Lobster.\p\v\h01 Put it in the Quest Pocket.
#org 0x9D0C00
= DWARF:Already gave it to him?
Code:
'-----------------------
#org 0x9D1000
checkflag 0x9D3
if 0x1 call 0x9D1500
checkflag 0x9D1
if 0x1 call 0x9D1200
msgbox 0x89D1300 '"FISHER:I need a Lobs..."
callstd 0x2
end

'-----------------------
#org 0x9D1500
msgbox 0x89D1600 '"FISHER:Thanks again!..."
callstd 0x2
end

'-----------------------
#org 0x9D1200
setflag 0x9D2
msgbox 0x89D1400 '"FISHER:You got a Lob..."
callstd 0x2
end

#org 0x9D1300
= FISHER:I need a Lobster!\nAww...\pWithout we can't live!
#org 0x9D1600
= FISHER:Thanks again!
#org 0x9D1400
= FISHER:You got a Lobster?!\p\c\h01Á\v\h01 Give the Lobster to the Fisher.\pYeah,Thanks
This scripts i made, the first is form a DWARF that give you a quest, and de next one form the Fisher in the quest.
But, the fisher only says:
"FISHER:I need a Lobster!
Aww...

Without we can't live!"

What's wrong? (I think a fault flag...)
__________________


  #123   Link to this post, but load the entire thread.  
Old March 21st, 2007 (12:05 AM).
pokemon1412's Avatar
pokemon1412 pokemon1412 is offline
 
Join Date: Aug 2006
Nature: Calm
Posts: 60
Here the wildbattle pokemon code:

Code:
#org 0xA00000
checkflag 0x1412
if 0x1 goto 0xA00100
#raw 0xC5
setvar 0x8004 0x????  <=== Pokemon Species
setvar 0x8005 0x??     <=== Pokemon Level
setvar 0x8006 0x????  <=== Item held
special 0x1E2
setflag 0x8C1
special 0x139      <=== For Emerald are 0x139, 0x13A, 0x13B
playsound 0x???? <=== Battle Music
#raw 0x27
clearflag 0x8C1
setflag 0x1412        <=== Your Flag
end

#org 0xA00100
end
  #124   Link to this post, but load the entire thread.  
Old March 21st, 2007 (5:26 AM).
Monkey's Avatar
Monkey Monkey is offline
 
Join Date: Feb 2007
Gender:
Nature: Adamant
Posts: 32
is it possible to make a pokemart script with 15 items? for pokescript so yes could some1 make it for me or give a start for it so i can try figure it out my own?
  #125   Link to this post, but load the entire thread.  
Old March 21st, 2007 (10:38 PM). Edited March 22nd, 2007 by Nitsuj99.
Nitsuj99 Nitsuj99 is offline
 
Join Date: Apr 2006
Nature: Adamant
Posts: 17
Is it possible, through timed scripts to change the palette when it gets to be a certain time or change the weather to bit dark when it reaches a certain time. for example it will get dark at 6:00 pm and light again at 6:00 am?
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
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 GMT -8. The time now is 9:21 AM.