setLibProperty: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
|||
Line 1: | Line 1: | ||
= | {{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= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: setLibProperty(name, value)] | [h: setLibProperty(name, value)] | ||
Line 10: | Line 10: | ||
</source> | </source> | ||
|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")]