-
Notifications
You must be signed in to change notification settings - Fork 4
Unlocking_Nodes
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'.
Setting a target 'Unlock Node' is simple:
- Ensure you have a Flow Engine created, the Window open and at least two Nodes created in the Engine.
- Select the Node you wish to be the 'Key Node' (i.e., the Node that, when completed, will unlock another Node).
- In the Node Inpsector Window you should see a property named
Target Unlock Node
with a drop-down list:
- 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:
Applying the same logic to Groups is the same process with some additional settings:
- Ensure you have a Flow Engine and Window open with a Node and a Group created.
- Select the Group and navigate to the
Target Unlock Node
property and select the Node you wish to unlock:
- As seen in the above screenshot, there are two options added:
Set Nodes to Complete
toggle andTotal 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. - 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:
- 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.
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.