|
amumnin Newbie
Joined: 28 Sep 2009 Posts: 1
|
Posted: Mon Sep 28, 2009 4:12 pm
Targeting Trigger? |
Is there a Trigger to automatically target those who attack you?
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Sep 28, 2009 7:09 pm |
Yes. You can create a trigger like so
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger priority="1120" copy="yes">
<pattern>(%w) attacks you</pattern>
<value>target %1</value>
</trigger>
</cmud> |
This simple trigger assumes the you see things like
Code: |
A goblin attacks you |
The trigger will match and send the following command to the MUD.
|
|
_________________ Asati di tempari! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Sep 28, 2009 7:32 pm |
Or, from the CMUD command line, type:
Code: |
#TRIGGER {(%w) attacks you} {target %1} |
Also, a reminder to the original poster: This forum is for BETA TESTING bug reports. For general help with CMUD, please post to the main CMUD Discussion Forum [here] in the future. Thanks. |
|
|
|
|
|