setLibProperty: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=setLibProperty
|name=setLibProperty
|version=1.3b48
|description
|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.
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setLibProperty(name, value)]
setLibProperty(name, value)
[h: setLibProperty(name, value, libName)]
setLibProperty(name, value, libName)
</source>
</source>



Revision as of 13:36, 10 March 2009

setLibProperty() Function

Introduced in version 1.3b48

Usage

setLibProperty(name, value)
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")]