Script Trigger

From OHRRPGCE-Wiki
Jump to: navigation, search

Data fields in lumps which specify a script to trigger (such as the map auto-run trigger) don't store script ID numbers. Script ID numbers are only found in lumps directly containing script data and indices (HS, LOOKUP1.BIN, etc.). Instead, script triggers are stored, which are INT fields contains integers between 0 and 32767:

Field Value Meaning
0 No script, do nothing
1-16383 Script ID number, run script n.HSZ
16384-32767 Script trigger number + 16384, look up record (n - 16384) in LOOKUP1.BIN to get a script ID number

See Also[edit]