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
ArjenJ
Wanderer


Joined: 30 Jan 2006
Posts: 66

PostPosted: Tue Nov 27, 2007 9:13 pm   

triggering on stringlists
 
In my CMud I have this variable that contains a stringlist with names of enemies
This variable I called @enemies

Now I want a trigger to do two things: First of all when one of the names in this list comes by I want to highlight it, second: I want to send a command to the MUD that contains the specific name that came by. Now I have trouble with this last part. This is what I tried first

triggerline: "{@enemies}"

The trigger fired, but there is no way (that I know off) to use the name that it fired on in the script. So I than added the ()'s hoping that this would put the name in the temp variable %1.

triggerline: "({@enemies})"

But that does not work. Anybody have an idea how to make this work?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Nov 27, 2007 9:42 pm   
 
Which version of CMUD are you using?

There's not much I can say except that this is the way you're supposed to do it and that it's working for me. I'm using 2.13.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
ArjenJ
Wanderer


Joined: 30 Jan 2006
Posts: 66

PostPosted: Tue Nov 27, 2007 9:46 pm   
 
I am using the last public and not the Beta version... 1.34 I think my version is. Would you advise me to go use the Beta version?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Nov 27, 2007 10:15 pm   
 
Not really. While the beta's very much improved over 1.34, it's still a beta, which means you can get weird bugs and crashes sometimes, which sucks if you're fighting something at the time. If you do decide to upgrade to the beta, I advise making backups of all your session files and making sure you report any bugs you encounter.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Nov 27, 2007 10:39 pm   
 
Yes with caveats. The current beta is an RC1 release and addresses many of the issues that were present in version 1.34 and adds a host of new features. With that said it's still a BETA. If you want to give it a shot, the be sure to back up all your data first.

Personally I've been using it exclusively for my MUDding for quite some time now.
_________________
Asati di tempari!
Reply with quote
Zhiroc
Adept


Joined: 04 Feb 2005
Posts: 246

PostPosted: Wed Nov 28, 2007 5:43 am   
 
I'm pretty sure that this was working...

Check to see if you put the %1 in quotes? I used to have to do that a lot in zMUD, and that's one thing that changed in CMUD. If that doesn't work, use a REGEX trigger. I know those worked (I rarely don't use a REGEX whenever I need wildcards these days)
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