isTrusted: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function isTrusted== Returns 1 if this is running as a trusted macro or 0 if it is not. ===Usage=== <source lang="mtmacro" line> [h: trusted = isTrusted()] </s...)
 
No edit summary
Line 10: Line 10:


===Example===
===Example===
The following example will print out the names of all the [[Token:token|token]]s on the current [[Map:map|map]] not covered by [[Map:fog of war|fog of war]].
[[Map:fog of war|fog of war]].
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r, if(isTrusted()): "I can run the trusted functions! yay!")]
[r, if(isTrusted()): "I can run the trusted functions! yay!")]
</source>
</source>

Revision as of 16:05, 6 December 2008

Function isTrusted

Returns 1 if this is running as a trusted macro or 0 if it is not.

Usage

[h: trusted = isTrusted()]


Example

fog of war.

[r, if(isTrusted()): "I can run the trusted functions! yay!")]