Author Topic: is there a good resource for torquescript syntax and inbuilt functions?  (Read 1372 times)

i know "google it" but i'm more curious to where y'all learn it effectively. i know there's readthedocs for 3d and blah blah yeah i don't wanna waste my time if it's not effective
« Last Edit: May 29, 2022, 02:46:31 PM by New Years »

Welcome to blockland where everyone encourages you to script but no-one gives a forget to teach you how. I managed to learn how the system works after I learned MATlab for my degree and looked over default blockland code (I think I used weapon_gun).  Eventually, I got to figure out the built-in functions as well as how they work.
« Last Edit: May 29, 2022, 03:30:48 PM by shamester »

I originally used
docs.garagegames.com/tgea/official/content/documentation/Scripting%20Reference/Introduction/TorqueScript.html

but sadly the link is now dead??!

next best thing might be https://torque-3d.readthedocs.io/en/latest/script/languageref.html
or even
https://bldocs.readthedocs.io/en/latest/

BL uses it's own odd mix of TGEA and T3D functions - mainly any function you want to find out can be traced through console by using trace(1); and then trigger that action in-game...but the scope of some functions are actually limited. For some things, it's pretty much a guessing game of trial and error once you get the hang of the syntax or just try the code lol. Torque has it's quirks and downsides.. BL uses a modified version of such with it's own custom functions and such which doesn't make it any easier to discover the most simplistic of functions at times considering it has no OFFICIAL documentation

https://buildmedia.readthedocs.org/media/pdf/torque3d/3.5/torque3d.pdf may help a little but the majority of blockland documentation is right here on the forums provided by various modders. The only other advice I can give is to ask others who have experience coding for BL on a place like the BCC discord or message an add-on developer directly for help.

Welcome to blockland where everyone encourages you to script but no-one gives a forget to teach you how. I managed to learn how the system works after I learned MATlab for my degree and looked over default blockland code (I think I used weapon_gun).  Eventually, I got to figure out the built-in functions as well as how they work.
looking at default add-ons can definitely help just to get a general understanding of the code format and how things work, but I think it's wrong to assume that nobody gives a forget to teach you how - in my experience I've both had help from people to learn new things and also helped others learn new things
« Last Edit: June 10, 2022, 08:13:01 AM by Goth77 »

I originally used
docs.garagegames.com/tgea/official/content/documentation/Scripting%20Reference/Introduction/TorqueScript.html

but sadly the link is now dead??!
Garage Games shut down a while back, now all that's left is Torque 3D and Torque 2D, and all of those old documents and wiki are gone, but the BCC Content Creators discord probably has backups and/or alternatives

I think someone was archiving scatteredspace and garagegames sites a little while ago? maybe kenko, not sure. garagegames is definitely the site to use for this though

i know "google it" but i'm more curious to where y'all learn it effectively. i know there's readthedocs for 3d and blah blah yeah i don't wanna waste my time if it's not effective
This is how I got boots off the ground. Read this front to back and you'll know all the needed syntax. Inbuilt functions you can find 90% you'll need through .dump(); relative to what you want to do to the thing.

https://files.blockland.online/Documentation/Mr._Wallet%27s_Blockland_Scripting_for_Dummies.pdf
« Last Edit: June 10, 2022, 08:42:53 PM by Rendergoi »


hey gamers, didn't see the updates on this thread until today. unironically thanks for the pointers