Push.script: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
sierraw>Andrew Branscom m 2 revisions imported |
m 2 revisions imported |
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 16:55, 16 February 2025
The push.script command saves the script table pointer.
Syntax
push.script();
Remarks
This command saves the script pointer so that it can be restored later by the pop.script command.
A detailed discussion of scripts, and how to push and pop the pointer can be found in the AGI Scripts topic.
Possible Errors
Do not manipulate the script features of AGI unless you fully understand what you are doing, as it is easy to corrupt save game files if the script entries are not correct.
Example
Code:
push.script();
... [ some activities that add script entries
pop.script(); [ script pointer is reset
Technical Information
Required Interpreter Version: | Available in version 2.915 and above. |
Byte-Code Value: | 171 (0xAB hex) |