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
talith
Novice


Joined: 03 Mar 2005
Posts: 31

PostPosted: Sat Aug 07, 2010 7:43 pm   

help converting zmud trigger to cmud
 
I used to have a triggrer that did something like:

"You are better at %1"
#ad %1 1

it would take the %1 and make a variable of it, and keeping adding to it everytime it triggers.

This same trigger in cmud doesn't want to work, and i can't figure out another way to make it work. Any help?
Reply with quote
Tech
GURU


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

PostPosted: Sat Aug 07, 2010 7:57 pm   
 
You can't use %1 in the trigger patterns. One thing about CMUD is that it's stricter about enforcing the coding rules. I recommend reading Changes for zMUD users for more information. As for your particular trigger this should do the trick.

Code:
"You are better at (%w)"
#ADD %1 1


Or better yet just copy and paste this xml snippet into the package editor.

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="890" copy="yes">
    <pattern>You are better at (%w)</pattern>
    <value>#ADD %1 1</value>
  </trigger>
</cmud>
_________________
Asati di tempari!
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