Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Things that uw formats.txt does not want you to know

hankmorgan edited this page Nov 8, 2015 · 3 revisions

Another fantastic resource but here are some additional bits of info.

Traps.

Change terrain trap. Turns on set of tiles into another set of tiles. The properties of the trap itself indicate what happens. The x and y (positions within the tile not the tileX/Y values) indicate the dimension of the area to be affect. Zpos is the height of the new tiles. (Object.quality & 0x01) is the tile type. (Object.quality >>1)+210 is the floor texture (in uw1 at least). UPDATE: The object.quality>>1 is actually an index into the texture mappings.

UW2 Map Block Differences

Per uw-formats and unlike in UW1 the animation overlays in UW2 are not part of a separate block but are somewhere near the end of the tilemap block. The size 0xgiven in uw-formats.txt for the length of a tilemap block (0x7c06_is only correct for UW1. UW2 will have a varying length of data after then "UW" bytes containing the overlays.

USE Triggers in UW2

If a use trigger has a next set then it means it toggles it's target between the link value and the next value for the target trap.