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

alias show remainder

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
eraldo



Joined: 30 Jun 2009
Posts: 19

PostPosted: Mon Jul 06, 2009 7:04 pm    Post subject: alias show remainder Reply with quote

example:
#ALIAS {test} {#SHOWME %1 %2 c %0 }
Input: "test a b d e"
Output: "a b c a b c d e"

Desired Output: "a b c d e"

What syntax gives me %0 minus %1 and %2 ?

Greetings,
Eraldo
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Tue Jul 07, 2009 7:46 am    Post subject: Reply with quote

The following should do this:

#alias {test %1 %2 %3} {#showme %1 %2 c %0}
Back to top
View user's profile Send private message Send e-mail
eraldo



Joined: 30 Jun 2009
Posts: 19

PostPosted: Tue Jul 07, 2009 1:24 pm    Post subject: not confirmed Reply with quote

I get this:

Input: test a b d
Output: a b c a b d
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Tue Jul 07, 2009 1:29 pm    Post subject: Reply with quote

My mistake, correct alias is:

#alias {test %1 %2 %3} {#showme %1 %2 c %3}
Back to top
View user's profile Send private message Send e-mail
eraldo



Joined: 30 Jun 2009
Posts: 19

PostPosted: Wed Jul 08, 2009 11:15 am    Post subject: Reply with quote

that would not work for more than 3 arguments, right?

By the way... thank's for helping me. Smile
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Wed Jul 08, 2009 12:09 pm    Post subject: Reply with quote

No problem,

In this case %3 would hold all remaining arguments.
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 -> General Discussion 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