Referencing Resource Availability and Use in Input Expressions

In some situations, when defining a Resource Requirement Quantity/Rate, or any other property of an element that is interacting with Resources (e.g., a trigger), you may want to make the input a function of the current state of one or more Resource Stores.

GoldSim provides four locally available properties for each Resource Store available to an element:

   ResourceName_Available (e.g., Fuel_Available): The quantity of the specified Resource Store that is currently available.

   ResourceName_Borrowed (e.g., Fuel_Borrowed): The quantity of the specified Resource Store that is currently borrowed.

   ResourceName_Spent (e.g., Fuel_Spent): The quantity of the specified Resource Store that has been spent.

   ResourceName_Total (e.g., Fuel_Total): The sum of ResourceName_Available and ResourceName_Borrowed.

Like all locally available properties, these are accessed via the Insert Link dialog, in this case by first right-clicking inside an input field of an element that can use Resources, and then expanding the Available Properties folder (displaying all of the locally available properties that can be accessed from that location):

Like all locally available properties, these appear in input fields with the prefix “~” (e.g., ~Fuel_Available):

Related Topics…

Learn more about: