setLibProperty: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Added version.) |
No edit summary |
||
Line 21: | Line 21: | ||
[h: setLibProperty("defaultStrength", 10, "Lib:Character")] | [h: setLibProperty("defaultStrength", 10, "Lib:Character")] | ||
</source> | </source> | ||
Known Bug: note that using setLibProperty during onCampaignLoad and not being on the map where the lib resides, will result in a duplicate of that lib on the current map! | |||
}} | }} | ||
[[Category:Property Function]] | [[Category:Property Function]] | ||
[[Category:Token Library Function]] | [[Category:Token Library Function]] |
Revision as of 13:07, 14 October 2015
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.
Known Bug: note that using setLibProperty during onCampaignLoad and not being on the map where the lib resides, will result in a duplicate of that lib on the current map!
[h: setLibProperty("defaultStrength", 10)]
Set a property on a specifig Library Token.
[h: setLibProperty("defaultStrength", 10, "Lib:Character")]