let me rephrase, how do i rewrite this into torque, ive look all over the web and have found nothing on how to do this.
Pseudocode is not metacode. Metacode is code that can be translated into many different languages by a computer program. Pseudocode has to be read by the programmer, then the programmer rewrites it in whatever language they're using because they understand how it works.
The part that is frustrating is that you
have to know Torque to translate that metacode into Torque. There's no program that will do it, and nobody here wants to do it for you because we want you to learn. It wouldn't have helped you if teachers filled out your schoolwork and homework in school now, would it have?