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

WinTin++ 2.00.8 - syntax of #format

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



Joined: 13 Jan 2012
Posts: 20

PostPosted: Sat Jan 14, 2012 3:04 pm    Post subject: WinTin++ 2.00.8 - syntax of #format Reply with quote

Need to rewrite (correctly in new syntax) following samples (that worked well on 1.98.5, but now malfunctioning):

#fu {a1} { ...; #parse {%0} { #form {result} {%s%s} {{$result} {&0}} }; ...} //formatting result variable, in parse, in function body - adding chars one-by-one to result, from parsed string

#fu {a2} { ...; #form {result} {%s%s} {{$result} {<260> }}; ...} //just formatting result variable - adding string at end of result variable

#fu {a3} { ...; #form {result} {%s%s} {{$result} {=}}; ...} // another formatting result variable sample - adding "=" symbol at end of result variable

How to spell these correctly on 2.00.8?

Also, good #form manual (with alot of examples) may be in great help (that manual which is on site, is small and uninformative... Crying ).
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sat Jan 14, 2012 8:10 pm    Post subject: Reply with quote

You need to provide a variable to #parse where each character is stored at.

So

#fu {a1} { ...; #parse {%0} { #form {result} {%s%s} {{$result} {&0}} }; ...}

Would be:

#fu {a1} { ...; #parse {%0} {tmpvar} { #form {result} {%s%s} {{$result} {$tmpvar}} }; ...}
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