-
Notifications
You must be signed in to change notification settings - Fork 9
Nodes
Node system is a powerful feature that is used by events, dialogues and quest chains features to represent complex relationship between nodes.
Here is an example of an event that represent a very primitive dirt or diamonds lootbox system:
Let's say you created a new event called new
in the event editor. The first step to start working with nodes is to either right click on the editor and add a single node of your choice, or press one of the Ctrl + Number keybind to add a node (see available node adding keybinds in F9
menu).
Once the node was added it will be selected, and you can edit its fields in the bottom left corner of the node editor. Now, create a couple of more nodes, like 5 of them. Once you're comfortable with creation of nodes, try removing a node. To remove a node, click on it, then right click anywhere and click on ➖ Remove selected nodes context menu item.
Cool, now you have all those nodes by themselves. The main feature of nodes is their ability to being tied to another nodes. To tie two nodes together, first select (by clicking) the input node, in which the output node will be flowing, which is usually the bottom node, and then add the top output node (by clicking on a node while holding Shift
key). Alternatively, you can select multiple nodes by click dragging while holding shift:
Once two nodes are selected, ensure that the top node has lighter blue selection color, and if it's not then Shift click on it again, and either press F
to connect, or right click and Tie selected. Then the nodes will be connected:
Great! As you can see based on the node connection flow animation, the bottom node is being the input node, because the flow animation circulates into the direction of the input node, and the top node is the output node. If you want to untie these two nodes, what you have to do is to select again first the bottom node, and then the top node, and either press U
to unconnect, or right click and Untie selected.
Note: nodes an be connected circularly, however no node can be tied to itself.
In event and dialogue node systems, you have to specify a main node, that's the node from which the entire execution flow starts. To mark a node as a main simply select a node (by clicking it) and press M
on the keyboard. That will mark the node as main, and it will have this arrow down icon:
If parts of the wiki don't make sense with Mappet's latest version, or you weren't able to recreate examples (i.e. outdated information), feel free to report the page and section that is out of date on community's Discord server (make sure to mention which Mappet’s version did you use).