Get.priority: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
m 1 revision imported
Andrew Branscom (talk | contribs)
m 2 revisions imported
 
(No difference)

Latest revision as of 15:32, 16 February 2025

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