SAY

From OHRRPGCE-Wiki

Jump to: navigation, search

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

[edit] 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
Image:Npctag-cond-blank.png
INT (1) conditional tag (jump to text box/script # instead)
INT (1) param.
0-32767 are textboxes 0-32767
-1 to -32768 are negated plotscript Triggers
INT (1) conditional tag (set tag #n = on/off (x2))
INT (1) param.
+n = "tag #n=on"
-n = "tag #n=off"
INT (1) param.
+n = "tag #n=on",
-n = "tag #n=off"
INT (1) conditional tag (fight formation #)
INT (1) param.
index of battle formation
INT (1) conditional tag (restore/shop/inn)
INT (1) param.
0 = restore hp/mp.
-n = go to an inn that costs $n.
+n = go to shop #n
INT (1) conditional tag (add/remove/swap/unlock/lock hero)
INT (1) param.
-n = remove hero #n
+n = add hero n
0 = do nothing
INT (1) conditional tag (jump to text box/script # after)
INT (1) param.
0-32767 are textboxes 0-32767
-1 to -32768 are negated Plotscript Triggers
INT (1) conditional tag (gain/lose money)
INT (1) param.
+n = amount of money to gain.
=n = amount of money to lose
INT (1) conditional tag (use door #)
INT (1) param.
door number on current map
INT (1) conditional tag (add/remove items)
INT (1) param.
-n = remove item
+n = add item
INT (1) param.
swap in/out hero.
-n = hero to swap out
+n = hero to swap in
INT (1) param.
lock/unlock hero.
-n = hero to lock
+n = hero to unlock
Reserved BYTE (1) Wasted space
Text box choice Bitset, 1 byte, at byte 348 BIT (1) choicebox enabled
BIT (1) disable box
BIT (1) disable translucent
BIT (1) enable restore music
BITs (4) 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)
2 bytes starting at byte 384 INT (1) Menu conditional (see conditionals above, and menu ID number below) (This is a WIP feature)
Box appearance, 12 bytes, starting at byte 386 INT (1) vertical position. Y position of box is value*4 + 4
INT (1) box shrink. Height of box is 88 - 4 * shrink pixels
INT (1) text color. If 0, use color 15.
INT (1) border color. Box body color is value*16 + 18, box frame color is value*16 + 28
INT (1) backdrop index + 1, 0 for none
INT (1) music + 1
(why is this in appearance?!)
(because it's in the appearance menu)
Menu to display INT (1) Menu ID (This is a WIP feature)

ARCHINYM.LMP . BROWSE.TXT . ATTACK.BIN . BINSIZE.BIN . DEFPAL#.BIN . DEFPASS.BIN . FIXBITS.BIN . LOOKUP.BIN . MENUS.BIN . MENUITEM.BIN . PALETTES.BIN . PLOTSCR.LST . SFXDATA.BIN . SONGDATA.BIN . UICOLORS.BIN . GEN . BAM . Map Format . T . P . E . D . L . N . DOR . DOX . DT0 . DT1 . DT6 . EFS . FOR . FNT . HSP . HSZ . ITM . MAP . MAS . MN . MXS . PAL . PT0 . PT1 . PT2 . PT3 . PT4 . PT5 . PT6 . SAY . SHO . SNG . STF . STT . TAP . TIL . TMN . VEH

Personal tools