 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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! |
|
|
|
 |
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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 |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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.
|
|
|
|
 |
|
|
|