isNPC: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
(Applied Template:MacroFunction)
Line 1: Line 1:
==Function isNPC==
{{MacroFunction
 
|name=isNPC
|description=
Returns 1 if the [[Token:Current Token|Current Token]] is a NPC or 0 if it is not.
Returns 1 if the [[Token:Current Token|Current Token]] is a NPC or 0 if it is not.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: npc = isNPC()]
[h: npc = isNPC()]
</source>
</source>


 
|example=
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r, if(isNPC()): "Hello I am an NPC"]
[r, if(isNPC()): "Hello I am an NPC"]
</source>
</source>
}}
[[Category:Token Function]]

Revision as of 20:53, 8 March 2009

isNPC() Function

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

Usage

[h: npc = isNPC()]

Example

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