Skip to content

zCCodeMaster

Quick Infos

Class Name: zCCodeMaster
Version Identifiers:
β€” Gothic I: 0
β€” Gothic II: 0
Source:
β€” spacerhilfedatei.sph
β€” gothic-library.ru
β€” zk.gothickit.dev

zCCodeMaster VObjects keep a list of 'slave' VObjects and keep track of events received by them. If the master receives an OnTrigger event from a slave, it remembers that it did. After it has receives an OnTrigger message from all slaves, it emits an OnTrigger event to the triggerTarget. Receiving or sending an OnTrigger event is also referred to as an 'activation' for this purpose.

Class member overview

orderRelevant

Controls whether the master should keep track of the order it receives messages from its slaves.

Accepted values:

  • TRUE β€” Only send an OnTrigger event to the triggerTarget if the slaves have fired in the exact order they are configured here. Also counts multiple activations.
  • FALSE β€” Send an OnTrigger event to the triggerTarget after all slaves have fired at least once, regardless of order.

firstFalseIsFailure

Controls when the slave activation sequence is considered to be incorrect. After the sequence is marked as incorrect an OnTrigger event is sent to triggerTargetFailure.

Accepted values:

  • TRUE β€” The sequence is considered to be incorrect as soon as one slave is activated out-of-order.
  • FALSE β€” The sequence is considered to be incorrect only after all slaves have been activated at least once and they were activated out-of-order.

Warning

Only relevant if orderRelevant is set to TRUE.

triggerTargetFailure

The name of the VObject to emit an OnTrigger event to if the activation sequence fails. This is controlled by firstFalseIsFailure.

Warning

Only relevant if orderRelevant is set to TRUE.

untriggerCancels

Controls whether slaves can emit OnUntrigger events to the master VObject to mark themselves as deactivated.

Accepted values:

  • TRUE β€” When the master receives an OnUntrigger event from the slave, it marks it as not having been activated.
  • FALSE β€” The master ignore OnUntrigger events from its slaves.

Warning

Only relevant if orderRelevant is set to FALSE.

slaveVobName

The name of a slave VObject.

numSlavesTriggered

Unknown.

Warning

This property is only available in saved games.