Textdata setable.txt

From Raynegard Wiki
Jump to navigationJump to search

setable.txt (14,464 bytes, part of BIN textdata) is the per-area sound-effect table. One of six time-windowed world tables; see that section for the shared query mechanism.

Format (10 columns, identical layout to the effect tables)

[edit]

[fromWeek, fromDay, fromHour, fromMinute, target, value, toWeek, toDay, toHour, toMinute]. value (col6) is the sound-effect id (stored −1 → 0-based). The entry keeps from (cols 1–4) + target + SE id; the to copy (cols 7–10) isn't passed into the runtime entry — rows use from == to, i.e. a point-in-time SE trigger rather than a window.

Example: 14,1,22,30,44,38,14,1,22,30 → at week 14, day 1, 22:30, zone 43, play SE 37.

Loading (Ghidra)

[edit]

load_setable @ 0049f990 (query type 3). Query sets entry->field_0x2c = 1 ("play now") when matched.

See also

[edit]