Textdata effecttable.txt
effecttable.txt (5,535 bytes, part of BIN textdata) is a per-area time-windowed effect table, feeding channel "effect 2". One of six time-windowed world tables; see that section for the shared mechanism.
Format (10 columns, pure form)
[edit][fromWeek, fromDay, fromHour, fromMinute, target, value, toWeek, toDay, toHour, toMinute] (99 = wildcard). Target resolution: target = col5 − 1, then < 10000 → zone zone_array[target]; ≥ 10000 → map node node_array[target − 10001].
Loading (Ghidra)
[edit]Loaded from a small filename table (004e4eec–004e4ef4) via load_effecttable @ 0049fe90 with type index 4 → channel selected by GameWorld_get_effect_array @ 0049fdf0 → effect2_array (node/zone struct offset 100). Two-pass load: pass 1 counts entries per area (reads col5 only); pass 2 parses all 10 columns and appends a 44-byte world_effect_entry to the target's array.
Runtime query: WorldZoneEntry_QueryEntryByType(zone, 4, week, dayOfWeek, hour, minute, setFlag) returns the active entry's value (col6), or -1 if none is active for the current in-game time.
See also
[edit]- BIN textdata
- textdata tenkoutable.txt, textdata tensoutable.txt — the sibling effect channels (0 and 1)
- textdata bgmtable.txt, textdata setable.txt, textdata erasetable.txt