|
Cronos Novice
Joined: 06 Sep 2004 Posts: 30
|
Posted: Thu Mar 10, 2005 3:43 am
Trigger to Count Skill Use |
Could someone help me with a simple trigger to count how many times a skill is used.
In my mud, your skill raises based on how many times you used it. For example, if I want to practice the "choke" skill, I want to know how many times I have done it successfully.
The message below is the message I get when I succeed at the skill.
"You concentrate and constrict your victim's throat."
And when it raises, this is the message:
"You feel better at using choke."
Anyway to keep an ongoing trigger that keeps count of how many times i've used the skill successfully? I'm using version 4.62. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Thu Mar 10, 2005 4:04 am |
#TRIGGER {^{You concentrate and constrict your victim's throat.|You feel better at using choke.}} {#add skillcount 1}
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
Cronos Novice
Joined: 06 Sep 2004 Posts: 30
|
Posted: Thu Mar 10, 2005 4:09 am |
Could you explain what #add skillcount 1 does?
Is it skillcount a variable, alias, etc...
Thanks. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Thu Mar 10, 2005 4:18 am |
skillcount is a variable, initialize it to 0 or whatever number you want to start at
#add skillcount 1
increases the value held in the skillcount variable by 1 |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
Cronos Novice
Joined: 06 Sep 2004 Posts: 30
|
Posted: Thu Mar 10, 2005 4:32 am |
oh awesome, that worked!
Just a quick question,
The
You concentrate and constrict your victim's throat.|You feel better at using choke
Does that mean if either those two strings pop up in the mud, then it'll add 1 to skillcount? |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Thu Mar 10, 2005 8:59 am |
YES
|
|
|
|
|
|