FlowCanvas Forums › Support › Creating formulas and tracking variable values
Tagged: flowcanvas, formulas, nodecanvas
Hello,
I recently acquired two of your assets (nodeCanvas and floCanvas), and am trying to understand how to work with them, but I have a question about floCanvas:
1. Can I use floCanvas to create formulas (for example, float variable c == 100 – (a + b): 100)?
2. And if so, is it possible using the flowCanvas (or together with the nodeCanvas) to make the calculation using the formula at a certain moment?
3. For example, I randomly choose from 4 events: a, b, c, d. For example, in the playmaker, you can set a random events with a given probability for each event (in playmaker this value is from 0 to 1 float type). So, is it possible to randomly select an event using flowCanvas or nodeCanvas (or them together), but the probability of choosing each of them will be equal to each individual float variable (for example, the probability of an event a == is equal to the float variable “aRandomness”)?
Hello and thanks a lot for getting both assets.
Please let me address your questions 🙂
Please let me know on the above and if you need any further information.
Thanks!
Hello,
thanks for the answer. Yes, if you can, I would like to try Expression Node. (will i have to reinstall Flow Canvas?)
As for 2 and 3 questions, I drew a picture where I tried to explain what I would like to implement:
For this case, I better use in the NodeCanvas FSM or BehaviorTrees?
Hello again and sorry for late reply.
I have attached for you here the Expression Node (a unitypackage). Please note that this is only a beta/early version of the node.
Thank you for the extra information on the Probability node. I will implement such a node in FlowCanvas in the next few days and will also be there in the next version. While you can use NodeCanvas Probability Selector, from what I see you would prefer using FlowCanvas (with the new Probability Node when it’s ready) though :).
Let me know what you think regarding the attached Expression Node by the way.
Thank you!