Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Reload this Page Script Help Thread (DO NOT REQUEST SCRIPTS)

Notices
For all updates, view the main page.

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
 
Thread Tools
  #7101    
Old July 20th, 2012 (10:35 AM).
johnr754's Avatar
johnr754 johnr754 is offline
I am JOHN, heck yeah!
 
Join Date: Nov 2009
Location: California, USA! USA!
Gender: Male
Nature: Modest
Posts: 80
Again, can anyone help me with this? Whenever I try to compile it, it says that I have to add define or parameter in line 8. Here is the script:

Spoiler:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x90 0x0
wildbattle 0x90 0x1E
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= ARTICUNO: Gaoooh!
__________________
---
  #7102    
Old July 20th, 2012 (11:08 AM). Edited July 20th, 2012 by Blue.
Blue's Avatar
Blue Blue is offline
» Bully
Platinum Tier
 
Join Date: Jan 2008
Location:
Gender: Male
Nature: Relaxed
Posts: 10,664
Quote originally posted by johnr754:
Again, can anyone help me with this? Whenever I try to compile it, it says that I have to add define or parameter in line 8. Here is the script:

Spoiler:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x90 0x0
wildbattle 0x90 0x1E
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= ARTICUNO: Gaoooh!
Try compiling this, it works fine for me (Make sure you set the Person ID to the flag number which I've put as 1261)
Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x90 0x0
wildbattle 0x90 0x1E 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x1261
release
end

#org @1
= ARTICUNO: Gaoooh!


Also, could someone help me with this? Rather than giving the Pokemon it skips to the given text.
Spoiler:

#dynamic 0x800000

#org @start
checkflag 0x828
if 0x1 call @Given
msgbox @need 0x2
fanfare 0x172
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
waitfanfare
setflag 0x828
end

#org @Given
msgbox @how 0x2
end

#org @need
= I just caught a Squirtle that was\nalways getting into mischief.\lI think it needs a good trainer to\lset it straight. You look like a\lgood trainer to take care of it!

#org @how
= Is Squirtle doing okay? I hope\nit's not causing more mischief!
__________________
  #7103    
Old July 20th, 2012 (11:52 AM).
johnr754's Avatar
johnr754 johnr754 is offline
I am JOHN, heck yeah!
 
Join Date: Nov 2009
Location: California, USA! USA!
Gender: Male
Nature: Modest
Posts: 80
Quote originally posted by Suicune™:


Try compiling this, it works fine for me (Make sure you set the Person ID to the flag number which I've put as 1261)
Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x90 0x0
wildbattle 0x90 0x1E 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x1261
release
end

#org @1
= ARTICUNO: Gaoooh!
That did not work. It said the same message. Missing #define or parameter.

It's for Pokémon Emerald, if you were wondering. I'm also using XSE 1.1.1.
__________________
---
  #7104    
Old July 20th, 2012 (12:04 PM).
machomuu's Avatar
machomuu machomuu is online now
Grant me the power of revolution!
Gold Tier
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
Posts: 6,508
Quote originally posted by Suicune™:
Also, could someone help me with this? Rather than giving the Pokemon it skips to the given text.
Spoiler:

#dynamic 0x800000

#org @start
checkflag 0x828
if 0x1 call @Given
msgbox @need 0x2
fanfare 0x172
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
waitfanfare
setflag 0x828
end

#org @Given
msgbox @how 0x2
end

#org @need
= I just caught a Squirtle that was\nalways getting into mischief.\lI think it needs a good trainer to\lset it straight. You look like a\lgood trainer to take care of it!

#org @how
= Is Squirtle doing okay? I hope\nit's not causing more mischief!
Sounds like Flag 0x828 is already activated.
__________________
  #7105    
Old July 20th, 2012 (12:18 PM).
Blue's Avatar
Blue Blue is offline
» Bully
Platinum Tier
 
Join Date: Jan 2008
Location:
Gender: Male
Nature: Relaxed
Posts: 10,664
Quote originally posted by machomuu:
Sounds like Flag 0x828 is already activated.
By what exactly? This is a clean FR ROM where I have only used Flags 1200+
__________________
  #7106    
Old July 20th, 2012 (12:22 PM).
miksy91's Avatar
miksy91 miksy91 is offline
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Posts: 1,300
Quote originally posted by Suicune™:

By what exactly? This is a clean FR ROM where I have only used Flags 1200+
Depends on what flag no. 828 stands for in the original rom file. For example, the flag of old man, in Viridian City who teaches you how to catch a pokemon, is originally set (1) when the "game starts" (or you'll arrive at your house and can move) and is cleared (0) at the event when Pokedex is gotten.
*Of course it could have been programmed otherwise but I think this is how Gamefreak wants to do the stuff

So I'd assume flag 828 is set during the intro sequence (along with some other flags).
__________________
My Rom Hack




Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
  #7107    
Old July 20th, 2012 (12:42 PM).
Blue's Avatar
Blue Blue is offline
» Bully
Platinum Tier
 
Join Date: Jan 2008
Location:
Gender: Male
Nature: Relaxed
Posts: 10,664
Quote originally posted by miksy91:
Depends on what flag no. 828 stands for in the original rom file. For example, the flag of old man, in Viridian City who teaches you how to catch a pokemon, is originally set (1) when the "game starts" (or you'll arrive at your house and can move) and is cleared (0) at the event when Pokedex is gotten.
*Of course it could have been programmed otherwise but I think this is how Gamefreak wants to do the stuff

So I'd assume flag 828 is set during the intro sequence (along with some other flags).
Ah right, Okay well it's fine now, I've fixed it so thanks.
__________________
  #7108    
Old July 20th, 2012 (12:51 PM).
machomuu's Avatar
machomuu machomuu is online now
Grant me the power of revolution!
Gold Tier
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
Posts: 6,508
Quote originally posted by Suicune™:


Ah right, Okay well it's fine now, I've fixed it so thanks.
How did you end up fixing it?
__________________
  #7109    
Old July 20th, 2012 (01:08 PM).
Blue's Avatar
Blue Blue is offline
» Bully
Platinum Tier
 
Join Date: Jan 2008
Location:
Gender: Male
Nature: Relaxed
Posts: 10,664
Quote originally posted by machomuu:
How did you end up fixing it?
I just changed the flag number, I thought that script had a designated flag number which was 828 but apparently not seeing how I change it and it works fine now.
__________________
  #7110    
Old July 20th, 2012 (08:00 PM).
dcjboi's Avatar
dcjboi dcjboi is offline
With Quiet Courage
 
Join Date: Dec 2010
Location: In between Heaven and Earth
Nature: Timid
Posts: 415
Send a message via Skype™ to dcjboi
Is there any way to create a sort of series of a handful of battles that are leveled to your highest leveled pokemon in your party? kind of like the colesiuem battles on pkmn xd and pkmn collesium
__________________

  #7111    
Old July 22nd, 2012 (05:27 AM).
johnr754's Avatar
johnr754 johnr754 is offline
I am JOHN, heck yeah!
 
Join Date: Nov 2009
Location: California, USA! USA!
Gender: Male
Nature: Modest
Posts: 80
Will someone please answer my question:

Again, can anyone help me with this? Whenever I try to compile it, it says that I have to add define or parameter in line 8. Here is the script:

Spoiler:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x90 0x0
wildbattle 0x90 0x1E
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= ARTICUNO: Gaoooh!
It's for Pokémon Emerald Version.
__________________
---
  #7112    
Old July 22nd, 2012 (06:03 AM).
Satoshi Ookami's Avatar
Satoshi Ookami Satoshi Ookami is offline
Memento Mori
Gold Tier
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
Posts: 12,922
Haven't I already answered this?
You need to add more "0x0" buffers to wildbattle command.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #7113    
Old July 22nd, 2012 (06:16 AM). Edited July 22nd, 2012 by tajaros.
tajaros's Avatar
tajaros tajaros is offline
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Posts: 857
Send a message via Windows Live Messenger to tajaros
@johnr754

There's no such thing as hidesprite 0x800F!!

As far as I know a map can at least hold 255 persons....

hidesprite 0x(person event no) this is in hex....

And put the hidesprite in between, fadescreen 0x1 and fadescreen 0x0

So it will be like this:
fadescreen 0x1
hidesprite 0x(person event no.)
fadescreen 0x0

And be sure to input 200 to the person ID box...


__________________
  #7114    
Old July 22nd, 2012 (06:35 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Helfen, Wehren, Heilen
Crystal Tier
 
Join Date: Sep 2009
Location: Downia-upside
Age: 22
Gender: Male
Nature: Jolly
Posts: 1,322
Quote originally posted by johnr754:
Will someone please answer my question:

Again, can anyone help me with this? Whenever I try to compile it, it says that I have to add define or parameter in line 8. Here is the script:

Spoiler:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x90 0x0
wildbattle 0x90 0x1E
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= ARTICUNO: Gaoooh!
It's for Pokémon Emerald Version.
The command 'wildbattle' has six parameters which you need to fill out, otherwise XSE won't accept it. It is constructed like this:

wildbattle 0x[Pokemon Number] 0x[Pokemon Level] 0x[Item Held] 0x0 0x0 0x0

Fill out the rest of the necessary information and your script should compile easily.

Quote originally posted by tajaros:
@johnr754

There's no such thing as hidesprite 0x800F!!

As far as I know a map can at least hold 255 persons....

hidesprite 0x(person event no) this is in hex....

Nope, that part of the script is perfectly fine because 0x800F is the variable which holds the number of the event which you last talked to.
__________________
  #7115    
Old July 22nd, 2012 (06:45 AM). Edited July 22nd, 2012 by johnr754.
johnr754's Avatar
johnr754 johnr754 is offline
I am JOHN, heck yeah!
 
Join Date: Nov 2009
Location: California, USA! USA!
Gender: Male
Nature: Modest
Posts: 80
I tried it.

Instead of an Articuno battle, it shown the Pokenav thing, then went on to the Contest Results Screen (with invisible shiny bulbasaurs), then Pokenav pics in green showed up, then the game reset.
__________________
---
  #7116    
Old July 22nd, 2012 (08:52 AM).
Renegade's Avatar
Renegade Renegade is offline
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Posts: 998
Quote originally posted by johnr754:
I tried it.

Instead of an Articuno battle, it shown the Pokenav thing, then went on to the Contest Results Screen (with invisible shiny bulbasaurs), then Pokenav pics in green showed up, then the game reset.
What version of XSE do you have?
  #7117    
Old July 22nd, 2012 (09:27 AM).
johnr754's Avatar
johnr754 johnr754 is offline
I am JOHN, heck yeah!
 
Join Date: Nov 2009
Location: California, USA! USA!
Gender: Male
Nature: Modest
Posts: 80
Quote originally posted by CrystalStatic:
What version of XSE do you have?
I don't know. v1.1.1 or v1.0.0, because I could not find the latest XSE version.
__________________
---
  #7118    
Old July 22nd, 2012 (09:50 AM).
Renegade's Avatar
Renegade Renegade is offline
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Posts: 998
Quote originally posted by johnr754:
I don't know. v1.1.1 or v1.0.0, because I could not find the latest XSE version.
Go into XSE and click the tab "Help" then click on "About". At the bottom right of the box that will appear, there will be a version number. If it says v1.0.0, go to this thread:

http://www.pokecommunity.com/showthread.php?t=85025

Download the latest XSE v1.1.1 here.
  #7119    
Old July 22nd, 2012 (10:00 AM). Edited July 22nd, 2012 by johnr754.
johnr754's Avatar
johnr754 johnr754 is offline
I am JOHN, heck yeah!
 
Join Date: Nov 2009
Location: California, USA! USA!
Gender: Male
Nature: Modest
Posts: 80
Quote originally posted by CrystalStatic:
Go into XSE and click the tab "Help" then click on "About". At the bottom right of the box that will appear, there will be a version number. If it says v1.0.0, go to this thread:

http://www.pokecommunity.com/showthread.php?t=85025

Download the latest XSE v1.1.1 here.
I tried to download XSE v1.1.1, but it said "404 Not Found". I do not know what to do.

Edit: Never mind, I downloaded it and it worked. Thanks
__________________
---
  #7120    
Old July 22nd, 2012 (10:09 AM).
machomuu's Avatar
machomuu machomuu is online now
Grant me the power of revolution!
Gold Tier
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
Posts: 6,508
Quote originally posted by johnr754:
I tried to download XSE v1.1.1, but it said "404 Not Found". I do not know what to do.
There's a working link on Whack A Hack.
__________________
  #7121    
Old July 23rd, 2012 (10:11 AM).
raging-inferno-1986 raging-inferno-1986 is offline
 
Join Date: Jul 2012
Gender: Male
Posts: 21
Game: Fire Red Type: Deleting a specific script Editor: PKSV-UI

Hi, a newbie rom hacker here. I followed the tutorial for enabling the nationaldex straight away, but i couldn't find anything about which script controls the part of the game where Oak upgrades your Pokedex when you get 60 Pokemon.
I need to know because i want to delete it.

Script:
Spoiler:
#org 0x81699CE
'-----------------------------------
call 0x81A737B
closemsg
compare 0x8009 0x3C
if < jump 0x81699F9 ' Smaller Than
checkflag 0x89B
if false jump 0x81699F9 ' Flag is unset
pause 0x1E
msgbox 0x818EDF5 ' Ah, now this is exce...
callstd MSG_NOCLOSE ' Non-closing message
jump 0x8169035

#org 0x81699F9
'-----------------------------------
release
end

#org 0x8169035
'-----------------------------------
msgbox 0x818EE60 ' Recently, there have...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
compare PLAYERFACING UP
if == call 0x8169174 ' Equal To
compare PLAYERFACING DOWN
if == call 0x81691BB ' Equal To
compare PLAYERFACING RIGHT
if == call 0x8169194 ' Equal To
compare PLAYERFACING LEFT
if == call 0x8169194 ' Equal To
msgbox 0x818EF59 ' \v\h06: Hey, I heard...
callstd MSG_NOCLOSE ' Non-closing message
fadedefault
msgbox 0x818F004 ' OAK: I know, I know....
callstd MSG_NOCLOSE ' Non-closing message
compare PLAYERFACING UP
if == call 0x81691DB ' Equal To
compare PLAYERFACING LEFT
if == call 0x81691E6 ' Equal To
textcolor GRAY
msgbox 0x818F062 ' PROF. OAK took both ...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
call 0x81A6675
compare PLAYERFACING UP
if == call 0x81691F1 ' Equal To
compare PLAYERFACING DOWN
if == call 0x81691FC ' Equal To
compare PLAYERFACING RIGHT
if == call 0x8169215 ' Equal To
compare PLAYERFACING LEFT
if == call 0x8169227 ' Equal To
reappear 0x9
reappear 0xA
pause 0x1E
msgbox 0x818F085 ' [.] [.] [.] [.] [.]...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
disappear 0x9
disappear 0xA
pause 0x1E
compare PLAYERFACING UP
if == call 0x8169845 ' Equal To
compare PLAYERFACING DOWN
if == call 0x8169850 ' Equal To
compare PLAYERFACING RIGHT
if == call 0x816985B ' Equal To
compare PLAYERFACING LEFT
if == call 0x816986D ' Equal To
textcolor GRAY
fanfare 0x13E
message 0x818F0E8 ' \v\h01's POK\eDEX wa...
showmsg
waitfanfare
call 0x81A6675
special FR_NATIONAL_DEX
msgbox 0x818F103 ' Now, \v\h01 and \v\h...
callstd MSG_NOCLOSE ' Non-closing message
msgbox 0x818F1DB ' \v\h06: Gramps, calm...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
playsound 0x13C 0x0
compare PLAYERFACING UP
if == call 0x8169B69 ' Equal To
compare PLAYERFACING DOWN
if == call 0x8169B7B ' Equal To
compare PLAYERFACING RIGHT
if == call 0x8169B7B ' Equal To
compare PLAYERFACING LEFT
if == call 0x8169B7B ' Equal To
disappear 0x8
fadedefault
setvar 0x4055 0x8
releaseall
end



I figured out the above is part of the script, but is that all of it?
  #7122    
Old July 23rd, 2012 (03:22 PM).
machomuu's Avatar
machomuu machomuu is online now
Grant me the power of revolution!
Gold Tier
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
Posts: 6,508
compare 0x8009 0x3C
This is checking to see how many pokemon you currently have recorded. 3C is the number you need to for the script to continue, if you have less than that then you won't get your Pokedex updated. 3C is Hexidecimal for 60. I wouldn't delete that or the script probably won't work.
__________________
  #7123    
Old July 24th, 2012 (01:52 AM).
raging-inferno-1986 raging-inferno-1986 is offline
 
Join Date: Jul 2012
Gender: Male
Posts: 21
I see, so how would i disable this feature? Its pointless now that you can get the nationaldex straight away.
  #7124    
Old July 24th, 2012 (02:06 AM). Edited July 24th, 2012 by U.Flame.
U.Flame's Avatar
U.Flame U.Flame is offline
Brony Hacker
 
Join Date: Jun 2008
Location: Sapphire City in future Hoenn
Age: 19
Gender: Male
Nature: Jolly
Posts: 1,200
Is the Wally tutorial battle script easily isolated? I want to edit (mess around with) that battle. I just need the Wally battle script by itself so I can easily test it.

Is the Wally tutorial battle script easily isolated? I want to edit (mess around with) that battle. I just need to know the Wally battle script by itself so I can easily test it.
__________________
Hacks I'm currently working on:
Pokemon Sapphire Hoenn's Ruin - My own hack, actively making progress.
3rd Gen Multiplayer Project - Research and development, occasionally testing, sometimes with support.
Pokemon Ruby Destiny Broken Timeline - Mapping assigned maps, slow pace at the moment.
Pokemon Cursed/Creepy White - Group project, on hiatus for now with plans to return eventually.

Times I've been ninja'd: 18
Times I've ninja'd people: 3
  #7125    
Old July 24th, 2012 (05:03 AM).
ChuckNadum's Avatar
ChuckNadum ChuckNadum is offline
Rookie Producer
 
Join Date: Apr 2012
Gender: Male
Posts: 3
Game: Fire Red
Type: Person Event
Editor: XSE

Spoiler:
#dynamic 0x(I've tested with multiple offsets)

#org @start
lock
faceplayer
msgbox @1 0x6
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
setflag 0x828
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
release
end

#org @1
= (I'll keep this part secret.)


Can't get the message to deploy. All works but that.
Just gives the eevee (unlocks pokemon menu), and fades to black, and goes to normal with the guy gone.
Closed Thread
Quick Reply

Sponsored Links
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 01:19 PM.