Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
acidburn1979
Newbie


Joined: 25 Jul 2006
Posts: 2

PostPosted: Tue Jul 25, 2006 11:28 pm   

Triggers
 
I am having a problem with my triggers, what I want to do is set it up like this %1 is blinded by %2 but when the line looks like this

<3115hp 957m 737mv A Diamond Golem: 74% Enemy: [+++++ ]> acidburn is blinded by smoke

the response back looks like this

(6896hp 1033m 925mv You say 'acidburn) HAS BEEN BLINDED BY (smoke')

the boundaries of %1 is in the first set of parantheses and %2 is in the 2nd

it adds the prompt to the response, how do i get rid of the prompt and just have it show: acidburn HAS BEEN BLINDED BY SMOKE
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Wed Jul 26, 2006 12:28 am   
 
#TRIG {<*~> (%w) is blinded by (%w)} {#SHOW %1 HAS BEEN BLINDED BY %upper(%2)}

Someone correct me if I am wrong.
Reply with quote
acidburn1979
Newbie


Joined: 25 Jul 2006
Posts: 2

PostPosted: Thu Jul 27, 2006 12:17 am   
 
ok, that sort of fixed the problem, now i need to have to where it will read like this

<3115hp 957m 737mv A Diamond Golem: 74% Enemy: [+++++ ]>
A wolf is blinded by a bat

Where it will both read it on the prompt and on the next line as shown above
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Thu Jul 27, 2006 2:16 am   
 
hmm, try something like..

#TRIG {{<*~>(%w) is blinded by (%w)|^(%w) is blinded by (%w)}} {#SHOW %1 HAS BEEN BLINDED BY %upper(%2)}

Now, it seems from your second one that you could potentially get 'a' and 'an' in front of what you want, so if you want to include those in your #SHOW change all the (%w) to (*)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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