Author Topic: Torque Script  (Read 3180 times)

I really want to learn how to do Torque Script (Blockland Torque Script) .
To the point where I can be as good as some like Bushido  (creator of Super Murder Mystery, a heavy improvement from the original Murder Mystery), Greek2me (creator of Slayer), Badspot ( Creator of Blockland itself).
I have looked on various tutorials and looked through several add ons to no avail.
I am not of low intelligence either, I have a IQ of 142, and study Advanced Calculus.
I know many other programming languages, C++, python, ruby, jQuery.
I don't know, maybe I am not syncing well because of depression and anxiety.
Just, please, help a brother out here.






Thanks so much, I will look this over.




x100  :cookie:

if you know them languages, then torquescript should be a breeze for you

I have a IQ of 142

  • Leaves a large amount of whitespace trailing the bottom of the post.
  • Has a sentence fragment standing on its own.
  • Doesn't understand tutorials at all, suggesting a lack of actual coding knowledge.
  • Posts the thread in the wrong subforum.

Post a function for finding the Nth Fibonacci number and I might believe that you can code.

Torquescript is almost identical to C++. I almost barfed because you were asking help from people while lying to their faces.

#include<stdio.h>
 
int Fibonacci(int);
 
int main()
{
   int n, i = 0, c;
 
   scanf("%d",&n);
 
   printf("Fibonacci series\n");
 
   for ( c = 1 ; c <= n ; c++ )
   {
      printf("%d\n", Fibonacci(i));
      i++;
   }
 
   return 0;
}
 
int Fibonacci(int n)
{
   if ( n == 0 )
      return 0;
   else if ( n == 1 )
      return 1;
   else
      return ( Fibonacci(n-1) + Fibonacci(n-2) );

  • Missing a closing bracket for int Fibonacci
  • No catch case for negative numbers, meaning that calling Fibonacci for all n < 0 causes an infinite loop
  • Defines a function signature when defining the same function later on in the same script file

This has been my first time posting a thread.
I apologize for my lack of consideration.

  • Defines a function signature when defining the same function later on in the same script file
You need to do that in C++, as the compiler doesn't look ahead for references.

However...
  • Used an extra loop variable i when you could've just used c - 1 for input to the fibonacci method
  • Didn't put the increment statement for i after the increment statement for c
  • Coded the Fibonacci method in such a way that it will recurse 2n+1 times

People can be nitpicky on the forums. Just look at some of the tutorials and resources in the coding help subforum and learn from that, you shouldn't have too much trouble. Make a new topic there if you want more help.

To the point where I can be as good as some like Bushido  (creator of Super Murder Mystery, a heavy improvement from the original Murder Mystery), Greek2me (creator of Slayer), Badspot ( Creator of Blockland itself).
I am not of low intelligence either, I have a IQ of 142, and study Advanced Calculus.
I know many other programming languages, C++, python, ruby, jQuery.
I don't know, maybe I am not syncing well because of depression and anxiety.
- SMM was written by port.
- Your IQ doesn't matter.
- What you study doesn't matter.
- Whether you're depressed doesn't matter.


- Whether you can copy paste code doesn't matter either.

Torquescript is almost identical to C++.
No it isn't.

What does matter however is that you said you already know some other languages - that can be a help but doesn't have to, you might try doing things way over complicated then.

A good start would probably be to open all those add-ons you have and look at their scripts to get an idea of the syntax, and set up a thread in coding help for questions

#include<stdio.h>
 
int Fibonacci(int);
 
int main()
{
   int n, i = 0, c;
 
   scanf("%d",&n);
 
   printf("Fibonacci series\n");
 
   for ( c = 1 ; c <= n ; c++ )
   {
      printf("%d\n", Fibonacci(i));
      i++;
   }
 
   return 0;
}
 
int Fibonacci(int n)
{
   if ( n == 0 )
      return 0;
   else if ( n == 1 )
      return 1;
   else
      return ( Fibonacci(n-1) + Fibonacci(n-2) );
for further posts make sure to sure [ code ] brackets to save space
like so
Code: [Select]
function hi()
{
echo("hi");
}

- SMM was written by port.
- Your IQ doesn't matter.
- We dont care what you study
- We dont care that you are depressed.
- We dont care about your copy and pasting abilities..

TorqueScript is about as identical to C++ as C4 is to USB headers.

-noedit-

look at previous code
ftfy

oh and ctrl f "How to implement Fibonacci Series in c programming language" here.

Also, I just noticed this while reading over more thoroughly.

Code: [Select]
int n, i = 0, c;
for ( c = 1 ; c <= n ; c++ )
{
    printf("%d\n", Fibonacci(i));
    i++;
}

should always be written as

Code: [Select]
int n, i;
for(i = 0; i < n; i++)
    printf("%d\n", Fibonacci(i));


oh and ctrl f "How to implement Fibonacci Series in c programming language" here.

Wow. So you can not only not write code, but you also can't even plagiarize GOOD code.


  • You signed up in July of 2013, and your first post was in March of 2014.
  • Your profile page has no useful information on you at all.
  • Your second post was spam which ANYONE with an IQ of 100 or higher would know is bannable on EVERY forum.
  • Your claim of depression is probably a tactic to get sympathy.
  • You blatantly steal other people's code.
« Last Edit: April 04, 2014, 06:41:43 PM by Xalos »

Seriously? Plagiarizing code? That is literally the worst possible thing you could have done here.