øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=961.0;prev_next=preve:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexcc90.htmldelayedslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=961.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexcc90.html.zx˜xg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿȰ,0[OKtext/htmlISO-8859-1gzip@øÕ[ÿÿÿÿÿÿÿÿÑHTue, 10 Mar 2020 11:39:28 GMT0ó°° ®0®P®€§²ð®˜xg^ô[ Inn GP cost in events

Author Topic: Inn GP cost in events  (Read 1507 times)

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Inn GP cost in events
« on: September 30, 2009, 07:53:39 AM »
I was editing an inn price for my hack this evening, and I noticed that my changes definitely did not fit the formula suggested by Yousei's FF4 data for event code DCxx (Inn: costing 50 * 2^xx). I started getting some wacky numbers after a value of 08, so I jotted them down, converted them to hex, reversed the bytes, and did a search for that data. It turns out that there's actually a GP cost table located from 06C83-06C94 (in a FF2us headered ROM). There's only 9 entries; after that is ASM code, which is why the values are so weird. Here's an example of the first 16:

Code: [Select]
## GP Value
-- --------
00 50
01 100
02 200
03 400
04 500
05 600
06 700
07 300
08 1200
09 12453
0A 63629
0B 42248
0C 36145
0D 2297
0E 12965
0F 64141

I have a list of all possible values for xx, if anyone wants it. 9 entries is actually fine, but in case someone wants to go crazy with Inns...

 :sleep:

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Inn GP cost in events
« Reply #1 on: September 30, 2009, 08:13:26 AM »
Interesting. I suppose the table of valid entries could be moved and expanded, but utilizing non-related code for an inn price has a certain awesome factor to it...