isNPC: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function isNPC== Returns 1 if the token is a NPC or 0 if it not. ===Usage=== <source lang="mtmacro" line> [h: npc = isNPC()] </source> ===Examples=== <source lang="mtmacro" line> [r,...)
 
No edit summary
Line 1: Line 1:
==Function isNPC==
==Function isNPC==


Returns 1 if the token is a NPC or 0 if it not.
Returns 1 if the [[Token:token|token]] is a NPC or 0 if it not.


===Usage===
===Usage===

Revision as of 15:28, 6 December 2008

Function isNPC

Returns 1 if the token is a NPC or 0 if it not.

Usage

[h: npc = isNPC()]


Examples

[r, if(isNPC()): "Hello I am an NPC"]