Home | AGI Documentation | AGI Tutorials | AGI Tools | AGI Wiki | Community

AGI Command Reference

This is a tutorial for AGI Programming if you have any questions post them at sciprogramming.com/

Thanks to the Sarien team and to Nick Sonneveld for some info on the unknown commands.

Page: 1 2 [ 3 ] 4 5 6 7 8 9 10 11 12 13 14 15 16

III Program Control Commands

new.room command is one of the most powerful commands of the interpreter. It is used to change algorithms of the object behavior, props, etc. Automatic change of EGO coordinates imitates moving into a room adjacent to the edge of the initial one.
[Sounds awkward but that's what it says.]
The format of the command:

new.room(n); new.room.v(n);

These commands do the following:

call(n); call.v(n);

Subroutine call commands

LOGIC resource number n (or number i where i the value of Var(n)) is executed as a subroutine. If the logic with the given ID is not loaded in memory, it is temporarily loaded and discarded after returning from the call (this takes extra time). call command does not change any variables or flags.

return();

This command returns control to the interpreter if it is executed in Logic(0), or to the command following the call command which called the current logic.

jump [label]

This command unconditionally transfers control to a command starting with a symbol combination <label> within the same logic.

set.scan.start reset.scan.start

Normally, when a logic is called using call command, execution begins at the first instruction. set_scan_start command sets the entry point at the command following it, while reset_scan_start returns entry point to the beginning.

Page: 1 2 [ 3 ] 4 5 6 7 8 9 10 11 12 13 14 15 16
 


by helping to defray some of the costs of hosting this site. If it has been of help to you, please consider contributing to help keep it online.
Thank you.
pixe
Top

© 2013 to present The Sierra Help Pages. All rights reserved. All Sierra games, artwork and music © Sierra.