isTrusted

From RPTools Wiki
Revision as of 15:56, 6 December 2008 by Craig (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function isTrusted

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

Usage

[h: trusted = isTrusted()]


Example

The following example will print out the names of all the tokens on the current map not covered by fog of war.

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