|
Dragan Newbie
Joined: 26 Oct 2004 Posts: 6
|
Posted: Fri May 21, 2010 5:44 pm
%w |
Ok, on Zmud I used to have a basic cast trigger
Code: |
(%w) group-says 'sanc'
weave 'sanctuary' %1 |
In zmud, the %w was doing this:
Code: |
The Dragon UN group-says 'sanc'
weave 'sanctuary' UN
UN group-says 'sanc'
weave 'sanctuary' UN |
NOW, in CMUD, the %w seem to not working anymore
If my pattern is
Code: |
(%w) group-says 'sanc' |
cmud execute the following line:
Code: |
weave 'sanctuary' %w |
Now, if my pattern is:
Code: |
%1 group-says 'sanc' |
trigger will launch correctly until i have a dragon or a wraith in my group
If UN ask for a spell.. trigger launch correctly
if the Dragon UN ask for a spell... trigger launch:
Code: |
weave 'sanctuary' The Dragon UN |
Is it possible to get the %w back in CMUD like it was in Zmud ?
Or I need to setup different trigger for The Dragon %1 and The Wraith %1 ?
or is it doable with the IF function ?
Thks for your answer |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Fri May 21, 2010 6:12 pm |
First of all, you should never use %1 in a trigger pattern itself.
Second, not sure why %w isn't working unless you accidentally ticked the 'Regex expression' box. Try creating a new trigger and see if that fixes it.
Charneus |
|
|
|
Dragan Newbie
Joined: 26 Oct 2004 Posts: 6
|
Posted: Fri May 21, 2010 6:46 pm |
O well.. had try simple trig with %w.. regex was not in function.. was still not working
finally got it by doing
Pattern:
Code: |
(%w) group-says 'sanc' |
Text:
Code: |
%w group-says 'sanc' |
Captured subpattern:
Script:
Code: |
weave 'sanctuary' %1 |
Thks for the idea ! |
|
|
|
|
|