getStrProp

From RPTools Wiki
Revision as of 23:49, 1 December 2008 by Craig (talk | contribs) (New page: ==Function getStrProp== Returns the value associated with a key from the specified Macros:string property list. ==Usage== <source lang="mtmacro" line> [h: macros = getStrProp(propL...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function getStrProp

Returns the value associated with a key from the specified string property list.

Usage

[h: macros = getStrProp(propList, key)]


Examples

To get the name from a weapon string property list

[h: weapon = "name=longsword; damage=1d8; maxdamage=8"]
Name of Weapon = [r: getStrProp(weapon, "name"]

Returns "longsword".