Difference between revisions of "Dragon Warrior:RAM map"

From Data Crystal
Jump to: navigation, search
(Adding values)
Line 4: Line 4:
 
{| border="1" cellpadding="1"  
 
{| border="1" cellpadding="1"  
 
|'''RAM'''  || '''Function''' || '''Details'''
 
|'''RAM'''  || '''Function''' || '''Details'''
 +
|-
 +
| 0x003A || Player X Position || X position on current map. Map not redrawn on direct change.
 +
|-
 +
| 0x003B || Player Y Position || Y position on current map.
 
|-
 
|-
 
| 0x0047 || Button(s) pressed || Uses binary processing. Here are the values:
 
| 0x0047 || Button(s) pressed || Uses binary processing. Here are the values:
Line 21: Line 25:
  
 
|-
 
|-
| 0x0090 || Player X Position ||
+
| 0x0090-91 || Player X Position (Sprite) || Increments of 0x10 for major position. Relates to NPCs. Should match with 0x003A to ensure NPCs are in correct location on the map.
 
|-
 
|-
| 0x0092 || Player Y Position ||
+
| 0x0092-93 || Player Y Position (Sprite) || Increments of 0x10 for major position. Relates to NPCs. Should match with 0x003B to ensure NPCs are in correct location on the map.
 
|-
 
|-
| 0x00BA-BB || Experience || Raw experience amount.  Level and other stats are generated.
+
| 0x00BA-BB || Experience || Raw experience amount.  Level and other stats are generated from this value (eventually reverting changes wihtin 0x00C5-CD)
 
|-
 
|-
 
| 0x00BF || Magic Keys || Set $00-$0A for that amount of keys. $0A will not show a number. $0B=1, $0C=2, etc.
 
| 0x00BF || Magic Keys || Set $00-$0A for that amount of keys. $0A will not show a number. $0B=1, $0C=2, etc.
Line 101: Line 105:
  
 
|-
 
|-
| 0x00d0 || Light radius || Used to determine vision within dungons.  Valid values are 01, 03, 05, 07. Unstable if 09 is used.
+
| 0x00d0 || Light radius || Used to determine vision within dungons.  Valid values are 01, 03, 05, 07. Can be set to 16, but values that high don't necessarily update the screen outside the centered 7x7 grid.  
 
|-
 
|-
 
| 0x00da || Light timer || Set by Radiant spell and counts down. When it reaches 0, light radius is decreased.  
 
| 0x00da || Light timer || Set by Radiant spell and counts down. When it reaches 0, light radius is decreased.  
 +
|-
 +
| 0x00e6 || Music Track 1 position ||
 +
|-
 +
| 0x00ea || Music Track 2 position || 
 +
|-
 +
| 0x00f4 || Music delay timer (drum/track 1) || rowspan=2 | Timers for two independent music sources.  If set to 00, that track is paused.
 +
|-
 +
| 0x00f8 || Music delay timer (flute/track 2)
 +
|-
 
|}
 
|}
 
<br>
 
<br>
  
 
{{stub}}
 
{{stub}}

Revision as of 18:46, 16 January 2010


RAM Function Details
0x003A Player X Position X position on current map. Map not redrawn on direct change.
0x003B Player Y Position Y position on current map.
0x0047 Button(s) pressed Uses binary processing. Here are the values:
Value Button Value Button
*1 A 1* Up
*2 B 2* Down
*4 Select 4* Left
*8 Start 8* Right
0x0090-91 Player X Position (Sprite) Increments of 0x10 for major position. Relates to NPCs. Should match with 0x003A to ensure NPCs are in correct location on the map.
0x0092-93 Player Y Position (Sprite) Increments of 0x10 for major position. Relates to NPCs. Should match with 0x003B to ensure NPCs are in correct location on the map.
0x00BA-BB Experience Raw experience amount. Level and other stats are generated from this value (eventually reverting changes wihtin 0x00C5-CD)
0x00BF Magic Keys Set $00-$0A for that amount of keys. $0A will not show a number. $0B=1, $0C=2, etc.
0x00C0 Amount of Herbs
0x00C1-0x00C4 Items Each nybble represents an item for a total of 8 items (not counting Magic Keys) in your inventory:
Value Item Value Item
0 Nothing 8 Gwaelin's Love
1 Torch 9 Cursed Belt
2 Fairy Water A Silver Harp
3 Wings B Death Necklace
4 Dragon's Scale C Stones of Sunlight
5 Fairy Flute D Staff of Rain
6 Fighter's Ring E Rainbow Drop
7 Erdrick's Token F Herb
0x00C5 Player HP
0x00C6 Player MP
0x00C7 Player LV
0x00C8 Player Strength
0x00C9 Player Agility
0x00CA Player Max HP
0x00CB Player Max MP
0x00CC Player Attack Power
0x00CD Player Defense Power
0x00CE Spells Uses binary processing. Here are the values:
Value Spell Value Spell
*1 Heal 1* Stopspell
*2 Hurt 2* Outside
*4 Sleep 4* Return
*8 Radiant 8* Repel
0x00CF More Spells The first two bits are used for spells, the latter 6 bits are unused/unknown:
Value Spell
*1 Healmore
*2 Hurtmore
0x00d0 Light radius Used to determine vision within dungons. Valid values are 01, 03, 05, 07. Can be set to 16, but values that high don't necessarily update the screen outside the centered 7x7 grid.
0x00da Light timer Set by Radiant spell and counts down. When it reaches 0, light radius is decreased.
0x00e6 Music Track 1 position
0x00ea Music Track 2 position
0x00f4 Music delay timer (drum/track 1) Timers for two independent music sources. If set to 00, that track is paused.
0x00f8 Music delay timer (flute/track 2)