Game Development Community

Scripting tutorial

by Steve Lamperti · in Torque Game Engine · 09/16/2003 (4:55 pm) · 2 replies

I'm just getting started with trying to script, and I went through the first part of the scripting tutorial. After correcting a few minor errors, I got the script in the first part to compile in the console. Interestingly, it doesn't seem to do anything. It declares a few functions, but it doesn't call them, so nothing happens. This is not really a very clear example for someone new, unless I am missing something. It should either include a call to one of the functions, or instructions how the user can call one of the functions.

If I am missing something, I would appreciate it if someone could enlighten me.

Thanks,

-Steve Lamperti

#1
09/17/2003 (1:16 am)
Honestly the best way to learn is trial and error. Im assuming your using Tribal IDE as your editing program, if not I would recommend you get it. Do a google search for it.

You'll want to start small, like for example udjusting datablocks and understanding the changes, then later you can add new ones. It took me about 2 months of day to day scripting in Tribes 2 before I could script without the need for reference.

Look for Tribes 2 mod tuts, since both T2 and Torque are the same scripting engine most functions will work just fine, beside the calls to the engine Torque had removed.

If you need any help let me know by email and I'll try to give you some examples.
#2
09/17/2003 (8:40 am)
I'm not really asking about learning how to script, as I will continue to go through the tutorial, and read the scripts, and I am pretty confident that I will pick it up. What I am suggesting is that someone should consider if this first step of the tutorial ought to be revised to give the people going through it more feedback when they complete the step. As I mentioned, you complete the first step of the tutorial, and all you get is a script successfully loaded message. It would be more encouraging for the first time user to have something change in the window, or at least some messages in the console, as it implies will happen in the tutorial.