Get.priority

From AGI Wiki
Revision as of 15:04, 7 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''get.priority''' command stores the current priority of a screen object in a variable. == Syntax == get.priority(obj oA, var...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The get.priority command stores the current priority of a screen object in a variable.

Syntax

get.priority(obj oA, var vPRI);

Remarks

Variable vPRI is set to the priority of screen object oA.

Possible Errors

AGI does not check that object number oA is a valid screen object. If it is not, the returned value will be meaningless.

Example

Code:
get.priority(o1, v50);
print("Object 1 priority is %v50);

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 57 (0x39 hex)

See Also

set.priority
set.priority.v