Due to the recent resurgence of spam, we have temporarily disabled user creation and page editing/creation as we resolve the issue.

Difference between revisions of "Team Resource"

From Snapwiki
Jump to: navigation, search
(Created page with "== Team Resource == A variable that represents a custom Team Resource type. It can be set to a whole number. {| class="wikitable" style="width: 60%;" !'''INPUTS''' |} ;Spen...")
 
(Removed bug notes in preparation for today's update.)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Flow]]
 
== Team Resource ==
 
== Team Resource ==
 
 
A variable that represents a custom Team Resource type. It can be set to a whole number.
 
A variable that represents a custom Team Resource type. It can be set to a whole number.
  
 +
== Details ==
 +
{| class="wikitable"
 +
|-
 +
|[[File:TeamResource.PNG]]||
 +
'''Object''': Team Resource
 +
 +
'''Category''': Variables
 +
 +
|}
 +
 +
== Inputs ==
 
{| class="wikitable" style="width: 60%;"
 
{| class="wikitable" style="width: 60%;"
!'''INPUTS'''
+
!colspan="3"|'''INPUTS'''
 +
|-
 +
|[[File:Spend.png|64px|link=Spend]]||'''Spend'''||Spend the resource value specified in the input's properties. Fails if there are insufficient resources. Expects a player as an activator.
 +
|-
 +
|[[File:Set.png|64px|link=Set]]||'''Set (Team Resource)'''||Set the activator's Team Resource to the value specified in the input's properties. Expects an object an activator.
 +
|-
 +
|[[File:Add.png|64px|link=Add]]||'''Add (Team Resource)'''||Increase the activator's Team Resource by the amount specified in the input's properties. Expects an object an activator.
 +
|-
 +
|[[File:Subtract.png|64px|link=Subtract]]||'''Subtract (Team Resource)'''||Decrease the activator's Team Resource by the amount specified in the input's properties. Expects an object an activator.
 
|}
 
|}
  
;Spend: Spend the resource value specified in the input's properties. Fails if there are insufficient resources. Expects a player as an activator.
+
== Outputs ==
;Set (Team Resource): Set the activator's Team Resource to the value specified in the input's properties. Expects an object an activator.
+
;Add (Team Resource): Increase the activator's Team Resource by the amount specified in the input's properties. Expects an object an activator.
+
;Subtract (Team Resource): Decrease the activator's Team Resource by the amount specified in the input's properties. Expects an object an activator.
+
 
+
 
{| class="wikitable" style="width: 60%;"
 
{| class="wikitable" style="width: 60%;"
!'''OUTPUTS'''
+
!colspan="3"|'''OUTPUTS'''
 +
|-
 +
|[[File:OnChanged.png|64px|link=On Changed]]||'''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.
 +
|-
 +
|[[File:OnSpendSucceeded.png|64px|link=On Spend Succeeded]]||'''On Spend Team Resource Succeeded'''||When an attempt to spend a Team Resource succeeds, send a signal. The activator is unchanged from the input Spend signal.
 +
|-
 +
|[[File:OnSpendFailed.png|64px|link=On Spend Failed]]||'''On Spend Team Resource Failed'''||When an attempt to spend a Team Resource fails, send a signal. The activator is unchanged from the input Spend signal.
 +
|-
 +
|[[File:OnSpendAttempted.png|64px|link=On Spend Attempted]]||'''On Spend Team Resource Attempted'''||When an attempt to spend a Team Resource is made, send a signal. The activator is unchanged from the input Spend signal.
 
|}
 
|}
  
;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.
+
== Properties ==
;On Spend Team Resource Succeeded: When an attempt to spend a Team Resource succeeds, send a signal. The activator is unchanged from the input Spend signal.
+
{| class="wikitable" style="width: 60%;"
;On Spend Team Resource Failed: When an attempt to spend a Team Resource fails, send a signal. The activator is unchanged from the input Spend signal.
+
!colspan="3"|'''PROPERTIES'''
;On Spend Team Resource Attempted: When an attempt to spend a Team Resource is made, send a signal. The activator is unchanged from the input Spend signal.
+
|-
 +
|'''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.
 +
|}

Latest revision as of 2016-06-30T10:25:32

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.png Spend Spend the resource value specified in the input's properties. Fails if there are insufficient resources. Expects a player as an activator.
Set.png Set (Team Resource) Set the activator's Team Resource to the value specified in the input's properties. Expects an object an activator.
Add.png Add (Team Resource) Increase the activator's Team Resource by the amount specified in the input's properties. Expects an object an activator.
Subtract.png Subtract (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.png 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.
OnSpendSucceeded.png On Spend Team Resource Succeeded When an attempt to spend a Team Resource succeeds, send a signal. The activator is unchanged from the input Spend signal.
OnSpendFailed.png On Spend Team Resource Failed When an attempt to spend a Team Resource fails, send a signal. The activator is unchanged from the input Spend signal.
OnSpendAttempted.png On Spend Team Resource Attempted When an attempt to spend a Team Resource is made, send a signal. The activator is unchanged from the input Spend signal.

Properties

PROPERTIES
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.