Welcome to the Creatures Wiki! Log in and join the community.

Difference between revisions of "READ"

From Creatures Wiki
Jump to navigation Jump to search
m
 
Line 16: Line 16:
 
* [[REAQ]], [[REAN]]
 
* [[REAQ]], [[REAN]]
 
* [[WILD]]
 
* [[WILD]]
 +
 +
==External links==
 +
*[https://web.archive.org/web/20160709010937/http://armaina.com/xan/creatures/caos_vars.html Variable types] (includes some information on READ)
  
 
[[Category:C3 CAOS Commands]]
 
[[Category:C3 CAOS Commands]]
 
[[Category:CAOS:Catalogue]]
 
[[Category:CAOS:Catalogue]]

Latest revision as of 02:37, 26 September 2016

READ is a CAOS command for Catalogue access.

Usage[edit]

Syntax: READ tagname (string) offset (int)

Returns, as a string, the relevant field of the tagname tag in the catalogue. The first field has offset 0. tagname is case-sensitive.

Before querying with READ you should check the tag exists with REAQ tagname, and ensure that offset is in the range from 0 to (REAN tagname)-1. Otherwise the command fails with a Catalogue error.

If you are querying Agent Help it is preferable for most cases to use WILD instead of READ. This will provide fallback in case of undocumented agents.

Editnorn.png This article about a CAOS command or function needs further examples.

See also[edit]

External links[edit]