From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
Line 10: Line 10:
 
===Reset variables===
 
===Reset variables===
  
;<code>[gn:act_resetVariables]|[target{n}]</code>
+
:;<code>[gn:act_resetVariables]|[target{n}]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| [[target]]{n}
+
| <code>[[target]]{n}</code>
 
| [[target]] where the value will be reset
 
| [[target]] where the value will be reset
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
Line 25: Line 25:
  
 
====Example====
 
====Example====
<code>@variable/assetItem_assignment,@variable/assetItem_nameTemp</code> - variable<br><br>
+
:<code>@variable/assetItem_assignment,@variable/assetItem_nameTemp</code> - variable<br>
<code>[gn:act_resetVariables]|[@variable/assetItem_assignment,@variable/assetItem_nameTemp]
+
:; ⤷ <code>[gn:act_resetVariables]|[@variable/assetItem_assignment,@variable/assetItem_nameTemp]</code>
</code>
 
 
<hr>
 
<hr>
  
 
===Reset all except specific variables===
 
===Reset all except specific variables===
  
;<code>[gn:act_resetVariables]|[keyword;target{n}]</code>
+
:;<code>[gn:act_resetVariables]|[keyword;target{n}]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| keyword
+
| <code>keyword</code>
 
| boolean <code>true</code> value which if present, it will retain values of mentioned variables in action and reset all others
 
| boolean <code>true</code> value which if present, it will retain values of mentioned variables in action and reset all others
 
|-
 
|-
| [[target]]{n}
+
| <code>[[target]]{n}</code>
 
| [[target]] where the value will be reset
 
| [[target]] where the value will be reset
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
Line 50: Line 49:
  
 
====Example====
 
====Example====
<code>@variable/assetItem_assignment,@variable/assetItem_nameTemp</code> - variable<br><br>
+
<code>@variable/assetItem_assignment,@variable/assetItem_nameTemp</code> - variable<br>
<code>[gn:act_resetVariables]|[true;@variable/assetItem_assignment,@variable/assetItem_nameTemp]
+
:; ⤷ <code>[gn:act_resetVariables]|[true;@variable/assetItem_assignment,@variable/assetItem_nameTemp]</code>
</code>
 
 
<hr>
 
<hr>

Revision as of 15:55, 12 July 2017

gn:act_resetVariables

Description
Action used to reset memory value holders for variables to defaultValue values.
Action returns
void|boolean

Action signatures

Reset variables

[gn:act_resetVariables]|[target{n}]
Parameter Description
target{n} target where the value will be reset

Example

@variable/assetItem_assignment,@variable/assetItem_nameTemp - variable
[gn:act_resetVariables]|[@variable/assetItem_assignment,@variable/assetItem_nameTemp]

Reset all except specific variables

[gn:act_resetVariables]|[keyword;target{n}]
Parameter Description
keyword boolean true value which if present, it will retain values of mentioned variables in action and reset all others
target{n} target where the value will be reset

Example

@variable/assetItem_assignment,@variable/assetItem_nameTemp - variable

[gn:act_resetVariables]|[true;@variable/assetItem_assignment,@variable/assetItem_nameTemp]