Jump to content

Set Gold (FE7)


Brendor
 Share

Recommended Posts

I did this one for Arch but it's very flexible, easy to change, very small(0xF bytes long) and I think more folks than just him can make use of it.

01 49 02 48 08 60 70 47 00 BC 02 02 04 03 02 01

To figure out what value to set, take the decimal number you want, convert it to hex and then reverse it(0x12345678 become 0x78563412) The 01,02,03 and 04 at the end correspond to the 1st, 2nd, 3rd and 4th bytes of the value to set. The gold value is a word, meaning it's 32 bits or 4 bytes long so when you convert the number to hex you need to put 0's at the beginning to make it 8 digits long.

Have an example: Say I want to make the current gold 20,000; 20000=0x4E20 which then becomes 0x00004E20 to make it 8 digits, then reverse to get 20 4E 00 00. So you make the last four bytes in the routine 20 4E 00 making it:

01 49 02 48 08 60 70 47 00 BC 02 02 20 4E 00 00

To call the routine, paste it somewhere in your ROM at a word aligned offset and call it in your events with ASMC Offset + 1

Enjoy guys

Edited by Brendor
Link to comment
Share on other sites

For FE8, your money is stored at 0x0202BCF8, so the routine would go like so:

01 49 02 48 08 60 70 47 F8 BC 02 02 04 03 02 01

(Hope you don't mind Brendor, just wanted to include this for completeness's sake.)

Link to comment
Share on other sites

you trying to upstage me in my own topic bitch?

jk I don't mind; you actually saved me the trouble of finding the address in FE8 so thanks :P:

Edited by Brendor
Link to comment
Share on other sites

I started some header files for 7 if you guys want to contribute to the old old old suggestion of mine to produce an actual code library for FE hacking.

http://dl.dropboxusercontent.com/u/336940/Software/Hextator's%20Doc/Media/Games/Hacks/Console/NGBA/Fire%20Emblem/7%20-%20Blazing%20Sword/MagRes/folDIR.html

Why look up addresses of stuff on the internet/ask people for info when you could just read some source code? That we for some reason haven't written yet?

Edited by Aleph
Link to comment
Share on other sites

If only ______ spread out so widely in every direction:

- your mom's legs weren't

- that exploded baby wasn't

- the cows caught in that tornado weren't

- and more

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...