Author Topic: Need a teacher!  (Read 3262 times)

how the forget do you figure out what half of the stuff in this API does? do you just take a lucky guess or experiment with it or what?
The names are usually pretty self explanatory.

virtual int Client::SimObject::getGroup ()

It gets the group the object belongs to. Simple enough.

The best way to learn is to do.

Just try and figure it out; learn what you can through your own experiences rather than relying on someone to outline everything for you.

If you run into trouble, people are always glad to help in the Coding Help board. Just make sure to try.

Something I do when learning a new language is force myself to avoid skipping something.

When your trying to learn a new language (or even harder, learning your first), it can be really easy to get lazy.  Tons of information is being thrown at you, and you might understand a great deal of it, and you might not.  Starting at the basics is really important, but make sure you understand the basics before moving on to more advanced things.  Take time, read lines of code over again and try to understand why that echos that, or why this doesn't work.  It can be really easy to jump ahead just because something ran correctly.

Now, obviously mistakes will happen.  That's what the coding help board is for, to help you figure out problems that are stumping you.  Good luck!

If you make a global variable in the console in game can it be executed by script? Or is it in the sense that the global variable is local and only can be used in the console.

If you make a global variable in the console in game can it be executed by script? Or is it in the sense that the global variable is local and only can be used in the console.
Global is global - it can be accessed anywhere. Inside a function, outside one, via console, via script, via anything.

Global is global - it can be accessed anywhere. Inside a function, outside one, via console, via script, via anything.
Wow... I just had a great idea.

Wow... I just had a great idea.

That you could change a variable from a different server? lol

That you could change a variable from a different server? lol
To expand on this, all of the variables, objects, etc. that you create will be specific to that particular simulation in their corresponding scope.

For instance, if you set $bob to eight, you can access $bob anywhere in script as long as the game runs. If you're running a server, this does not mean that clients connected will have access to $bob, because they are in different simulations, and are simply communicating with each other.

Once the game ends, all the variables, objects, etc. are released from memory and lost. For data to be kept between simulations, it has to be stored externally in a file somewhere.

Tourqe is my first and only language, but Im not teaching

I was just wondering how you could set vignette in a function for a set amount of time.

I was just wondering how you could set vignette in a function for a set amount of time.
This is completely possible, and quite easy to do. Use clientCmdSetVignette and schedules to delay it changing back to normal.

in all honesty the way I learned my first and continue to learn programming languages is to set a goal.  think of a project that you want to complete and learn the necessary information required to finish it.

when needed ask others in the community for help.  your first project could be something along the lines of making a command that will launch the player in the air, to do this you'll need to learn server side commands, how to handle objects, etc, etc.

as you learn more you can use the previous knowledge in conjunction to build larger projects.  just make sure you start somewhere, the biggest mistake I made for over a year was just putting off learning my first language because "it was too hard" and "noone will teach me", just get started and ask others for help when you can no longer find the information you need.

ninja;
fortunately blf's coding help section is actually very helpful and is full of great resources, if you can't already find a topic about what you need, feel free to post another one.

Blockland Forums (Specifically Coding Help) is literally the internet's leading resource on torquescript. Go ask your stuff there, we'll be happy to help.

To expand on this, all of the variables, objects, etc. that you create will be specific to that particular simulation in their corresponding scope.

For instance, if you set $bob to eight, you can access $bob anywhere in script as long as the game runs. If you're running a server, this does not mean that clients connected will have access to $bob, because they are in different simulations, and are simply communicating with each other.

Once the game ends, all the variables, objects, etc. are released from memory and lost. For data to be kept between simulations, it has to be stored externally in a file somewhere.

I know, I know, but I was joking at the fact that he might have thought that he could change variables from server to server lel