setPC: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function setPC== {{TrustedOnlyFunction}} Sets if the Token:Current Token is a Token:PC Token or not. If the value is 0 then the Token:Current Token is set to a [[Token:NPC...)
 
Line 1: Line 1:
==Function setPC==
==Function setPC==
{{TrustedOnlyFunction}}
{{TrustedOnlyFunction}}
Sets if the [[Token:Current Token|Current Token]] is a [[Token:PC Token|PC Token]] or not. If the value is 0 then the [[Token:Current Token|Current Token]] is set to a [[Token:NPC Token|NPC Token]] otherwise it is set to a [[Token:PC Token|PC Token]].
Sets if the [[Token:Current Token|Current Token]] to a [[Token:PC Token|PC Token]].




===Usage===
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setPC(value)]
[h: setPC()]
</source>
</source>

Revision as of 08:25, 2 January 2009

Function setPC

This function can only be called from a trusted macro

Sets if the Current Token to a PC Token.


Usage

[h: setPC()]