mega.nz
The Algorithm object is a very simple plugin that allows one to easily create algorithms. Algorithms are essentially flowcharts.
I created this tiny plugin for my own reasons but distributed it for all to use. I require nothing in return. If you have feature requests, please submit those, along with any questions, in the comment box below. It is at my discretion whether I will implement any requests.
Please be careful with your algorithms. There is the possibility of endless looping if done improperly! (resulting in a crash)
Here is the classic example of an algorithm. Feel free to compare it with Euclid's flowchart found on the 'Algorithm' entry on Wikipedia. Do note that algorithms are not required to be put into functions, but it does naturally lend itself to it. "node2" exists merely to demonstrate the set node placement possibilities.
Actions
Recall node
The node to recall to. Make sure that this action is the last on the list. Again, anything below the recall node action will only run after the algorithm has returned a value! If the node does not exist, the action will do nothing.
Conditions
Set node
This condition always returns true. It is merely there to set up a node so a later action can recall back there. Because Set node is always true, irrelevant of other conditions in the sub-event, the action within that sub-event will also run. It can be placed as a intermediate sub-event between its parent and child or, for example, under Else.
For the children of a Set node condition, always have its condition be paired with an Else condition. Crazy things may happen if there is the possibility of both conditions returning true! Lastly, make sure that the node strings are unique in its event sheet (and includes).
Expressions
LastNode expression
Will return the string value of the last node that has been recalled. If no node has been recalled, it will return "".