Just Learn Torque Script Or C++
Look at the scripts for those then. Learn what things mean and do. From what I've heard, scripting is more of a self-taught process, but I've never scripted, so don't take my word on that.
If you have no background with programming, or anything like that, then you will never know how.