Pop.script
From AGI Wiki
Revision as of 07:23, 15 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''pop.script''' command restores the script table pointer. == Syntax == pop.script(); == Remarks == This command should only be called after '''push.script''', wh...")
The pop.script command restores the script table pointer.
Syntax
pop.script();
Remarks
This command should only be called after push.script, which saves the current script table pointer.
pop.script restores the script table pointer. Subsequent script entries will be added at this location. See the AGI Scripts topic for additional information.
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:
<syntaxhighlight lang="agi"> push.script(); ... [ some activities that add script entries pop.script(); [ script pointer is reset </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in version 2.915 and above. |
Byte-Code Value: | 172 (0xAC hex) |