TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#echo

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Thu Oct 08, 2015 3:13 am    Post subject: #echo Reply with quote

#ECHO works in a weird way with arrays, while #SHOWME has no problems.

Is this a bug or maybe there's another way to use it ?
I prefere to use #ECHO because it doesn't trigger actions...

Code:

#var array[spell1] {magic missile}
#OK. VARIABLE {array[spell1]} HAS BEEN SET TO {magic missile}.
#var array[spell2] {acid blast}
#OK. VARIABLE {array[spell2]} HAS BEEN SET TO {acid blast}.

#showme $array[]
{spell1}{spell2}

#echo $array[]
spell1#echo $array[]

#nop then the command line remains dirty
Back to top
View user's profile Send private message
moire



Joined: 29 Jan 2012
Posts: 24

PostPosted: Tue Dec 29, 2015 12:37 pm    Post subject: Reply with quote

Looking at #help echo, it tells me, that a second braced argument would be interpreted as a line number into which the result would be printed, so I guess tt++ intreprets the "{spell2}" as a line number. Duh.
I found a workaround for this:
Code:

#echo { \b%s} $array[]
{spell1}{spell2}


Perhaps it helps to debug the problem.
Back to top
View user's profile Send private message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Tue Dec 29, 2015 4:28 pm    Post subject: Reply with quote

cool, this is useful, thanks Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group