isNPC: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=isNPC
|name=isNPC
|version=1.3b48
|description=
|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.
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: npc = isNPC()]
isNPC()
</source>
</source>



Revision as of 12:00, 10 March 2009

isNPC() Function

Introduced in version 1.3b48
Returns 1 if the Current Token is a NPC or 0 if it is not.

Usage

isNPC()

Example

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