Team Resource

Last modified by KDearnley on 2023/07/31 14:06

Team Resource

A variable that represents a custom Team Resource type. It can be set to a whole number.

Details

TeamResource.PNG
Object: Team Resource

Category: Variables

Inputs

INPUTS
Spend.pngSpendSpend the resource value specified in the input's properties. Fails if there are insufficient resources. Expects a player as an activator.
Set.pngSet (Team Resource)Set the activator's Team Resource to the value specified in the input's properties. Expects an object an activator.
Add.pngAdd (Team Resource)Increase the activator's Team Resource by the amount specified in the input's properties. Expects an object an activator.
Subtract.pngSubtract (Team Resource)Decrease the activator's Team Resource by the amount specified in the input's properties. Expects an object an activator.

Outputs

OUTPUTS
OnChanged.pngOn ChangedWhen the value changes, send a signal. The activator is the Resource or Cached Entity that changed. There is no activator for Boolean, Color, Integer, Number or String variables.
OnSpendSucceeded.pngOn Spend Team Resource SucceededWhen an attempt to spend a Team Resource succeeds, send a signal. The activator is unchanged from the input Spend signal.
OnSpendFailed.pngOn Spend Team Resource FailedWhen an attempt to spend a Team Resource fails, send a signal. The activator is unchanged from the input Spend signal.
OnSpendAttempted.pngOn Spend Team Resource AttemptedWhen an attempt to spend a Team Resource is made, send a signal. The activator is unchanged from the input Spend signal.

Properties

PROPERTIES
NameStringThe name of this object. Rename an object to make it easy to identify.
IconGrid PickerIcon of this object. Change the icon to make it easy to identify.
Initial ValueIntegerThe starting value for this variable.
Min ValueIntegerThe minimum value.
Max ValueIntegerThe maximum value.