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
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Sat Oct 04, 2008 2:09 pm   

Oninput and params problem
 
Quote:

pmote {wwhispers (to {cFael{w) '{cAnd how lovely you{w'{x
Yasan whispers (to Fael) 'And how lovely you'


Lately I can't use my whisper "alias", an oninput trigger that looks for w>Name Whisper text here. For the stuff above I typed:

w>Faelwen And how lovely you are, so you can see my problem. I don't know why it keeps cutting stuff out, here's the trigger:

Code:

ID: Whisper
Pattern: ^w>(%w) (*)
#noinput;pmote ~{wwhispers ~(to ~{c%1~{w~) '~{c%-2~{w'~{x
Type: Command Input


Edit: Sorry, the Fael not Faelwen part was me, used to my MUD taking the people in the room and finishing the spelling!
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Sat Oct 04, 2008 3:22 pm   
 
I'm going to guess that the ~{c and ~{w and ~{x are color codes?

Also I don't know if it is needed in CMUD, but perhaps you should escape the > in your pattern as well: ^w~>(%w) (*)
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Oct 04, 2008 3:28 pm   
 
Could it be interaction another trigger? I couldn't get this to fail. Here's the XML of my trigger in case I created something wrong:

Code:
<trigger type="Command Input" priority="10" trigontrig="false" id="1">
  <pattern>^w>(%w) (*)</pattern>
  <value>#noinput;pmote ~{wwhispers ~(to ~{c%1~{w~) '~{c%-2~{w'~{x</value>
</trigger>


You might have to quote my post to get the exact text, depending on which browser you're using. Some of them change the > character from its code, which you need to get it to import.

By the way, is there any particular reason why you're not using an alias for this? Personally I think a space is easier to type than a > and it's also easier to code :P

And you might find tab useful for your completion problem.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Sat Oct 04, 2008 9:03 pm   
 
I'm used to >name because the game uses >name for direct says. I've never had this problem before, and now I suddenly am, which is why I suspect a bug, personally.
_________________
Listen to my Guitar - If you like it, listen to more
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