The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other My Method on how to implement Dive in FireRed Version: Does my script is wrong?

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
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old October 15th, 2014 (6:02 PM).
Lance32497's Avatar
Lance32497 Lance32497 is offline
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
Posts: 792
Good Day PC, I just want to ask how to implement DIVE in FireRed?

I tried this method:
Create A tilesets and Maps that had UNDERWATER data...
Then I created a script:

This is EMERGE and DIVE SCRIPT script:
Quote:
'---------------
#org 0x8028B8
lockall
checkflag 0x800
if 0x0 goto 0x88028CA
call 0x8802866
releaseall
end

'---------------
#org 0x8028CA
checkattack 0x123
compare LASTRESULT 0x6
if 0x1 goto 0x8802866
bufferpartypokemon 0x0 LASTRESULT
setanimation 0x0 LASTRESULT
setanimation 0x1 0x1
msgbox 0x880290F MSG_YESNO '"Light is filtering down from above..."
compare LASTRESULT 0x0
if 0x1 goto 0x880290C
msgbox 0x8802951 MSG_KEEPOPEN '"[buffer1] used DIVE"
doanimation 0x2C
warp 0x43 0x0 0x1 0x0 0x0
end

'---------------
#org 0x802866
lockall
msgbox 0x8802872 MSG_NORMAL '"Light is filtering down from above..."
releaseall
end

'---------------
#org 0x80290C
releaseall
end


'---------
' Strings
'---------
#org 0x80290F
= Light is filtering down from above.\nWould you like to use DIVE?

#org 0x802951
= [buffer1] used DIVE

#org 0x802872
= Light is filtering down from above.\nA POKéMON may be able to surface.
I think there is something in WARP COMMAND....

Yeah it works (Y) I can use dive, but when I warped in a blackscreen map, I also used other map that is not expanded.

THANKS
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 15th, 2014 (6:03 PM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
Fluorite's back, brah
 
Join Date: Jun 2013
Age: 23
Gender: Male
Nature: Hasty
Posts: 1,067
Quote:
Originally Posted by Lance32497 View Post
Good Day PC, I just want to ask how to implement DIVE in FireRed?

I tried this method:
Create A tilesets and Maps that had UNDERWATER data...
Then I created a script:

This is EMERGE and DIVE SCRIPT script:


I think there is something in WARP COMMAND....

Yeah it works (Y) I can use dive, but when I warped in a blackscreen map, I also used other map that is not expanded.

THANKS
You have a bank 0x43?
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 15th, 2014 (7:12 PM).
Lance32497's Avatar
Lance32497 Lance32497 is offline
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
Posts: 792
Quote:
Originally Posted by Dark Sneasel View Post
You have a bank 0x43?
Yah, I add new map in FireRed and that is in BANK number 43...

I also observed that when I replace 0x43 0x2 0x0 0x0 0x0 into 0x3 0x0 0x0 0x0 0x0

Same thing happened so there is a problem in my script and i think that is in warp command portion
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old October 15th, 2014 (10:25 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
Quote:
Originally Posted by Lance32497 View Post
Yah, I add new map in FireRed and that is in BANK number 43...

I also observed that when I replace 0x43 0x2 0x0 0x0 0x0 into 0x3 0x0 0x0 0x0 0x0

Same thing happened so there is a problem in my script and i think that is in warp command portion
try adding the code...
Code:
...
waitstate
...
...after your warp code.
__________________

Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old October 15th, 2014 (10:35 PM).
Lance32497's Avatar
Lance32497 Lance32497 is offline
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
Posts: 792
Quote:
Originally Posted by destinedjagold View Post
try adding the code...
Code:
...
waitstate
...
...after your warp code.
thanks for the "waitstate"

I also forgot! Banks should be in Hex, thats why I warped to mess room, thanks pal, You could be a good friend of mine when it comes in scripting
Reply With Quote
Reply

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 2:29 AM.