|
mjwinther Newbie
Joined: 30 May 2002 Posts: 3
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
mjwinther Newbie
Joined: 30 May 2002 Posts: 3
|
Posted: 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. |
|
|
|
mjwinther Newbie
Joined: 30 May 2002 Posts: 3
|
Posted: 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}} |
|
|
|
|
|