trigger_changelevel

startdisabled 
mapindex

trigger_changelevel has two added features in Quoth. If “startdisabled” is set to 1, the changelevel won’t be active until triggered via its targetname. Once activated it must then be touched to work as normal.
This simply allows for the player to exit through the same location they entered the map.

The “mapindex” key is used with the Session Mapindex feature in Quoth. The Session Mapindex is a value which is preserved between maps to track which maps the player has visited, and is read by the info_mapgate and info_endgate entities. trigger_changelevel is the way to modify the Session Mapindex; when you leave a map through a trigger_changelevel, a test is carried out to check whether the session mapindex already has any of the bits set from the trigger_changelevel’s mapindex. If the two values have no bits in common, the value in the mapindex key is added to the Session Mapindex. Typically, the mapindex field on the trigger_changelevel has just a single bit set (a power of two value), meaning the Session Mapindex is guaranteed to have that bit set after exiting the map.

<-Back to the tutorial

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.