Author Topic: Where can I learn TorqueScript  (Read 744 times)

I don't mean either Torque's or Blockland's API, but language syntax itself as it is not similar to any language I know.

The best way to learn the syntax is to observe someones scripts. Ask someone if you don't understand something. Try writing your own SIMPLE stuff, and see if you can learn from your attempt.

http://forum.blockland.us/index.php?topic=238007.0
This can help you learn some basics.

Isn't Torque modified C++? How is it so different from that?

The thing is TorqueScript isn't like C++ at all (save from curly braces marking code block).
Torque is written in C++, yes, but it uses custom scripting language. And while I'd love to have instead of it some fast script language (in terms of speed execution), like Lua, I know that this would mean rewritting all addons, so I just need to suck it and learn TorqueScript.

If/loops syntax is totally different from what I've seen. @Aware, I know this thread and I'll be using it in future, but it explains Blockland's API, not TorqueScript's syntax.