Textdata effecttable.txt

From Raynegard Wiki
Revision as of 13:23, 2 July 2026 by 127.0.0.1 (talk) (Technical breakdown (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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 (004e4eec004e4ef4) via load_effecttable @ 0049fe90 with type index 4 → channel selected by GameWorld_get_effect_array @ 0049fdf0effect2_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]