Anime Studio uses
lua language for scripts.
The
script reference for Moho (Anime Studio) is sticky at the Scripting sub forum.
There are three main kind of scripts:
Menu scripts: They are launched when the menu entry is clicked. Only the entries under "Script" menu are really scripted orders. The other menu entries are built in features (machine language). You can open one of the scripts (go to scripts/Menu in your computer) and see how the code is written. Usually menu scripts make a single action based on current selection. They can be also converted into button tools when it is a tool of only a click (for example the button to make "Peak" a point).
Tool scripts: similar to the other ones but usually they have continuous interaction with the user by means of the mouse and keyboard. For example the "Add Point" tool.
Embedded scripts: Those scripts are stick into a particular layer and are run on every frame (well I think they run more times but this is not documented, I think). For further information see
this post.
Best
-G
PS: Also several users have made its own scripts. You can download them and see how are they written. And don't loose macton and fazek ones!!!!