The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Berry System in Fire Red

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 February 14th, 2017 (10:03 AM).
eMMe97 eMMe97 is offline
 
Join Date: Jan 2015
Posts: 51
I have a problem with this post https://www.pokecommunity.com/showpost.php?p=8515307&postcount=64

I convert the script in XSE but it doesn't work in game :S (and the original script too...)
This is the script decompilated (I insert the routines' pointer+1 in my script, here not)

Code:
#dynamic 0x900000
#org @start
lock
copyvar 0x8002 0x800D
callasm 0xOffset +1'set tree data
callasm 0xOffset + 1 'get tree data
compare 0x8005 0x0
if 0x1 goto @nonePlanted
compare 0x8005 0x1
if 0x1 goto @fresh
compare 0x8005 0x2
if 0x1 goto @sprouted
compare 0x8005 0x3
if 0x1 goto @growing
compare 0x8005 0x4
if 0x1 goto @blooming
callasm 0xOffset +1 'get yeild
buffernumber 0x0 0x800D
buffernumber 0x1 0x8009
additem 0x8009 0x800D
msgbox @recieved 0x2
setvar 0x8005 0x0
setvar 0x8006 0x0
setvar 0x8007 0x0
setvar 0x8008 0x0
setvar 0x8009 0x0
callasm 0xOffset +1 'set tree data
msgbox @returned 0x2
release
end

#org @nonePlanted
msgbox @none 0x5
compare LASTRESULT 0x0
if 0x1 goto @end
fadescreen 0x1
setvar 0x8000 0x7E
setvar 0x800E 0x0
callasm 0x0A1881
waitmsg
setvar 0x8000 0x0
compare 0x800E 0x0
if 0x1 goto @end
copyvar 0x8009 0x800E
bufferitem 0x0 0x8009
msgbox @addedBerry 0x2
setvar 0x8005 0x1
setvar 0x8007 0x0
setvar 0x8008 0x0
callasm 0xOffset +1' set time
callasm 0xOffset +1' set tree data
removeitem 0x8009 0x1
release
end

#org @fresh
bufferitem 0x0 0x8009
msgbox @newplant 0x2
compare 0x8007 0x0
if 0x0 goto @water
msgbox @wateredAlready 0x2
release
end

#org @sprouted
bufferitem 0x0 0x8009
msgbox @sprouting 0x2
compare 0x8007 0x0
if 0x0 goto @water
msgbox @wateredAlready 0x2
release
end

#org @growing
bufferitem 0x0 0x8009
msgbox @tall 0x2
compare 0x8007 0x0
if 0x0 goto @water
msgbox @wateredAlready 0x2
release
end


#org @blooming
bufferitem 0x0 0x8009
msgbox @bloom 0x2
compare 0x8007 0x0
if 0x0 goto @water
msgbox @wateredAlready 0x2
release
end

#org @water
checkitem 0x1 0x1 'checks you have one masterball. Change 0x1 to your watering item
compare LASTRESULT 0x1
if 0x0 goto @end
msgbox @wantWater 0x5
compare LASTRESULT 0x0
if 0x1 goto @end
msgbox @finishedWatering 0x2
addvar 0x8007 0x1
addvar 0x8008 0x1
copyvar 0x800D 0x8005
callasm 0x800001 'set tree data
release
end

#org @end
release
end

#org @addedBerry
= Hai piantato una \v\h02 qui.

#org @returned
= Il terreno è tornato al suo\nstato originario.

#org @newplant
= Qui è coltivata una [buffer1].

#org @none
= Il terreno sembra fertile.\nVuoi piantare una bacca?

#org @bloom
= Hai piantato una [buffer1].

#org @tall
= La [buffer1] sta\ncrescendo forte e rigogliosa.

#org @sprouting
= La [buffer1] è in fioritura!

#org @wantWater
= Il terreno ha bisogno di acqua[.]\nVuoi annaffiarlo?

#org @wateredAlready
= Il terreno è già umido.\nMeglio non esagerare con l'acqua!

#org @recieved
= \v\h01 raccoglie \v\h02 \v\h03!

#org @finishedWatering
= Il terreno adesso è umido.\nLa bacca sembra beneficiarne!
When I use ingame the script freez all...
The ShinyQuagsire's berry bag hack works perfectly and I install the JPAN's save block hack.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 14th, 2017 (10:32 AM).
DizzyEgg's Avatar
DizzyEgg DizzyEgg is offline
 
Join Date: Feb 2014
Location: Poland
Age: 25
Gender: Male
Nature: Quiet
Posts: 794
It doesn't work because it doesn't work. As in it has bugs and won't ever work unless you fix it or ask FBI to fix it. :P
__________________
Support Pokeemerald!

Pokeemerald starter pack:
Emerald Expansion
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old February 15th, 2017 (2:30 AM).
eMMe97 eMMe97 is offline
 
Join Date: Jan 2015
Posts: 51
Ah...ok...good news :S
Thanks for reply :)
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 9:17 AM.