The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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
Click here to go to the first staff post in this thread.  
Thread Tools
  #5476    
Old April 2nd, 2011 (11:16 PM).
CrazyShooter's Avatar
CrazyShooter
Beginning Trainer
 
Join Date: Apr 2011
Location: Tartarus; come visit me some time! :)
Gender: Male
Please reffer to my post on the previous page. (Post #5470)
My script finally DID compile, and I made a new script on which if you step it activates the first script (script A). Now it freezes when I step on the script tile ingame. Is there anything else wrong with the script (except the fact that I forgot to put a # infront of dynamic)?
  #5477    
Old April 2nd, 2011 (11:35 PM).
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
Quote:
Originally Posted by CrazyShooter View Post
Please reffer to my post on the previous page. (Post #5470)
My script finally DID compile, and I made a new script on which if you step it activates the first script (script A). Now it freezes when I step on the script tile ingame. Is there anything else wrong with the script (except the fact that I forgot to put a # infront of dynamic)?
You might've forgotten to put 0003 into Unknown bar and some number into var number.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #5478    
Old April 2nd, 2011 (11:36 PM).
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by CrazyShooter View Post
Please reffer to my post on the previous page. (Post #5470)
My script finally DID compile, and I made a new script on which if you step it activates the first script (script A). Now it freezes when I step on the script tile ingame. Is there anything else wrong with the script (except the fact that I forgot to put a # infront of dynamic)?
Try and check your variables of your script tile on Advance Map.

If you're hacking FireRed, try putting 0003 on Unknown and 4050 on Var number.
__________________
  #5479    
Old April 5th, 2011 (06:59 PM).
Pichuxhack's Avatar
Pichuxhack
Pichu Trainer
 
Join Date: Jun 2010
Gender: Male
Nature: Brave
I'm trying to make a script so that you can catch your starter like how you catch pokemon in the safari zone but after you play one game the zone locks up
  #5480    
Old April 6th, 2011 (07:19 AM). Edited April 6th, 2011 by deoxys121.
deoxys121's Avatar
deoxys121
White Kyurem Cometh
 
Join Date: Dec 2010
Location: Flat Rock, MI, United States
Age: 23
Gender: Male
Nature: Calm
Send a message via Yahoo to deoxys121
I'm trying to create a script in Pokemon Ruby for which you battle a Level 50 Reshiram (I have replaced Kyogre with Reshiram in my hack, so it would use Kyogre's Poke ID). I used Poketronic to create the script, and chose 8900 for the invisibility flag and 8901 for the done flag. I inserted it at 6B8E74, and set this script to a person event in AdvanceMap 1.90. I set 8901 as the person ID, reflective of the done flag. With all of this set up, everything works just fine except that the sprite does not disappear after the battle, and you can keep battling and catching it over and over. I want to remove this. I opened the script using PKSV, and this is what the output was.

Code:
#org 0x86B8E74
'-----------------------------------
lock
faceplayer
battle KYOGRE 50 PINKSCARF
cry 0xA1 0x194
end
I just need to know what I have to do in order to make the sprite disappear permanently after catching or defeating it as would happen with any other legendary battle.

I also would like to know how I would create a script to recreate the circumstances for battling Landorus that exist in Black and White. That being you can only battle Landorus if you interact with a certain object while you have Tornadus and Thundurus in your party. In my hack, I have replaced Regirock with Tornadus, Regice with Thundurus, and Registeel with Landorus.
__________________
  #5481    
Old April 6th, 2011 (10:44 AM).
yurifoborghi's Avatar
yurifoborghi
Beginning Trainer
 
Join Date: Mar 2011
Gender: Male
Well, I'm creating a Hack Rom with a friend, but we are beginners. The script I'm trying to create is a wild Scyther that after the battle, became a statue. I tried to do so:
(NOTE: Using the system XSE)

Quote:
#org 0x800000
lock
faceplayer
checkflag 0x200
if 0x1 goto 0x8800010
startwildbattle 0x07B 0x14 0x0
checksound
cry 0x07B 0x2
pause 0x28
waitcry
setflag 0x200
setflag 0x861
special 0x138
waitstate
clearflag 0x861
release
end
#org 0x800010
msgbox 0x880001A
callstd 0x6
release
end
#org 0x80001A
= A scary demon pokémon...
What did I do wrong?
__________________
Yuri Fernandes
Mr. Zangoose
  #5482    
Old April 6th, 2011 (10:47 AM).
SuperMeip's Avatar
SuperMeip
Beginning Trainer
 
Join Date: Mar 2011
Gender: Male
i am trying to make it so to fight the gym leader you have to activate three computers in the correct order, but it dosent seem to be working,
Computer 1:
Code:
#org 0x8741CE8
'-----------------------------------
lock
faceplayer
compare 0x210 0x3
if == jump 0x8741D0F ' Equal To
compare 0x210 0x4
if == jump 0x8741D0F ' Equal To
setvar 0x210 0x2
msgbox 0x8741D69 ' You press the power ...
callstd MSG_SIGN ' Signpost-style message
release
end

#org 0x8741D0F
'-----------------------------------
setvar 0x210 0x1
msgbox 0x8741D1C ' Suddenly the other t...
release
end


#org 0x8741D69
= You press the power button and the terminal shuts off.

#org 0x8741D1C
= Suddenly the other terminals turned back on\n This must be the wrong computer
Computer 2:
Code:
#org 0x8741DA0
'-----------------------------------
lock
faceplayer
compare 0x210 0x1
if == jump 0x8741DC7 ' Equal To
compare 0x210 0x4
if == jump 0x8741DC7 ' Equal To
setvar 0x210 0x3
msgbox 0x8741E21 ' You press the power ...
callstd MSG_SIGN ' Signpost-style message
release
end

#org 0x8741DC7
'-----------------------------------
setvar 0x210 0x1
msgbox 0x8741DD4 ' Suddenly the other t...
release
end


#org 0x8741E21
= You press the power button and the terminal shuts off.

#org 0x8741DD4
= Suddenly the other terminals turned back on\n This must be the wrong computer
Computer 3:
Code:
#org 0x8741E58
'-----------------------------------
lock
faceplayer
compare 0x210 0x1
if == jump 0x8741E7F ' Equal To
compare 0x210 0x2
if == jump 0x8741E7F ' Equal To
setvar 0x210 0x4
msgbox 0x8741ED9 ' You press the power ...
callstd MSG_SIGN ' Signpost-style message
release
end

#org 0x8741E7F
'-----------------------------------
setvar 0x210 0x1
msgbox 0x8741E8C ' Suddenly the other t...
release
end


#org 0x8741ED9
= You press the power button and the terminal shuts off.

#org 0x8741E8C
= Suddenly the other terminals turned back on\n This must be the wrong computer
does anyone see whats wrong, i use pksv and pkmn ruby.
the gym leader will only fight you if the var 0x210 is set to 0x4.
  #5483    
Old April 6th, 2011 (01:20 PM).
CrazyShooter's Avatar
CrazyShooter
Beginning Trainer
 
Join Date: Apr 2011
Location: Tartarus; come visit me some time! :)
Gender: Male
Quote:
Originally Posted by yurifoborghi View Post
Well, I'm creating a Hack Rom with a friend, but we are beginners. The script I'm trying to create is a wild Scyther that after the battle, became a statue. I tried to do so:
(NOTE: Using the system XSE)

What did I do wrong?
What ROM are you using? (Message too short)
  #5484    
Old April 6th, 2011 (02:14 PM).
yurifoborghi's Avatar
yurifoborghi
Beginning Trainer
 
Join Date: Mar 2011
Gender: Male
Quote:
Originally Posted by CrazyShooter View Post
What ROM are you using? (Message too short)
I'm using the Pokémon Ruby Version.
__________________
Yuri Fernandes
Mr. Zangoose
  #5485    
Old April 8th, 2011 (03:05 AM).
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by yurifoborghi View Post
I'm using the Pokémon Ruby Version.
Could you specify what problems are you encountering with your script?
__________________
  #5486    
Old April 8th, 2011 (03:11 AM).
CrazyShooter's Avatar
CrazyShooter
Beginning Trainer
 
Join Date: Apr 2011
Location: Tartarus; come visit me some time! :)
Gender: Male
You didn't use #org @start? or is that unnecessary in pokemon ruby scripts? I don't really know how to script in ruby, only fire red, sorry...
  #5487    
Old April 8th, 2011 (03:24 AM).
Complans's Avatar
Complans
Trainer
 
Join Date: Mar 2010
Location: United Kingdom
Age: 20
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by yurifoborghi View Post
Well, I'm creating a Hack Rom with a friend, but we are beginners. The script I'm trying to create is a wild Scyther that after the battle, became a statue. I tried to do so:
(NOTE: Using the system XSE)


What did I do wrong?
At the start you put "#org 0x800000". It is meant to be #dynamic 0x(offset) and then followed by a line which starts the script eg. #org @start
  #5488    
Old April 8th, 2011 (08:52 AM).
yurifoborghi's Avatar
yurifoborghi
Beginning Trainer
 
Join Date: Mar 2011
Gender: Male
Thanks to everyone who tried to help. Complans, you solved my problem! Thank you very much.
__________________
Yuri Fernandes
Mr. Zangoose
  #5489    
Old April 8th, 2011 (07:31 PM).
deoxys121's Avatar
deoxys121
White Kyurem Cometh
 
Join Date: Dec 2010
Location: Flat Rock, MI, United States
Age: 23
Gender: Male
Nature: Calm
Send a message via Yahoo to deoxys121
I posted this about a week ago, but didn't get a response. So, I'm trying again.

I'd like to know if there is a way to change which Pokemon you encounter in Pokemon Ruby after you choose your starter. I would like to make this change to a specific Pokemon for an important plot point. I am able to open the scripts that appear on the Route 101 Map using AdvanceMap 1.90 and PKSV. This is the script from the Bag which contains the Pokeballs, but I'm not sure if this is where I start. Any help would be appreciated. I have little experience with scripting, but would like to learn more.


Code:
#org 0x814EA7F
'-----------------------------------
lock
faceplayer
setflag RS_POKEMON
setflag 0x52
fadescreen FADEOUT_BLACK
disappear 0x4
movesprite 0xFF 0x6 0xD
applymovement PLAYER 0x81A083F ' raw_27 end
pauseevent 0x0
special CHOOSE_POKEMON
waitspecial
applymovement 0x2 0x814EAD7 ' walk_right_slow end
pauseevent 0x0
msgbox 0x816D191 ' PROF. BIRCH: Whew......
callstd MSG_NOCLOSE ' Non-closing message
special HEAL_POKEMON
setflag 0x2D0
clearflag 0x2D1
setflag 0x2BC
setvar 0x4084 0x2
setvar 0x4060 0x3
clearflag 0x4000
warp 0x1 0x4 0xFF 0x6 0x5
waitspecial
release
end


#org 0x816D191
= PROF. BIRCH: Whew...\pI was in the tall grass studying wild\nPOK\eMON when I was jumped.\pYou saved me.\nThanks a lot!\pOh?\pHi, you're \v\h01\v\h05!\pThis is not the place to chat, so come\nby my POK\eMON LAB later, okay?

#org 0x81A083F
M raw_27 end

#org 0x814EAD7
M walk_right_slow end
__________________
  #5490    
Old April 9th, 2011 (04:46 AM).
Complans's Avatar
Complans
Trainer
 
Join Date: Mar 2010
Location: United Kingdom
Age: 20
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by deoxys121 View Post
I posted this about a week ago, but didn't get a response. So, I'm trying again.

I'd like to know if there is a way to change which Pokemon you encounter in Pokemon Ruby after you choose your starter. I would like to make this change to a specific Pokemon for an important plot point. I am able to open the scripts that appear on the Route 101 Map using AdvanceMap 1.90 and PKSV. This is the script from the Bag which contains the Pokeballs, but I'm not sure if this is where I start. Any help would be appreciated. I have little experience with scripting, but would like to learn more.


Code:
#org 0x814EA7F
'-----------------------------------
lock
faceplayer
setflag RS_POKEMON
setflag 0x52
fadescreen FADEOUT_BLACK
disappear 0x4
movesprite 0xFF 0x6 0xD
applymovement PLAYER 0x81A083F ' raw_27 end
pauseevent 0x0
special CHOOSE_POKEMON
waitspecial
applymovement 0x2 0x814EAD7 ' walk_right_slow end
pauseevent 0x0
msgbox 0x816D191 ' PROF. BIRCH: Whew......
callstd MSG_NOCLOSE ' Non-closing message
special HEAL_POKEMON
setflag 0x2D0
clearflag 0x2D1
setflag 0x2BC
setvar 0x4084 0x2
setvar 0x4060 0x3
clearflag 0x4000
warp 0x1 0x4 0xFF 0x6 0x5
waitspecial
release
end


#org 0x816D191
= PROF. BIRCH: Whew...\pI was in the tall grass studying wild\nPOK\eMON when I was jumped.\pYou saved me.\nThanks a lot!\pOh?\pHi, you're \v\h01\v\h05!\pThis is not the place to chat, so come\nby my POK\eMON LAB later, okay?

#org 0x81A083F
M raw_27 end

#org 0x814EAD7
M walk_right_slow end
I don't think it's a good idea to edit important script from the game, you will be better of re-writing it so you have more freedom.
  #5491    
Old April 9th, 2011 (04:53 AM).
Shadow7he4lien
Beginning Trainer
 
Join Date: Apr 2011
Gender: Male
ok on my script i got the guys to say what i want him to say, and he gives me the pokemon i want him to give, but, when i use "hidesprite <person id>" nothing happens, the screen fades and then, nothing it just shows him STILL standing there, please help me...

Extra notes: here is my exact part of the script im having trouble near

fade 0x0
hidesprite 17
release
end

tell me if im doing something wrong...
by the way, the person id is 0023 and in hex form is 17...
  #5492    
Old April 9th, 2011 (05:00 AM).
Complans's Avatar
Complans
Trainer
 
Join Date: Mar 2010
Location: United Kingdom
Age: 20
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Shadow7he4lien View Post
ok on my script i got the guys to say what i want him to say, and he gives me the pokemon i want him to give, but, when i use "hidesprite <person id>" nothing happens, the screen fades and then, nothing it just shows him STILL standing there, please help me...

Extra notes: here is my exact part of the script im having trouble near

fade 0x0
hidesprite 17
release
end

tell me if im doing something wrong...
by the way, the person id is 0023 and in hex form is 17...
You will have to set your Person ID something higher than 1000.

Try this:

fadescreen 0x1
fadescreen 0x0
hidesprite 0x[person id]
setflag 0x[person id]
release
end
  #5493    
Old April 9th, 2011 (05:05 AM).
Shadow7he4lien
Beginning Trainer
 
Join Date: Apr 2011
Gender: Male
i tryed that, and i cant tell if the guy disappeared cause my screen stays black after talking to him now...
  #5494    
Old April 9th, 2011 (05:08 AM). Edited April 9th, 2011 by Complans.
Complans's Avatar
Complans
Trainer
 
Join Date: Mar 2010
Location: United Kingdom
Age: 20
Gender: Male
Nature: Relaxed
You probably have three fadescreens. 0x1 makes the screen go to black, and 0x0 makes it return to normal. So, you probably have an 0x1 after an 0x0.

fadescreen 0x1
fadescreen 0x0
  #5495    
Old April 9th, 2011 (05:13 AM).
Shadow7he4lien
Beginning Trainer
 
Join Date: Apr 2011
Gender: Male
Quote:
Originally Posted by Complans View Post
You probably have three fadescreens. 0x1 makes the screen go to black, and 0x0 makes it return to normal. So, you probably have an 0x1 after an 0x0.

fadescreen 0x1
fadescreen 0x0
no man, i only have one, see heres my script

'---------------
#org 0x71A388
lock
faceplayer
msgbox 0x871A3A4 MSG_NORMAL '"Hey, you got some crack man?\nJu-j..."
givepokemon 0x97 0x1E 0x1 0x0 0x0 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x01896
setflag 0x01896
release
end

then thats it...
also i dont know if im supposed to HEX the person ids...
  #5496    
Old April 9th, 2011 (05:19 AM).
Complans's Avatar
Complans
Trainer
 
Join Date: Mar 2010
Location: United Kingdom
Age: 20
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Shadow7he4lien View Post
no man, i only have one, see heres my script

'---------------
#org 0x71A388
lock
faceplayer
msgbox 0x871A3A4 MSG_NORMAL '"Hey, you got some crack man?\nJu-j..."
givepokemon 0x97 0x1E 0x1 0x0 0x0 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x01896
setflag 0x01896
release
end

then thats it...
also i dont know if im supposed to HEX the person ids...
Yes, you do. Hidesprite is the overworld number, and also setflag has 5 numbers.
  #5497    
Old April 9th, 2011 (05:20 AM).
Shadow7he4lien
Beginning Trainer
 
Join Date: Apr 2011
Gender: Male
Quote:
Originally Posted by Complans View Post
Yes, you do. Hidesprite is the overworld number, and also setflag has 5 numbers.
im sorry, but im confused, so what do i need to change?
  #5498    
Old April 9th, 2011 (05:22 AM).
metapod23's Avatar
metapod23
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Quote:
Originally Posted by Shadow7he4lien View Post
no man, i only have one, see heres my script

'---------------
#org 0x71A388
lock
faceplayer
msgbox 0x871A3A4 MSG_NORMAL '"Hey, you got some crack man?\nJu-j..."
givepokemon 0x97 0x1E 0x1 0x0 0x0 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x01896
setflag 0x01896
release
end

then thats it...
also i dont know if im supposed to HEX the person ids...
You don't use the person ID # for the sprite. Use the Person event # for the hidesprite command (make sure to convert hex if needed - i.e. 0x10 = 0xa ... 0x15 = 0xf).
__________________
  #5499    
Old April 9th, 2011 (05:35 AM). Edited April 9th, 2011 by Shadow7he4lien.
Shadow7he4lien
Beginning Trainer
 
Join Date: Apr 2011
Gender: Male
Quote:
Originally Posted by metapod23 View Post
You don't use the person ID # for the sprite. Use the Person event # for the hidesprite command (make sure to convert hex if needed - i.e. 0x10 = 0xa ... 0x15 = 0xf).
ok so i did that and he still doesnt disappear... is anyone planning on helping me...
cause now i decided to make a new script and it keeps saying, error on line 7 correct line is 6
heres my script

'---------------
#dynamic 0x71A388
#org @start
lock
faceplayer
givepokemon 0x96 0x1E 0x0 0x0 0x0
hidesprite 0xA
setflag 0xA
release
end
msgbox @1 0x6 boxset 0x6
#org @1
= Hi.
  #5500    
Old April 9th, 2011 (11:57 AM).
metapod23's Avatar
metapod23
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Quote:
Originally Posted by Shadow7he4lien View Post
ok so i did that and he still doesnt disappear... is anyone planning on helping me...
cause now i decided to make a new script and it keeps saying, error on line 7 correct line is 6
heres my script

'---------------
#dynamic 0x71A388
#org @start
lock
faceplayer
givepokemon 0x96 0x1E 0x0 0x0 0x0
hidesprite 0xA
setflag 0xA
release
end
msgbox @1 0x6 boxset 0x6
#org @1
= Hi.
The setflag is the person ID, the hidesprite is the person event # - they're different. The flag should be an unused flag in the game.

You might have too many parameters for the givepokemon command - I'm not sure, I can't remember how many you're supposed to have.
__________________
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 08:23 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.