summaryrefslogtreecommitdiff
path: root/doc/scripting.texi
blob: be748c5d0d28773086af4a14085662e5f3af03a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@node Scripting
@chapter Scripting

The ability to write scripts is very important for most games. Scripts
are short programs that modify game state. In an RPG, one might want
to write a script that causes an NPC to walk up to the player and
begin a conversation with them. Sly allows for easy, linear
script writing by using cooperative multitasking, also known as
coroutines. Agendas are used to schedule scripts to be run at distinct
points in game time, and actions provide an API to describe
transformations that happen over a period of game time.

@menu
* Coroutines::
* Agendas::
* Actions::
@end menu

@include scripting/coroutine.texi
@include scripting/agenda.texi
@include scripting/actions.texi