SAY: Difference between revisions

From OHRRPGCE-Wiki
Jump to navigation Jump to search
Moved Neo's info to a more appropriate place, and formated it a bit
Line 1: Line 1:
This lump contains all the text boxes. It contains a series of fixed width records, each of which is exactly 400 bytes long.  
This lump contains all the text boxes. It contains a series of fixed width records, each of which is exactly 400 bytes long.  
Here is some more detail, which needs to be tablized.
The offsets are in bytes, and may be off by one; anyway they proceed linearly, so you can easily see how they fit inside their respective sections:
conditionals:
*305: cond (jump to text box/script #) 0 is never, -1 is always. -n is "tag n is off", +n is "tag n is on"
*307: cond.param. 0-32767 are textboxes 0-32767, -1 to -32768 are scripts 0-32767.
*309: cond (set tag #n = on/off  (x2))
*311: cond.param. +n = "tag #n=on", -n="tag #n=off"
*313: cond.param. see 311.
*315: cond. (fight formation #)
*317: cond. param.
*319: cond. restore hp/mp OR go to shop # OR go to an inn that costs $#
*321: cond. param. 0= restore hp/mp. -n=go to an inn that costs $n. +n=go to shop #n
*323: cond. add/remove hero / swap in/out hero / unlock/lock hero
*325: cond.param. -n=remove hero #n, +n=add hero n, 0= do nothing
*327: cond. jump to text box/script
*329: cond.param. (see 305)
*331: cond. get $
*333: cond. param. (+n= get $n)
*335: cond. use door #
*337: cond. param. (+n= door #n)
*339: cond. add/remove items
*341: cond.param. -n = remove item, +n = add item.
*343: cond.param. swap in/out hero. (-n =swap out, +n = swap in)
*345: cond.param. unlock/ lock hero. (-n = lock, +n = unlock)
*348: yes/ no options:
**bit 0 : choice (if set, ENABLED)
**bit 1 : show box (if set, NO)
**bit 2 : translucent (if set, NO)
**bit 3 : restore music (if set, YES)
Appearance:
*386: position
*388: shrink
*390: textcolor
*392: bordercolor
*394: backdrop
*396: music (why is this in appearance?!) (because it's in the appearance menu, and is another "form" of appearance)


== Formal Specs ==
== Formal Specs ==

Revision as of 19:46, 5 March 2005

This lump contains all the text boxes. It contains a series of fixed width records, each of which is exactly 400 bytes long.

Here is some more detail, which needs to be tablized. The offsets are in bytes, and may be off by one; anyway they proceed linearly, so you can easily see how they fit inside their respective sections:

conditionals:

  • 305: cond (jump to text box/script #) 0 is never, -1 is always. -n is "tag n is off", +n is "tag n is on"
  • 307: cond.param. 0-32767 are textboxes 0-32767, -1 to -32768 are scripts 0-32767.
  • 309: cond (set tag #n = on/off (x2))
  • 311: cond.param. +n = "tag #n=on", -n="tag #n=off"
  • 313: cond.param. see 311.
  • 315: cond. (fight formation #)
  • 317: cond. param.
  • 319: cond. restore hp/mp OR go to shop # OR go to an inn that costs $#
  • 321: cond. param. 0= restore hp/mp. -n=go to an inn that costs $n. +n=go to shop #n
  • 323: cond. add/remove hero / swap in/out hero / unlock/lock hero
  • 325: cond.param. -n=remove hero #n, +n=add hero n, 0= do nothing
  • 327: cond. jump to text box/script
  • 329: cond.param. (see 305)
  • 331: cond. get $
  • 333: cond. param. (+n= get $n)
  • 335: cond. use door #
  • 337: cond. param. (+n= door #n)
  • 339: cond. add/remove items
  • 341: cond.param. -n = remove item, +n = add item.
  • 343: cond.param. swap in/out hero. (-n =swap out, +n = swap in)
  • 345: cond.param. unlock/ lock hero. (-n = lock, +n = unlock)
  • 348: yes/ no options:
    • bit 0 : choice (if set, ENABLED)
    • bit 1 : show box (if set, NO)
    • bit 2 : translucent (if set, NO)
    • bit 3 : restore music (if set, YES)

Appearance:

  • 386: position
  • 388: shrink
  • 390: textcolor
  • 392: bordercolor
  • 394: backdrop
  • 396: music (why is this in appearance?!) (because it's in the appearance menu, and is another "form" of appearance)

Formal Specs

About Formal Specs


Section Data Description
8 lines of text, 304 bytes, starting at byte 0 STR (38) Line 1 of text, unused bytes are null
STR (38) Line 2 of text
STR (38) Line 3 of text
STR (38) Line 4 of text
STR (38) Line 5 of text
STR (38) Line 6 of text
STR (38) Line 7 of text
STR (38) Line 8 of text
Reserved BYTE (1) Wasted space
Text box conditionals, 42 bytes, starting at byte 305 INTs (21) text box conditionals
Reserved BYTE (1) Wasted space
Text box choice Bitset, 1 byte, at byte 348 BIT (1) choicebox enabled
BITs (7) undefined bitsets
Text box choices, 35 bytes, starting at byte 349 STR (15) First choice string, unused bytes are null
INT (1) Choice 1 Tag (positive ON, negative OFF)
BYTE (1) Wasted space
STR (15) Second choice string, unused bytes are null
INT (1) Choice 2 Tag (positive ON, negative OFF)
Reserved, 2 bytes starting at byte 384 INT (1) Wasted space
Box appearance, 12 bytes, starting at byte 386 INTs (6) Box appearance data
Reserved, 2 bytes starting at byte 398 INT (1) Wasted space