What does the "transparent" tag do?


Questions, Explanations, Howtos

Dungeon Master

Posts: 2

Joined: Wednesday, 2nd February 2011, 16:05

Post Wednesday, 2nd February 2011, 16:21

Re: What does the "transparent" tag do?

The 'transparent' tag prevents the squares of the vault from being associated with its map index, and from being marked with MMT_OPAQUE.

The former prevents the vault from, for example, showing up in death reports, as there is no association between the map coordinate and the vault.

MMT_OPAQUE needs some more explanation: By default, all vaults are marked with it, and that makes the level connectivity checking code (the one that finds isolated regions) assume that the vaults are non-passable. Quoting dungeon.cc:

"Don't peek inside MMT_OPAQUE vaults (all vaults are opaque by default) because vaults may choose to create isolated or otherwise cause connectivity issues even if the map is travel-passable."

The 'transparent' tags cancels that behaviour, so the passability of vaults that have it is checked in accordance with their actual terrain.

Other use cases include dummy portal vault entries (they're just portals, they cannot affect connectivity), vaults that place uniques (they just place monsters---same rationale).

Dungeon Master

Posts: 3618

Joined: Thursday, 23rd December 2010, 12:43

Post Wednesday, 2nd February 2011, 17:09

Re: What does the "transparent" tag do?

Zaba: Would you add your great description to the des files syntax help? The question will come up again... Thanks!

Return to Coding

Who is online

Users browsing this forum: No registered users and 3 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.