Type
¶
Used to get information on data types.
Forms¶
type Type[Name]
¶
- Retrieve metadata about the type with given
Name
Associated DataTypes¶
type¶
- Contains information about data types
-
Members
int
InheritedType
¶-
Type of inherited type, if applicable.
Ex: character inherits from spawn, so its inherited type will be spawn.
string
Name
¶- Type name
string
Member[N]
¶- Member name based on an internal ID number (based on 1 through N, not all values will be used)
int
Member[name]
¶- Member internal ID number based on name (will be a number from 1 to N)
string
(To String)
¶- Same as Name
-
Usage¶
Determines if a member of a type exists:
/echo ${Type[spawn].Member[ID]}
Enumerate members of a type using a loop:
/for n 1 to 100
/echo ${Type[spawn].Member[${n}]}
/next n