This video will take you through the steps of creating your first behavior in Torque Script. The behavior you make is an effect that scales an object in a pulsing movement which can be used for a power up. Enjoy!
Behavior Template
if (!isObject(PowerUpBehavior))
{
%template = new BehaviorTemplate(PowerUpBehavior);
%template.friendlyName = "Power Up (Scale)";
%template.behaviorType = "Effect";
%template.description = "Scales an object between two bounds";
//put your new behavior fields here.
//%template.addBehaviorField(Test, "Description", float, 0);
}