Skip to content

Commit

Permalink
Bleh.
Browse files Browse the repository at this point in the history
  • Loading branch information
iChun committed May 28, 2021
1 parent eaeb0da commit 6327487
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/intermediate/configspecifics.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ Move to the Event inside the `subscription` event type.
<br />
<br />

Pay attention to the `playTime` field. This has been set to 20 ticks (20 ticks is one second). This event is also of the `subscription` type. What this means is when this Config Event is tested and passes, it gets added to the `host+subscription+bits` queue, triggers if it is the first in queue, and then CCI waits 20 ticks, before triggering the next Config Event in the queue.
Pay attention to the `playTime` field. This has been set to 20 ticks (20 ticks is one second). This event is also of the `subscription` type. What this means is when this Config Event is tested and passes, it gets added to the `host+subscription+bits` queue, triggers if it is the first in queue, and then CCI waits 20 ticks, before triggering the next Config Event in the queue. Be mindful that when Config Events in the queue are triggered, their conditions are not tested again, so their outcomes will be triggered directly. If you need to check a condition when the outcomes trigger, use a `ConditionalOutcome`.

Removing the value of the `playTime` field, or setting it to a value below 0, will make it trigger immediately without joining the queue.

Just before Config Events in the queue are triggered, Global Variables are re-inserted into the variables list, just in case they have changed whilst the Config Event sits in the queue. Because of this, try not to insert any local variables with matching names as global variables, as those will be overwritten.

<br />

### Ignored Types (name: `ignoredTypes`)
Expand Down Expand Up @@ -84,7 +86,11 @@ Normally, when an event triggers, all of the outcomes are triggered. Turning thi

### Delay (name: `delay`)

Adds a delay (in ticks), before triggering the outcomes. Can also work in queues.
Adds a delay (in ticks), before triggering the outcomes. Can also work in queues.

Similarly to queues, after the delay, when Config Events are triggered, their conditions are not tested again, so their outcomes will be triggered directly. If you need to check a condition when the outcomes trigger, use a `ConditionalOutcome`.

Also like queues, just before Config Events are triggered (after the delay), Global Variables are re-inserted into the variables list, just in case they have changed whilst the Config Event waits out the delay. Because of this, try not to insert any local variables with matching names as global variables, as those will be overwritten.

<br />

Expand Down

0 comments on commit 6327487

Please sign in to comment.