Game Development Community

strings and numerics

by rennie moffat · in Torque Game Builder · 10/23/2009 (11:17 am) · 11 replies

Hi I am trying to wrap my head around strings and numerics. A numeric would be "12 22 33 14" a string would be %this.thing.getThis()"



see I am even confused here because I do not know if "get" can be in a string. Is a string a command, a statement or both?



About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
10/23/2009 (11:33 am)
You can find your answer here : http://tdn.garagegames.com/wiki/TorqueScript#The_TorqueScript_Language

Edit: and I'm pretty sure that "12 22 33 14" is not a numeric but a string.
#2
10/23/2009 (1:23 pm)
So a string is anything inside of ""?


like "thisWillWorkGood"

That is what I gathered from your link.


TGB Quote:
"abcd" (string)

examples of:
echo("Hello!");
echo("1.5" + "0.5");

$a="This is a regular string";





My point is and what I am wondering is, are strings merely things inside of ""'s? if so, what is...

%this.thing.getThat();
//mind this has no ""'s.






#3
10/23/2009 (1:26 pm)
hehe ... loved that answer. good call Seb.
#4
10/23/2009 (1:28 pm)
Moderated. Do not post harassing or inflamatory comments.
#5
10/23/2009 (1:32 pm)
Again E.

This isn't some kids form where you can post what ever you want or think.

If you want to do that go to myspace or something. I am asking valid questions which are being answered, I am receiving the help I need WITHOUT you, so let that please be. If you do not I will complain to management about you.



#6
10/23/2009 (1:40 pm)
Moderated. Do not post harassing or inflamatory comments.
#7
10/23/2009 (3:29 pm)
um. ok.
#8
10/24/2009 (3:22 am)
%this.thing.getThis();
is a function call.

Strings can include the word "get".

All literals in TorqueScript are strings. For example
%result = "5" + "6";
is the same as
%result = 5 + 6;

(BTW, I see that while Ehrlichmann couldn't ignore you, you couldn't ignore him. Two sides of the same coin?)
#9
10/24/2009 (9:44 am)
Perhaps at first (3 weeks ago), but since, if you noticed I have stopped. I realized each time I tried to "shut him down", point out the errors in his ways he would just come back harder. I was reading the Prophet last night, it says that the sinner and the saint are twin brothers. I do not want to be related to the sinner, at least as a twin.



Thanks for the insight.
Ren
#10
10/25/2009 (5:17 am)
I don't have to go back 3 weeks to find posts where Ehrlichmann gave you a direct answer, only for you to request that he quit answering your posts. That seems pretty confrontational to me. Maybe we have twin sinners?
#11
10/25/2009 (12:03 pm)
Um no,
I think it is all in tone.

His tone was IM GING TO YELL AT YOU AND CALL YOU STUPID.


Mine was can you help me.

But whatever it is what it is. I admit I had to conciously cool it. Something I found out immediately when I was banned for telling him "I would bring hell to his front door" but he was banned at the same time. Then a little while later it took me to realise I had to practice what I preach and not answer if I dont think it would be useful. Can we move on please?