setHasSight: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function setHasSight== Sets if the Token:Current Token has Token:Sight or not. If the argument is 0 the Token:Current Token does not have Token:Sight if it is non zer...)
 
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function setHasSight==
{{MacroFunction
|name=setHasSight
|description=
Sets if the [[Token:Current Token|Current Token]] has [[Token:Sight|Sight]] or not. If the argument is 0 the [[Token:Current Token|Current Token]] does not have [[Token:Sight|Sight]] if it is non zero then it does.
Sets if the [[Token:Current Token|Current Token]] has [[Token:Sight|Sight]] or not. If the argument is 0 the [[Token:Current Token|Current Token]] does not have [[Token:Sight|Sight]] if it is non zero then it does.


You can not set the [[Token:Sight|Sight]] of a [[Token:NPC|NPC]] [[Token:Token|Token]].
You can not set the [[Token:Sight|Sight]] of a [[Token:NPC|NPC]] [[Token:Token|Token]].


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setHasSight(val)]
[h: setHasSight(val)]
</source>
</source>
}}
[[Category:Sight Function]]

Revision as of 03:56, 9 March 2009

setHasSight() Function

Sets if the Current Token has Sight or not. If the argument is 0 the Current Token does not have Sight if it is non zero then it does. You can not set the Sight of a NPC Token.

Usage

[h: setHasSight(val)]