setAllStates: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function setAllSates== Sets all of the Token:Token States of the Token:Current Token to on (non zero) or off (0). ===Usage=== <source lang="mtmacro" line> [h: setAllStates(va...)
 
No edit summary
Line 1: Line 1:
==Function setAllSates==
==Function setAllSates==
Sets all of the [[Token:Token States|Token States]] of the [[Token:Current Token|Current Token]] to on (non zero)  or off (0).
Sets all of the [[Token:states|Token States]] of the [[Token:Current Token|Current Token]] to on (non zero)  or off (0).


===Usage===
===Usage===
Line 10: Line 10:


===Examples===
===Examples===
Set all [[Token:Token States|Token States]] on
Set all [[Token:states|Token States]] on
<source lang="mtmacro" line>
<source lang="mtmacro" line>
     [h: setAllStates(1)]
     [h: setAllStates(1)]
</source>
</source>
Set all [[Token:Token States|Token States]] off
Set all [[Token:states|Token States]] off
<source lang="mtmacro" line>
<source lang="mtmacro" line>
     [h: setAllStates(0)]
     [h: setAllStates(0)]
</source>
</source>

Revision as of 23:23, 21 December 2008

Function setAllSates

Sets all of the Token States of the Current Token to on (non zero) or off (0).

Usage

[h: setAllStates(val)]


Examples

Set all Token States on

    [h: setAllStates(1)]

Set all Token States off

    [h: setAllStates(0)]