AGI adds a script entry to the script stack each time a picture resource is unloaded.
Because of the way that AGI manages memory on the heap, resources must be unloaded in reverse order of the way they were originally loaded, or unexpected results may occur.
[ load and display the current room's picture: load.pic(currentRoom); [ first load the picture resource draw.pic(currentRoom); [ then draw the picture to memory discard.pic(currentRoom); [ resource no longer needed, so discard it ... show.pic(); [ now display the picture on screen
|Required Interpreter Version:||Available in all AGI versions.|
|Byte-Code Value:||27 (0x1B hex)|