getStrProp

From RPTools Wiki
Revision as of 11:04, 10 March 2009 by Verisimilar (talk | contribs) (Added version.)
Jump to navigation Jump to search

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
[h: weapon = "name=longsword; damage=1d8; maxdamage=8"]
Name of Weapon = [r: getStrProp(weapon, "name")]
Returns longsword.