ladyabaxa: (velonese)

I sat down for awhile and poked around in the game's RAM while in the town of Castin. Here's what I learned. If I return to mess with the town some more I will edit this post with updates.

UPDATE: I did some simple work with a savestate in the town of Arien. The results have been appended.


>> TESTED IN CASTIN

none of these changed what commands did but only what the option was named

0xd8dcc - 03 by default, sets the number of commands to appear in the weapon shop

0xd8dcd - 00 by default, sets BUY option in the weapon shop

0xd8dce - 01 by default, sets SELL option in the weapon shop

0xdedcf - 02 by default, sets TALK option in the weapon shop

0xd8dd0 - 01 by default, sets the number of commands to appear in the town square
          and the mayor's house, if 0 the game defaults to 1 BUY option

0xdedd1 - 02 by default, first command to appear in the town square and the
          mayor's house, by default this is TALK

0xd8dd2 - 02 07 02 00 06 02 00 01 05 by default, ??

0xdeddc - 02 by default, sets number of commands to appear in the tavern

0xdeddd - 04 by default, sets the DRINK command in the tavern

0xdedde - 02 by default, sets the TALK command in the tavern

0xd8de0 - 02 by default, sets the number of commands to appear in the inn

0xd8de1 - 03 by default, sets the REST command in the inn

0xd8de2 - 02 by default, sets the TALK command in the inn

0xd8deb - 10 by default 
          pointer telling the game where to find the text string for command $01
          changing transforms every BUY in town to something else

0xd8ded - 18 by default 
          pointer telling the game where to find the text string for command $03
          changing transforms every SELL in town to something else

0xd8def - 22 by default 
          pointer telling the game where to find the text string for command $02
          changing transforms every TALK in town to something else

0xd8df1 - 2c by default 
          pointer telling the game where to find the text string for command $04
          changing transforms every REST in town to something else
          (note: only changes top menu rest as the submenu calls a different string)

0xd8df3 - 36 by default 
          pointer telling the game where to find the text string for command $05
          changing transforms every DRINK in town to something else

0xd8df5 - 42 by default 
          pointer telling the game where to find the text string for command $06
          changing transforms every DIVINE in town to something else
          (note: Castin doesn't have a fortune teller so I used the town square)

0xd8df7 - 50 by default 
          pointer telling the game where to find the text string for command $07
          changing transforms every PRAY in town to something else

0xd8df9 - 5a by default 
          pointer telling the game where to find the text string for command $08
          changing transforms every TEMPR in town to something else

0xd8e51 - 16 by default
          pointer for telling the game where to find the first text string in
          the town places list

0xd8e53 - 26 by default
          tells the game where to find the 2nd location name

0xd8e55 - 34 by default
          tells the game where to find the 4th location name

0xd8e57 - 46 by default
          ??, perhaps a location slot not active in Castin?
          going by the name table below this would be the pawn shop, not present in Castin

0xd8e59 - 58 by default
          also does nothing, would point to the alchemist if Castin had an alchemist

0xd8e5b - 6a by default
          location of the 3rd location name, in this case the inn

0xd8e5d - 72 by default
          location of the 5th location name, in this case the mayor


0xd92f9 - 04 by default
          tells the game where to find the REST subcommand for the inn

0xd92fb - 0e by default
          tells the game where to find the CAMP subcommand for the inn

0xd9293 - 0e by default
          points the game to the YES used inside shops

0xd9295 - 16 by default
          points the game to the NO used inside shops

0xd9297 - 0xd929d - tells the game where to find the HASSY'S WIN, EVENT FLAG,
          and ITEM strings

0xd929f - 52 by default
          tells the game where the find the string INVENTORY for the player
          item window, if 00 it defaults to address 0xd9293 and loads that

0xda08f - 0xda0a7 - table laying out for the game how to locate name strings for
          drinks in the tavern




ARIEN (elf town in the Silka forest)

0xd28f0 - beginning of town data under sector header WPRGTOWN___

label tables are at same offsets as CASTIN

0xb22fa - 0xb22ff - weapon shop
          6 bytes, first byte is # of shop entries, rest are equipment

0xb2301 - 0xb2303 - pawn shop
          4 bytes, first byte is # of shop entries, rest are equipment

0xb2304 - 0xb2308 - tavern
          5 bytes, first byte is # of drinks to list, rest are the drinks themselves
          00 = ale
          01 = wine
          02 = whisky
          03 = brandy
          04 = rse wine (300g)
          05 = wht wine (75g)
          06 = red wine (105g)
          07 = kfu wine (270g)
          08 = unr sake (450g)
          09 = rot gut (300g)
          0a = sake (24g)
          0b = exp sake (168g)

◾ Tags: