Pop.script

From AGI Wiki
Jump to navigationJump to search

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:
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: 172 (0xAC hex)

See Also

System Commands
push.script
AGI Scripts