getLibProperty

From RPTools Wiki
Revision as of 21:56, 1 December 2008 by Craig (talk | contribs) (New page: ==Function getLibProperty== {{ProposedChange}} {{TrustedOnlyFunction}} Returns the value of a Token:token property from a Token:library token. If the lib argument is not specifie...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function getLibProperty

 Note: This refers to a proposed change that has not been implemented in the main code base yet.

This function can only be called from a trusted macro

Returns the value of a token property from a library token. If the lib argument is not specified then the token property will be retrieved from the library token that the macro is currently running from.

Usage

[h: val = getLibProperty(name)]
[h: val = getLibProperty(name, lib)]

Examples

To get the "init" token property from the library token that a macro is running from use.

[getLibProperty("init")]

To get the "init" token property from a library token called "lib:Attacks" use.

[getLibProperty("init", "lib:Attacks")]