|
|
Line 1: |
Line 1: |
− | [[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
| |
− | [[AGI Command Reference|AGI Command Reference Index]]<br />
| |
| | | |
− | <div align="center">
| |
− | Page:
| |
− | [[AGI Command Reference - Arithmetic Commands|1]] |
| |
− | [[AGI Command Reference - Commands to Load and unLoad Resources|2]] |
| |
− | [[AGI Command Reference - Program Control Commands|3]] |
| |
− | [[AGI Command Reference - Object Control Commands|4]] |
| |
− | [[AGI Command Reference - Object Description Commands|5]] |
| |
− | [[AGI Command Reference - Object Motion Control Commands|6]] |
| |
− | [[AGI Command Reference - Inventory Item Management Commands|7]] |
| |
− | [[AGI Command Reference - Picture Resource Management Commands|8]] |
| |
− | [[AGI Command Reference - Sound Resource Management Commands|9]] |
| |
− | [[AGI Command Reference - Text Management Commands|10]] |
| |
− | [[AGI Command Reference - String Management Commands|11]] |
| |
− | [[AGI Command Reference - Initialization Commands|12]] |
| |
− | [[AGI Command Reference - Menu Management Commands|13]] |
| |
− | [[AGI Command Reference - Test Commands|14]] |
| |
− | [[AGI Command Reference - Other Commands|15]] |
| |
− | [[AGI Command Reference - Unknown Commands|16]]
| |
− | </div><br />
| |
− |
| |
− | <div align="center"><span style="font-size: 22pt">Initialization Commands</span><br />
| |
− | ''By [[Chris Cromer]]''</div>
| |
− |
| |
− |
| |
− |
| |
− | == <br />set.key(s, c); ==
| |
− |
| |
− | <blockquote>Set interpreter's special key.<br />
| |
− | <br />
| |
− | :c - code (decimal number from 0 to 255);
| |
− | :s - if the key is a regular, or Ctrl+key pair, the ASCII code (for example, 0009h - TAB);
| |
− | :- if the key is functional or Alt+key pair, the corresponding scan-code in the high byte of s.<br />
| |
− | <br />
| |
− | For example, the scan code of F1 is 3b00h, Alt+Z - 2c00h, etc.</blockquote>
| |
− |
| |
− | == set.game.id(n); ==
| |
− |
| |
− | <blockquote>Message n is scanned by the interpreter and compared with its internal identifier. On mismatch, the program exits.</blockquote>
| |
− |
| |
− | == script.size(n); ==
| |
− |
| |
− | <blockquote>Sets the size of script table in bytes. Script table stores codes of some interpreter commands. It is needed to the interpreter can correctly reload resources when restore_game is executed.</blockquote>
| |
− |
| |
− | == trace.info(n, m, l); ==
| |
− |
| |
− | <blockquote>Sets the built-in debugger parameters n - number of Logic resource with command names. m, l - first line and height of the debugger window.</blockquote>
| |
− |
| |
− | == trace.on(); ==
| |
− |
| |
− | <blockquote>Turns on the debugger. In general, the debugger is turned on with Scroll Lock key when the command name table is loaded even if this command does not occur in the program.</blockquote>
| |
− |
| |
− | == log(n); ==
| |
− |
| |
− | <blockquote>This is a debugging command. It writes a log message in a file: Room [current room] Input line [current input line] followed by the message number n.</blockquote>
| |
− |
| |
− |
| |
− |
| |
− | <div align="center">
| |
− | Page:
| |
− | [[AGI Command Reference - Arithmetic Commands|1]] |
| |
− | [[AGI Command Reference - Commands to Load and unLoad Resources|2]] |
| |
− | [[AGI Command Reference - Program Control Commands|3]] |
| |
− | [[AGI Command Reference - Object Control Commands|4]] |
| |
− | [[AGI Command Reference - Object Description Commands|5]] |
| |
− | [[AGI Command Reference - Object Motion Control Commands|6]] |
| |
− | [[AGI Command Reference - Inventory Item Management Commands|7]] |
| |
− | [[AGI Command Reference - Picture Resource Management Commands|8]] |
| |
− | [[AGI Command Reference - Sound Resource Management Commands|9]] |
| |
− | [[AGI Command Reference - Text Management Commands|10]] |
| |
− | [[AGI Command Reference - String Management Commands|11]] |
| |
− | [[AGI Command Reference - Initialization Commands|12]] |
| |
− | [[AGI Command Reference - Menu Management Commands|13]] |
| |
− | [[AGI Command Reference - Test Commands|14]] |
| |
− | [[AGI Command Reference - Other Commands|15]] |
| |
− | [[AGI Command Reference - Unknown Commands|16]]
| |
− | </div><br />
| |
− |
| |
− | [[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
| |
− | [[AGI Command Reference|AGI Command Reference Index]]
| |
− |
| |
− | <span style="float: left">[[AGI Command Reference - String Management Commands|< Previous: String Management Commands]]</span><span style="float: right">[[AGI Command Reference - Menu Management Commands|Next: Menu Management Commands >]]</span>
| |
− |
| |
− |
| |
− |
| |
− | [[Category:Logic]]
| |
− | [[Category:Commands]]
| |
− | [[Category:References]]
| |
− | [[Category:Tutorials]]
| |
− | [[Category:Initialization]]
| |