Player Resource
A variable that represents a custom Player Resource type. It can be set to a whole number.
Details
| Object | Category | |
|---|---|---|
| Player Resource | Variables |
Inputs
![]() | Spend | Spend the resource value specified in the input's properties. Fails if there are insufficient resources. Expects a player as an activator. |
![]() | Set (Player Resource) | Set the Player Resource to the value specified in the input's properties. Expects a player as an activator. |
![]() | Add (Player Resource) | Increase the Player Resource by the amount specified in the input's properties. Expects a player as an activator. |
![]() | Subtract (Player Resource) | Decrease the Player Resource by the amount specified in the input's properties. Expects a player as an activator. |
Outputs
![]() | On Changed | When 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. |
![]() | On Spend Player Resource Succeeded | When an attempt to spend a Player Resource succeeds, send a signal. The activator is unchanged from the input Spend signal. |
![]() | On Spend Player Resource Failed | When an attempt to spend a Player Resource fails, send a signal. The activator is unchanged from the input Spend signal. |
![]() | On Spend Player Resource Attempted | When an attempt to spend a Player Resource is made, send a signal. The activator is unchanged from the input Spend signal. |
Properties
| Property | Type | Description |
|---|---|---|
| Name | String | The name of this object. Rename an object to make it easy to identify. |
| Icon | Grid Picker | Icon of this object. Change the icon to make it easy to identify. |
| Initial Value | Integer | The starting value for this variable. |
| Min Value | Integer | The minimum value. |
| Max Value | Integer | The maximum value. |







