Skip to content

Main Nodes

Dizy edited this page May 4, 2020 · 15 revisions

Utility Node

This node translate every values provided to the input into an utility value (a float between 0 and 1).

The Min X and Max X inputs gives the minimum and maximum values ​​of x, X input is the more important data which is calculate into an utility value using the function curve and provided by the Utility Y output.

Of course you can use fixed values using the Min X, Max X, or X inputfields.

You can also choose the function curve to use in order to obtain the utility value you want, for that you only have to click on the function curve image.

And click on the desired curve.

For more convenience, an array of curve is provided, use the gear wheel to access it.

Each curve has a reverse curve which can be use to invert the utility result.

The Max Rank and Min Rank fields scale the output (e.g. an utility of 0.1, a min rank of 0 and a max rank of 10 will output a value of 1), you can setup different values for different utility to improve the considerations meaning.

Option Node

The option node is the main node of a decision, it is connected to one or more utilities, have an utility merge parameter, a rank value (using multiplier and bonus), one or more linked actions and a collection index controller.

To get into the details :

  • The Utilities port connect the utility node and provide the final utility value of the considerations.
  • The Utility merge allow you to parameter how the merge should be done, using average value, min or max.
  • The Multiplier port allow you to sort the rank of the option and therefore to modify the final weight value, you can connect rank nodes or directly entry node to provide a multiplier. If this multiplier is equal to 0 then the option will be ignored.
  • The Bonus port allow you to increase or decrease the rank of the option, to promote or disadvantage the probability of an option.
  • The Action port allow you to connect which action will be triggered when this option will be selected.
  • The Data Iterator Node port need to be connected to the Data Iterator Node (if existing) in order to iterate on each of the entries.
  • The Description field is used to debug the option in the AI Debugger.

Converter Node

The converter node allow you to convert bool value to int value

This node is mainly used to convert value into bonus or multiplier.

Clone this wiki locally