See official documentation of TIScript in the Terrarium.