Author Topic: [Resource] All Torque Appendixes (A, B, C, D)  (Read 1788 times)

I recently found all of the Torque appendixes online. I'm not really sure how useful they are, but I thought I would post them here.

Appendix A - Quick References
Appendix B - GPGT Lesson Kit Docs
Appendix C - Combined Maze Runner Lessons
Appendix D - GPGT Lists

Keep in mind that some of these might be somewhat useless.
« Last Edit: July 04, 2012, 11:45:09 AM by Greek2me »

Appendix A is the only real useful one for me. Otherwise the Appendix B, C and D are stuff which help developers create their game.

Note that I cannot be arsed to look at Appendix B so I may be incorrect.

i think i found a typo in appendix A
Quote
for
Purpose
The for keyword is a looping construct whose general form is:
for ( expression0 ; expression1 ; expression2 )
{
statements(s);
}
expression0 usually of the form: variable = value
expression1 usually of the form: variable compare op value
expression2 usually of the form: variable op OR variable op value
The loop continues to execute statement(s) until expression0 evaluates to zero.
Note: expression0, expression1, and expression2 are all required. If you absolutely need
expression0 or expression2 to be empty just insert a 0.
Note2: Composite expressions of the form ( sub_expression0 , sub_expression1 ,
sub_expressionN ) are illegal.
they mean expression1 is 0, not expression0, right?

i think i found a typo in appendix Athey mean expression1 is 0, not expression0, right?
No, it looks correct.

but if you have
for(%i = 0; %i <= 5; %i++)echo(%i);
then it would never run, instead of echoing 0-5?
and for(%i = 5; %i >= 0; %i--)echo(%i);
would then run forever, echoing everything 5 and under

but if you have
for(%i = 0; %i <= 5; %i++)echo(%i);
then it would never run, instead of echoing 0-5?
and for(%i = 5; %i >= 0; %i--)echo(%i);
would then run forever, echoing everything 5 and under
no
On the top one, %i would get to 5 and then stop
On the bottom one, %i would get to 0 and then stop
« Last Edit: July 05, 2012, 07:08:50 AM by Treynolds416 »

You're missing phflack's point. It says it will continue to evaluate until expression0 is 0. Phflack said it should be expression1.
« Last Edit: July 05, 2012, 09:33:35 PM by Destiny/Zack0Wack0 »

Actually, after it gets to the appropriate trigger, expression2 is called one final time (this doesn't really pertain)

so code like this echos 0-5
Code: [Select]
for(%i=0;%i<=5;%i++)
    echo(%i);

while this code echos 0-6
Code: [Select]
for(%i=0;%i<=5;%i++)
    echo(%i);
echo(%i);

I was really only commenting on that specific post of phlack, didn't really read his first one. But now that I see it, yea, expression1 is the determining factor for ending the loop

I meant, expression1, yeah. Fixed.