Users browsing this thread: 1 Guest(s)
Field RAM question

#1
Posts: 23
Threads: 4
Thanks Received: 1
Thanks Given: 0
Joined: Sep 2015
Reputation: 0
Status
Zombie
When adding characters to the party, I wanted to be able to have them in the start off in the back row.  Last night I was attempting to make a new event code that would simply switch the character's rows.

In the Field RAM page of the Wiki, there is this:

Code:
$0867-$1068 Object Data (50 items, 41 bytes each, $00-$0F are characters, $10-$2F are NPC's, $30 is camera ($07B0), $31 is showing character or for unused objects ($07D9))
-----------
     $0867 verbbppp Object Settings
           v: Visible
           e: Enabled (active)
           r: Battle Row (back row if set) \
           b: Battle Order                 |--> characters only, though $1850 is "master" data
           p: Party                        /

It took me all night to figure out that changing row in $1850 has no effect.  But, changing row in the $0867 block does.

It seems like the $0867 is the "master" data.

Where did this claim of "master" data come from?
  Find
Quote  

#2
Posts: 3,966
Threads: 279
Thanks Received: 234
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
I'm not sure if I understand your question but $0867 is a RAM address, while $1850 is a SRAM address (SRAM is part of RAM). SRAM data is your save game data, meaning the "live" data is $0867 that is stored in $1850 prior or upon game saving. When you load a game, $1850 will be used to apply row or / and it will be transferred into $0867 that will do its job.

Edit: SRAM block is $1600 to $1FFF.
  Find
Quote  

#3
Posts: 23
Threads: 4
Thanks Received: 1
Thanks Given: 0
Joined: Sep 2015
Reputation: 0
Status
Zombie
Now, I see what it meant by "master".

Every time the game went into the menu, it copied the value of $0867 to $1850.

I was confused on why the "master" was doing nothing. I get it now.
  Find
Quote  

#4
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
You also might not need a custom event for this. You can probably just tack this on to the "Set Properties ID" code or another portion of the character setup...

Edit: to clarify, you probably don't need a whole new event command, rather, just add the new code to an existing event command.
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite