setLibProperty: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function setLibProperty==
{{MacroFunction
 
|name=setLibProperty
|description
Sets the [[Token:token_property|Token Property]] on a [[Token:library_token|Library Token]]. if the name of the [[Token:library_token|Library Token]] is not specified then the [[Token:token_property|Token Property]] is set on the [[Token:library_token|Library Token]] that the macro is running from.
Sets the [[Token:token_property|Token Property]] on a [[Token:library_token|Library Token]]. if the name of the [[Token:library_token|Library Token]] is not specified then the [[Token:token_property|Token Property]] is set on the [[Token:library_token|Library Token]] that the macro is running from.


 
|usage=
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setLibProperty(name, value)]
[h: setLibProperty(name, value)]
Line 10: Line 10:
</source>
</source>


===Examples===
|examples=
Set a property on the [[Token:library_token|Library Token]] that the macro is running from.
Set a property on the [[Token:library_token|Library Token]] that the macro is running from.
<source lang="mtmacro" line>
<source lang="mtmacro" line>
Line 20: Line 20:
[h: setLibProperty("defaultStrength", 10, "Lib:Character")]
[h: setLibProperty("defaultStrength", 10, "Lib:Character")]
</source>
</source>
}}
[[Category:Property Function]]
[[Category:Token Library Function]]

Revision as of 04:11, 9 March 2009

setLibProperty() Function

Usage

[h: setLibProperty(name, value)]
[h: setLibProperty(name, value, libName)]

Examples

Set a property on the Library Token that the macro is running from.
[h: setLibProperty("defaultStrength", 10)]

Set a property on a specifig Library Token.

[h: setLibProperty("defaultStrength", 10, "Lib:Character")]