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
Dragan
Newbie


Joined: 26 Oct 2004
Posts: 6

PostPosted: 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
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
Dragan
Newbie


Joined: 26 Oct 2004
Posts: 6

PostPosted: 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:
Code:
%1 : w

Script:
Code:
weave 'sanctuary' %1


Thks for the idea !
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