isNPC: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Verisimilar (talk | contribs) (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
= | {{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= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: npc = isNPC()] | [h: npc = isNPC()] | ||
</source> | </source> | ||
|example= | |||
<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"]