setStrProp

From RPTools Wiki
Revision as of 15:34, 13 December 2008 by Craig (talk | contribs) (New page: ==Function setStrProp== Returns a[Macros:string property list|string property list]] with the key set to the value passed in. ==Usage== <source lang="mtmacro" line> [h: props = setStrPr...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function setStrProp

Returns a[Macros:string property list|string property list]] with the key set to the value passed in.

Usage

[h: props = setStrProp(propList, key, value)]


Examples

[h: weapon = "name=longsword; damage=1d8; maxdamage=8"]
[h: weapon = setStrProp(weapon, "value", 10)]

Returns "longsword".