Whats up with this?
by Kevin Johnson · in Torque Game Engine · 07/06/2004 (2:54 pm) · 5 replies
echo(%who @ "=" @ getTaggedString(%obj.name));
if (%obj.getClassName()$="GameConnection")
echo(%who @ "=" @ getTaggedString(%obj.name));
if (trim(%who) $= trim(getTaggedString(%obj.name)) )
{
echo(%who @ "=" @ getTaggedString(%obj.name));console.logPoser=Poser Poser=Poser
shouldn't it make it into the 3rd echo or am i going crazy??
edit:format the code a little..:)
#2
the plot thickens..
still doesn't go to the third echo
07/06/2004 (3:01 pm)
Edit:the plot thickens..
GameConnection Poser=Poser Poser=Poser
still doesn't go to the third echo
#3
the answer is:
stripchars(detag(getTaggedString(%obj.name)),"\cp\co\c6\c7\c8\c9")
07/06/2004 (4:18 pm)
I hearby dub LabRat SUPREME scripting GOD..the answer is:
stripchars(detag(getTaggedString(%obj.name)),"\cp\co\c6\c7\c8\c9")
#4
Hmm, anyway to show a string without parsing those control codes?
07/06/2004 (4:49 pm)
Hrrm, so those of us on the sidelines, is that stripchars there because control codes are added to the tagged string? And they don't show upon the echo, but are still present and therefore are throwing off the string compare?Hmm, anyway to show a string without parsing those control codes?
#5
Yah, this thing was driving me nuts last night..I tried everything (trim, detag, gettaggedstring..) except stripchars that is.. :)
Thanx to everyone who helped..
07/07/2004 (7:16 am)
Quote:
..And they don't show upon the echo, but are still present and therefore are throwing off the string compare?..
Yah, this thing was driving me nuts last night..I tried everything (trim, detag, gettaggedstring..) except stripchars that is.. :)
Thanx to everyone who helped..
Torque Owner J. Alan Atherton
echo(%obj.getClassName());
Just to check what it really is.