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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
amumnin
Newbie


Joined: 28 Sep 2009
Posts: 1

PostPosted: Mon Sep 28, 2009 4:12 pm   

Targeting Trigger?
 
Is there a Trigger to automatically target those who attack you?
Reply with quote
Tech
GURU


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

PostPosted: 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.
Code:
target goblin
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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