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
Cronos
Novice


Joined: 06 Sep 2004
Posts: 30

PostPosted: 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.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
Cronos
Novice


Joined: 06 Sep 2004
Posts: 30

PostPosted: Thu Mar 10, 2005 4:09 am   
 
Could you explain what #add skillcount 1 does?

Is it skillcount a variable, alias, etc...

Thanks.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
Cronos
Novice


Joined: 06 Sep 2004
Posts: 30

PostPosted: 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?
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Thu Mar 10, 2005 8:59 am   
 
YES
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