Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.getItemAttribute
Syntax
Player.getItemAttribute(theItem, theAttribute)
Parameters
theItem is either a name or ID number.
theAttribute is a named attribute.
Action
Gets the specified attribute of the item.
Returns
A string or number, depending on the attribute.
Examples
with Player « ", attributes" was required in 1.0x but is optional in 1.1
getItemAttribute("OK", enabled)
with Player
getItemAttribute(14, bounds) « some items don't have names
Errors
The item does not exist or is not enabled.
The attribute does not exist.
Notes
- For a complete list of attributes for each type of object, see the Attributes section of Chapter 6.
- Use Player's balloon help to determine the ID number (if any) and location.
- By default, Player matches only the number of characters specified in the verb parameter. This feature has the benefit of ignoring trailing punctuation, but will occasionally find a false match.
- By default, name matching is not case sensitive.
See Also
Player.getItemInfo
Player.itemExists
Player.getMenuAttribute
Player.getWindowAttribute
Player.setCompleteMatch
Player.outlineDialog
Keywords
query[12] customItems
getItemInfo
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.