Skip to content

Unlocking_Nodes

Jack Brett edited this page May 12, 2024 · 5 revisions

As outlined in the Nodes section, we can link Nodes and Orders together using specific calling Orders. However, it is often found that in narrative based experiences certain 'Pages' or 'Chapters' are unlocked when certain pages or groups of pages have been read.

In light of this, we have allowed Nodes to 'Unlock' other Nodes which essentially will 'Lock' the target Node and will only allow it to execute once the 'Unlock Node' has been fully completed.

This feature can also be applied to Groups where unlocking the target Node will require a certain amount of Nodes to be completed or specific Nodes to be completed within the specific 'Unlcok Group'.

Unlocking Nodes from Nodes

Setting a target 'Unlock Node' is simple:

  1. Ensure you have a Flow Engine created, the Window open and at least two Nodes created in the Engine.
  2. Select the Node you wish to be the 'Key Node' (i.e., the Node that, when completed, will unlock another Node).
  3. In the Node Inpsector Window you should see a property named Target Unlock Node with a drop-down list:

targetUnlockNode

  1. Select the Node you wish to be unlocked from the drop-down (in this case, we only have one that we can choose from). Once selected, you will see the changes reflected on the Window where a dotted line signifies the unlocking connection and the key and padlock indicates the relationship between these two Nodes:

targetUnlockNodeWindow

Unlocking Nodes from Groups

Applying the same logic to Groups is the same process with some additional settings:

  1. Ensure you have a Flow Engine and Window open with a Node and a Group created.
  2. Select the Group and navigate to the Target Unlock Node property and select the Node you wish to unlock:

targetUnlockGroup

  1. As seen in the above screenshot, there are two options added: Set Nodes to Complete toggle and Total Nodes to Complete. In our scenario we have just 1 Nodes to complete set which means that upon 1 or more Nodes being completed in that Group the Target Node will be unlocked.
  2. However, sometimes we desire to have certain Nodes in a group unlock another Node/Group upon their completition. We can achieve this desired behavouir by toggling the Set Nodes to Complete to true. When we do so, some more settings appear:

targetUnlockGroupSpecific

  1. Here you can set the number of Nodes that are required to complete the Group and choose specific Nodes that require to be completed in the Group. In this scenario, Page 1 and Page 3 must be completed to unlock the target Node.

Unlocking Groups

All of this can be applied to Groups so if a Group is chosen to be unlocked, all the Nodes in that Group will be unlocked.

Clone this wiki locally