Adventure Game Interpreter Script is a proprietary licensed [[Bytecode Interpreter|bytecode interpreted]] programming language for adventure games written in [[3. Reference/Software/Programming Languages/C|C]] or [[Assembly Language]].
> The **Adventure Game Interpreter** (**AGI**) is a [game engine](https://en.wikipedia.org/wiki/Game_engine "Game engine") developed by [Sierra On-Line](https://en.wikipedia.org/wiki/Sierra_Entertainment "Sierra Entertainment"). The company originally developed the engine for _[King's Quest](https://en.wikipedia.org/wiki/King%27s_Quest "King's Quest")_ (1984)
# Notability
Predecessor to [[SCI Script]] and used throughout the 80s to develop many classic [[Sierra Games]] games.
> They employed it in 14 of their games between 1984 and 1989, before replacing it with a more sophisticated engine, [Sierra's Creative Interpreter](https://en.wikipedia.org/wiki/Sierra_Entertainment#1980s "Sierra Entertainment").
Used in the 90s and early 2ks by fan groups to develop their own games.
# Philosophy
Possibly also known as "Game Adaptation Language".
# Platform Support
AGI games are playable via [[ScummVM]].
# Features
## Syntax
```c
// AGI Logic Script
#include "defines.txt"
if (new_room) {
load.pic(room_no);
draw.pic(room_no);
discard.pic(room_no);;
set.horizon(50)
if ((prev_room_no == 1 ||
prev_room_no == 0 )) {
position(ego,6,163)
status.line.on();
accept.input();
}
}
```
# Tips
# Resources
- [AGI Studio](https://agistudio.sourceforge.net/)
> **QT AGI Studio**, formerly known as Linux AGI Studio, is a program that allows you to view, **create and edit AGI games**.
# References
- http://www.agidev.com/
- https://wiki.scummvm.org/index.php?title=AGIWiki/AGI_Studio
- https://www.dosdays.co.uk/topics/sierra_agi.php
- https://web.archive.org/web/20060820124644/http://eds.org/~david/agi/howto/
- https://web.archive.org/web/20060215125124/http://agisci.cjb.net/
- https://www.savagetaylor.com/2019/12/15/68k-macintosh-and-sierra-agi-games/
- http://agiwiki.sierrahelp.com/index.php?title=Game_Adaptation_Language
- https://antifandom.com/kingsquest/wiki/Game_Adaptation_Language
- https://web.archive.org/web/20060207165758/http://www.classicgaming.com/agisci/agiinfo.shtml
- https://web.archive.org/web/20060202003549/http://visualagi.cjb.net/
- https://web.archive.org/web/20031220141443/http://members.ozemail.com.au/~ptrkelly/agi/specs/index.html
- https://web.archive.org/web/20010424122835/http://www.algonet.se:80/~jmoller/sierra/
## Games
- https://www.mobygames.com/group/5313/game-engine-adventure-game-interpreter-agi/
- https://web.archive.org/web/20060820124622/http://eds.org/~david/agi/fanmade/