This is a list of all AGI commands and their argument types/. The function and name of some of these is not yet known. Check out agicommands.pas the "sample code" section for a delphi/pascal unit containing this information.
No. | Name | No. | arg 1 | arg 2 | arg 3 | arg 4 | arg 5 | arg 6 | arg 7 |
---|---|---|---|---|---|---|---|---|---|
01 | equaln | 2 | var | num | |||||
02 | equalv | 2 | var | var | |||||
03 | lessn | 2 | var | num | |||||
04 | lessv | 2 | var | var | |||||
05 | greatern | 2 | var | num | |||||
06 | greaterv | 2 | var | var | |||||
07 | isset | 1 | flag | ||||||
08 | issetv | 1 | var | ||||||
09 | has | 1 | I obj | ||||||
0A | obj.in.room | 2 | I obj | var | |||||
0B | posn | 5 | S obj | num | num | num | num | ||
0C | controller | 1 | cntrl | ||||||
0D | have.key | 0 | |||||||
0E | said | - | |||||||
0F | compare.strings | 2 | string | string | |||||
10 | obj.in.box | 5 | S obj | num | num | num | num | ||
11 | center.posn | 5 | S obj | num | num | num | num | ||
12 | right.posn | 5 | S obj | num | num | num | num |
No. | Name | No. | arg 1 | arg 2 | arg 3 | arg 4 | arg 5 | arg 6 |
---|---|---|---|---|---|---|---|---|
00 | return | 0 | ||||||
01 | increment | 1 | var | |||||
02 | decrement | 1 | var | |||||
03 | assignn | 2 | var | num | ||||
04 | assignv | 2 | var | var | ||||
05 | addn | 2 | var | num | ||||
06 | addv | 2 | var | var | ||||
07 | subn | 2 | var | num | ||||
08 | subv | 2 | var | var | ||||
09 | lindirectv | 2 | var | var | ||||
0A | rindirect | 2 | var | var | ||||
0B | lindirectn | 2 | var | num | ||||
0C | set | 1 | flag | |||||
0D | reset | 1 | flag | |||||
0E | toggle | 1 | flag | |||||
0F | set.v | 1 | var | |||||
10 | reset.v | 1 | var | |||||
11 | toggle.v | 1 | var | |||||
12 | new.room | 1 | num | |||||
13 | new.room.v | 1 | var | |||||
14 | load.logics | 1 | num | |||||
15 | load.logics.v | 1 | var | |||||
16 | call | 1 | num | |||||
17 | call.v | 1 | var | |||||
18 | load.pic | 1 | var | |||||
19 | draw.pic | 1 | var | |||||
1A | show.pic | 0 | ||||||
1B | discard.pic | 1 | var | |||||
1C | overlay.pic | 1 | var | |||||
1D | show.pri.screen | 0 | ||||||
1E | load.view | 1 | num | |||||
1F | load.view.v | 1 | var | |||||
20 | discard.view | 1 | num | |||||
21 | animate.obj | 1 | S obj | |||||
22 | unanimate.all | 0 | ||||||
23 | draw | 1 | S obj | |||||
24 | erase | 1 | S obj | |||||
25 | position | 3 | S obj | num | num | |||
26 | position.v | 3 | S obj | var | var | |||
27 | get.posn | 3 | S obj | var | var | |||
28 | reposition | 3 | S obj | var | var | |||
29 | set.view | 2 | S obj | num | ||||
2A | set.view.v | 2 | S obj | var | ||||
2B | set.loop | 2 | S obj | num | ||||
2C | set.loop.v | 2 | S obj | var | ||||
2D | fix.loop | 1 | S obj | |||||
2E | release.loop | 1 | S obj | |||||
2F | set.cel | 2 | S obj | num | ||||
30 | set.cel.v | 2 | S obj | var | ||||
31 | last.cel | 2 | S obj | var | ||||
32 | current.cel | 2 | S obj | var | ||||
33 | current.loop | 2 | S obj | var | ||||
34 | current.view | 2 | S obj | var | ||||
35 | number.of.loops | 2 | S obj | var | ||||
36 | set.priority | 2 | S obj | num | ||||
37 | set.priority.v | 2 | S obj | var | ||||
38 | release.priority | 1 | S obj | |||||
39 | get.priority | 2 | S obj | var | ||||
3A | stop.update | 1 | S obj | |||||
3B | start.update | 1 | S obj | |||||
3C | force.update | 1 | S obj | |||||
3D | ignore.horizon | 1 | S obj | |||||
3E | observe.horizon | 1 | S obj | string | ||||
3F | set.horizon | 1 | num | string | ||||
40 | object.on.water | 1 | S obj | string | ||||
41 | object.on.land | 1 | S obj | string | ||||
42 | object.on.anything | 1 | S obj | string | ||||
43 | ignore.objs | 1 | S obj | string | ||||
44 | observe.objs | 1 | S obj | string | ||||
45 | distance | 3 | S obj | S obj | var | |||
46 | stop.cycling | 1 | S obj | |||||
47 | start.cycling | 1 | S obj | |||||
48 | normal.cycle | 1 | S obj | |||||
49 | end.of.loop | 2 | S obj | flag | ||||
4A | reverse.cycle | 1 | S obj | |||||
4B | reverse.loop | 2 | S obj | flag | ||||
4C | cycle.time | 2 | S obj | var | ||||
4D | stop.motion | 1 | S obj | |||||
4E | start.motion | 1 | S obj | |||||
4F | step.size | 2 | S obj | var | ||||
50 | step.time | 2 | S obj | var | ||||
51 | move.obj | 5 | S obj | num | num | num | flag | |
52 | move.obj.v | 5 | S obj | var | var | num | flag | |
53 | follow.ego | 3 | S obj | num | flag | |||
54 | wander | 1 | S obj | |||||
55 | normal.motion | 1 | S obj | |||||
56 | set.dir | 2 | S obj | var | ||||
57 | get.dir | 2 | S obj | var | ||||
58 | ignore.blocks | 1 | S obj | |||||
59 | observe.blocks | 1 | S obj | |||||
5A | block | 4 | num | num | num | num | ||
5B | unblock | 0 | ||||||
5C | get | 1 | I obj | |||||
5D | get.v | 1 | var | |||||
5E | drop | 1 | I obj | |||||
5F | put | 2 | I obj | var | ||||
60 | put.v | 2 | var | var | ||||
61 | get.room.v | 2 | var | var | ||||
62 | load.sound | 1 | num | |||||
63 | sound | 2 | num | flag | ||||
64 | stop.sound | 0 | ||||||
65 | 1 | message | ||||||
66 | print.v | 1 | var | |||||
67 | display | 3 | num | num | message | |||
68 | display.v | 3 | var | var | var | string | ||
69 | clear.lines | 3 | num | num | num | string | ||
6A | text.screen | 0 | string | |||||
6B | graphics | 0 | string | |||||
6C | set.cursor.char | 1 | message | string | ||||
6D | set.text.attribute | 2 | num | num | string | |||
6E | shake.screen | 1 | num | string | ||||
6F | configure.screen | 3 | num | num | num | string | ||
70 | status.line.on | 0 | string | |||||
71 | status.line.off | 0 | string | |||||
72 | set.string | 2 | string | message | string | |||
73 | get.string | 5 | string | message | num | num | num | |
74 | word.to.string | 2 | word | string | ||||
75 | parse | 1 | string | |||||
76 | get.num | 2 | message | var | ||||
77 | prevent.input | 0 | ||||||
78 | accept.input | 0 | ||||||
79 | set.key | 3 | num | num | cntrl | |||
7A | add.to.pic | 7 | num | num | num | num | num | num |
7B | add.to.pic.v | 7 | var | var | var | var | var | var |
7C | status | 0 | ||||||
7D | save.game | 0 | ||||||
7E | restore.game | 0 | ||||||
7F | init.disk | 0 | ||||||
80 | restart.game | 0 | ||||||
81 | show.obj | 1 | num | |||||
82 | random | 3 | num | num | var | |||
83 | program.control | 0 | ||||||
84 | player.control | 0 | ||||||
85 | obj.status.v | 1 | var | |||||
86 | quit | 1 | num | (0 args for 2.089) | ||||
87 | show.mem | 0 | ||||||
88 | pause | 0 | ||||||
89 | echo.line | 0 | ||||||
8A | cancel.line | 0 | ||||||
8B | init.joy | 0 | ||||||
8C | toggle.monitor | 0 | ||||||
8D | version | 0 | ||||||
8E | script.size | 1 | num | |||||
8F | set.game.id | 1 | message | |||||
90 | log | 1 | message | |||||
91 | set.scan.start | 0 | ||||||
92 | reset.scan.start | 0 | ||||||
93 | reposition.to | 3 | S obj | num | num | |||
94 | reposition.to.v | 3 | S obj | var | var | |||
95 | trace.on | 0 | ||||||
96 | trace.info | 3 | num | num | num | |||
97 | print.at | 4 | message | num | num | num | (3 args for versions before 2.400) | |
98 | print.at.v | 4 | message | var | var | var | (3 args for versions before 2.400) | |
99 | discard.view.v | 1 | var | |||||
9A | clear.text.rect | 5 | num | num | num | num | num | |
9B | set.upper.left | 2 | ??? | ??? | ||||
9C | set.menu | 1 | message | |||||
9D | set.menu.item | 2 | message | cntrl | ||||
9E | submit.menu | 0 | ||||||
9F | enable.item | 1 | cntrl | |||||
A0 | disable.item | 1 | cntrl | |||||
A1 | menu.input | 0 | ||||||
A2 | show.obj.v | 1 | var | |||||
A3 | open.dialogue | 0 | ||||||
A4 | close.dialogue | 0 | ||||||
A5 | mul.n | 2 | var | num | ||||
A6 | mul.v | 2 | var | var | ||||
A7 | div.n | 2 | var | num | ||||
A8 | div.v | 2 | var | var | ||||
A9 | close.window | 0 | ||||||
AA | unknown170 | 1 | ??? | |||||
AB | unknown171 | 0 | ||||||
AC | unknown172 | 0 | ||||||
AD | unknown173 | 0 | ||||||
AE | unknown174 | 1 | ??? | |||||
AF | unknown175 | 1 | ??? | |||||
B0 | unknown176 | 0 | (1 arg for AGI version 3.002.086) | |||||
B1 | unknown177 | 1 | ??? | |||||
B2 | unknown178 | 0 | ||||||
B3 | unknown179 | 4 | ??? | ??? | ??? | ??? | ||
B4 | unknown180 | 2 | ??? | ??? | ||||
B5 | unknown181 | 0 |
Top
You can help keep The Sierra Help Pages and its affiliates alive 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.
The Sierra Help Pages | Sierra Game Help | Walkthroughs | Hints, Tips & Spoilers | Utilities | Links | SHP Forums | Search
© 2013 to present The Sierra Help Pages. All rights reserved. All Sierra games, artwork and music © Sierra.