Blockland Forums > Modification Help
how would i slow a for statement?
Headcrab Zombie:
I honestly think the only reason why people say that is the file extension similarity. TorqueScript's syntax is similiar to several languages.
phflack:
i'm just basing this off of the little i know about C++ :D
--- Quote from: Syntax on September 01, 2010, 12:31:03 AM ---This looks annoying, why are you making such a useless script?
--- End quote ---
practice, i dunno
Red_Guy:
--- Quote from: Syntax on September 01, 2010, 12:31:03 AM ---This looks annoying, why are you making such a useless script?
--- End quote ---
People have to learn this stuff somehow -- its how he chose to learn it.
one minor tweak:
Change:
--- Code: ---function eat(%i)
{
commandtoserver('consume',"purifiedwater");
commandtoserver('consume',"banana");
if(%i != "stop")
--- End code ---
to:
--- Code: ---function eat(%i)
{
commandtoserver('consume',"purifiedwater");
commandtoserver('consume',"banana");
if(%i !$= "stop")
--- End code ---
you need to use '$=' for string compare or '!$=' for string does not equal.
phflack:
ahh, i haven't tested the eat function since i edited it