Game Development Community

Script Example Guide

by Areal Person · in Torque Game Engine · 08/24/2006 (9:31 am) · 6 replies

Hello,

I would like to start a "Torque Script Example Guide". It would contain example code snipits
showing how to implement basic/fundemental scripting features. The code snipits would
have instructions showing dependiencies & config setup.

Maybe I could put it on TDN, the problem I'm having is in finding very basic instructions on
various game/scripting features in a way thats easy to use. For example, How do you use a Spawn Sphere to have a bot spawn at that location. How to you setup mutipul bots ro roam at random etc.. etc...

I was thinking of putting these things in a "Feature.Lab" directory structure that would
show a working example of each solution.

That way a person would be able to easly use that specific feature in there game.

I need to do this because I'm new, but is this pratical and would it be good idea to
do this ?

Who would I contact at TDN to get instructions/support/permission to start a document page
of this nature ?

Also, if anyone has any example game scripts that they would like to throw my way
please do.

If there is already a link to this please give it to me.

Thanks,

#1
08/24/2006 (9:38 am)
This would be useful for people who didnt know what was going on.
A Snippet Library of Basic Script functions.
I like your idea.
#2
08/24/2006 (10:27 am)
Areal, I am working on a Beginner Guide for Torque. Some things I have is score, AI basic, adding various resource found on GG site, setskin, spells and teleport. This is just a few, I am up to about 50 right now. If you would like to work together drop me line. My goal is to draw more of the nonprogramming people to the fun of Torque gaming. Someone who wants to do very little coding to get a simple game running. The reason I start this is I have some friends who are not coders ask me to put some stuff together.
#3
08/25/2006 (9:33 am)
Ok, I've update my project plan, please see my Blog... @

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=11163

Thanks,
-Areal
#4
11/29/2006 (10:24 am)
This is great idea! This is what is missing from TDN to make it worth while. I would like to see a code snippet for each and every command in TorqueScript. All code snippets I find, I would like to send to you. How do I do this?
#5
11/29/2006 (10:26 am)
My plan is to extend the TGB Reference to include examples for every single function/method in their :) Hopefully this can migrate over to TGE eventualy as well.
#6
11/29/2006 (10:32 am)
@Matthew: That is good news. Can you find someone to do the same thing for TGE?

If you do not buy TGE, TDN blocks access to any of the documents for it even though it shows up in their search engine.