Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
aslanthekat
Novice


Joined: 17 Sep 2007
Posts: 44
Location: Missouri

PostPosted: Mon Jul 09, 2012 4:39 pm   

Can this be done?
 
I noticed that you can use string list vars in the pattern of triggers, so I was wondering...

Can I use script 1, to get the same result as script 2
Code:
1:
#tr {{@greet} tells the group 'hi'} {gt hi}

2:
#tr {(%w) tells the group 'hi'} {#if (%ismember(%1,@greet)) {gt hi %item(@greet,%ismember(%1,@greet))}}


Don't ask me why I want to do it this way, I have no reason. Just curious if it can be done.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jul 09, 2012 4:44 pm   
 
You can.
_________________
EDIT: I didn't like my old signature
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Jul 09, 2012 4:44 pm   
 
you mean like this?
Code:

#tr {^({@greet}) tells the group 'hi'} {gt hi %1}
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel

Last edited by hadar on Mon Jul 09, 2012 4:44 pm; edited 1 time in total
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Mon Jul 09, 2012 4:46 pm   
 
Try..
#TR {({@greet}) tells the group 'hi'} {gt hi %1}


.ninjad..
_________________
Discord: Shalimarwildcat
Reply with quote
aslanthekat
Novice


Joined: 17 Sep 2007
Posts: 44
Location: Missouri

PostPosted: Mon Jul 09, 2012 4:58 pm   
 
I swear I tried that, but lo and behold it does work.

Thanks.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net