Last.cel: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
m (3 revisions imported) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 00:07, 3 June 2024
The last.cel command stores the last cel number of a screen object's current loop in a variable.
Syntax
Remarks
Variable vB is set to the last cel number for a screen object's current loop. Because the first cel is numbered 0, the last cel will be the cel count - 1.
Possible Errors
AGI does not check that screen object number oA is a valid object. If it is not, the returned value will be meaningless.
Example
Code:
<syntaxhighlight lang="agi"> last.cel(o0, v51); [ v51 is set to last cel of ego's current loop </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 49 (0x31 hex) |