The AGS scripting system allows you to write a mini-program, giving you great control over your game.
Scripting tutorial part 1 Scripting tutorial part 2 Upgrading to AGS 2.7 Pointers in AGS Upgrading to AGS 2.71 Calling global functions from local scripts The script header String formatting Multiple Scripts Understanding blocking scripts Dynamic Arrays Extender functions Game variables Predefined global script functions Custom dialog options rendering Built-in enumerated types Script language keywords Character functions and properties DateTime functions and properties Dialog functions and properties DialogOptionsRenderingInfo functions and properties DrawingSurface functions and properties DynamicSprite functions and properties File functions and properties Game / Global functions GUI functions and properties GUI control functions and properties GUI Button functions and properties GUI InvWindow functions and properties GUI Label functions and properties GUI List Box functions and properties GUI Slider properties GUI Text Box functions and properties Hotspot functions and properties Inventory item functions and properties Maths functions and properties Mouse functions and properties Multimedia functions Object functions and properties Overlay functions and properties Palette functions Parser functions Region functions and properties Room functions Screen functions String functions System functions and properties Text display / Speech functions ViewFrame functions and properties SCUMM_VERBCOIN_GUI functions