getStrProp: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Functions:getStrProp moved to getStrProp) |
Verisimilar (talk | contribs) m (Added version.) |
||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=getStrProp | |name=getStrProp | ||
|version=1.3b42 | |||
|description= | |description= | ||
Returns the value associated with a key from the specified [[Macros:string property list|string property list]]. | Returns the value associated with a key from the specified [[Macros:string property list|string property list]]. | ||
Line 6: | Line 7: | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
getStrProp(propList, key) | |||
</source> | </source> | ||
Revision as of 11:04, 10 March 2009
getStrProp() Function
• Introduced in version 1.3b42
Returns the value associated with a key from the specified string property list.
Usage
getStrProp(propList, key)
Example
To get the name from a weapon string property list
Returns
[h: weapon = "name=longsword; damage=1d8; maxdamage=8"]
Name of Weapon = [r: getStrProp(weapon, "name")]
longsword
.