-
Notifications
You must be signed in to change notification settings - Fork 7
Visit X amount of nodes before continuing
In this example, I will be using the "FindTheStones" blueprint - a game where you have to visit at least 4 out of 6 marked stones on the map in order to unlock the last "secret" one. We have 6 different Nodes, each representing one stone:

Each stone has a location - you can use the handy built in map in order to create location variables, just click on the "Show Map" button and a window will appear:

You can then scroll around, and add a new location variable by right clicking where you want it to be:

Now that we have 6 different stone locations, they can be added as a "Node Location" in each node property. For example, I have the node "Stone 5" have the location of "Stone5":

That will create a visual indicator with the number 4, as seen in the screenshot above
This means that when the player gets close to the node, it should activate. In this game's case, there is a dialogue and a variable (StonesVisited) is incremented for each stone behind the scenes.

In order to make it easier for us, we can group the 6 stones in a group, by selecting them all, right clicking on one of them, and clicking on "Group Nodes". This should create a group like this:

In order to make it so after any 4 stones it unlocks the final "secret" stone, first we need to set what the "Target Unlock Node" is in the Group inspector (by clicking on the group). After that, a few options will appear, and we care about the "Total Nodes To Complete" - select how many nodes you want the player to have completed before they can continue with the next nodes, like this:

There should be a visual representation of the next node, and the number of inner nodes that need to be completed before being able to continue:
