 |
ArjenJ Wanderer
Joined: 30 Jan 2006 Posts: 66
|
Posted: 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? |
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
 |
ArjenJ Wanderer
Joined: 30 Jan 2006 Posts: 66
|
Posted: 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?
|
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
 |
Zhiroc Adept
Joined: 04 Feb 2005 Posts: 246
|
Posted: 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) |
|
|
|
 |
|
|
|