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


Joined: 30 May 2002
Posts: 3

PostPosted: Thu May 30, 2002 5:21 am   

Triggers and variables
 
Hello i am trying to do something that i think is simple, but seems to be eluding me. when the mud outputs

* You think your <skillname> has improved. *

I want it to make a variable with that skill name and/or add 1 to it.
Thank you for any help with this
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 30, 2002 7:47 am   
 
If all skills are single-word this will work.
#TR {~* You think your (%w) has improved. ~*} {#ADD %1 1}
or if skills can have multiple words you'll need something like this
#TR {~* You think your (*) has improved. ~*} {#ADD %replace("%1"," ","_") 1}

LightBulb
Vague questions get vague answers
Reply with quote
mjwinther
Newbie


Joined: 30 May 2002
Posts: 3

PostPosted: Thu May 30, 2002 8:16 am   
 
Thank you, that was very helpfull, however there is another part to it. I would also like it to #say the variable number, which i cant seem to do with multiple word skills. IE "You have 45 improves in sword mastery."
Thank you for your help.
Reply with quote
mjwinther
Newbie


Joined: 30 May 2002
Posts: 3

PostPosted: Thu May 30, 2002 9:58 am   
 
I found out how to do what i wanted by myself, thank you for your help lightbulb. By the way this is the command line, if anyone else had a question similar to this one.

#say {You have @{%replace( "%1", " ", "_") plusses in %1}}
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