Coding of objects is done with COWScript.
there is a coding manual which has the latest info on all of the COWScript commands.
read the coding manual
There are also a set of lessons that explain the basics of scripting (which is a sub-set of coding)
find the lessons