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
cazador
Apprentice


Joined: 08 Dec 2005
Posts: 108

PostPosted: Fri Aug 22, 2008 3:53 am   

[2.36] Substitution substitutes twice.
 
When I do a subsitution of {text} to <text> I get <text><text>
Code:

<trigger priority="12570" id="1257">
  <pattern>^~{text~}</pattern>
  <value>#sub {}</value>
</trigger>



I can do a #sh ~{text~} to cause the problem <text><text>
Reply with quote
Tech
GURU


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

PostPosted: Fri Aug 22, 2008 7:38 am   
 
That's because you aren't telling CMUD what to substitute. Technically speaking that trigger shouldn't even be working at all because all it will do is blank out the text. You must have another trigger somewhere that is duplicating the text.

This trigger should do what you want.

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="12570" copy="yes">
    <pattern>^~{(text)~}</pattern>
    <value>#sub {<%1>}</value>
  </trigger>
</cmud>
_________________
Asati di tempari!
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