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

text length

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
dorian



Joined: 29 Jul 2012
Posts: 66

PostPosted: Tue Sep 06, 2016 9:16 am    Post subject: text length Reply with quote

another problem i have a text in variable looks like this:

#var text {<G02><fff> some text <088>};

and when i do #format len {%L} {$text};

i want to have actual output length rather than length with color tags
any advise?
Back to top
View user's profile Send private message
dorian



Joined: 29 Jul 2012
Posts: 66

PostPosted: Tue Sep 06, 2016 9:38 am    Post subject: Reply with quote

Code:

#line substitute {variables}{#line strip {#var text $text}}
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Wed Sep 07, 2016 8:50 pm    Post subject: Reply with quote

%L will strip the color codes and return the actual output length.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help 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