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

Many action conditions to one code block

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



Joined: 18 Jun 2012
Posts: 1

PostPosted: Mon Jun 18, 2012 2:35 pm    Post subject: Many action conditions to one code block Reply with quote

How can I assign multiple #act conditions to one code block?
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Tue Jun 19, 2012 7:12 am    Post subject: Reply with quote

I'm not sure what you mean. What is it you want to accomplish?
Back to top
View user's profile Send private message Send e-mail
Pedwiddle



Joined: 31 May 2012
Posts: 8

PostPosted: Fri Jun 29, 2012 6:51 am    Post subject: Reply with quote

If I understand correctly, you want to assign the same code block to multiple patterns?

If that's the case, then you'd want something like:

#ACTION {<pattern 1>|<pattern 2>} {
<code goes here>
};

Hope this helps...
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Fri Jun 29, 2012 3:53 pm    Post subject: Reply with quote

Oh, in that case it's also possible to use an alias.

#act {bli} {xxx}
#act {bla} {xxx}

#alias {xxx} {do stuff}
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