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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Fri Jun 24, 2005 5:56 pm   

Aardwolf Spell/Skill Counter.
 
Start it with learned.
It lags my system a little at work, but then again the system at work is something like a P2 300.

Output:
170 total skills
17 skills at max
106 skills from 1% to 9%
23 skills from 10% to 74%
24 skills from 75% to 99%
Code:
#CLASS {Skill Count}
#ALIAS learned {
 #VAR skill_count_crap {0}
 #VAR skill_count_10to74 {0}
 #VAR skill_count_75to99 {0}
 #VAR skill_count_100 {0}
 #VAR skill_count_total {0}
 #t+ skill_count_trigger1
 #t+ skill_count_trigger2
 ~learned
}
#VAR skill_count_crap {0}
#VAR skill_count_10to74 {0}
#VAR skill_count_75to99 {0}
#VAR skill_count_100 {0}
#VAR skill_count_total {0}
#TRIGGER "skill_count_trigger2" {^You have (%d) practice sessions left.} {
 #echo @skill_count_total total skills
 #echo @skill_count_100 skills at max
 #echo @skill_count_crap skills from 1% to 9%
 #echo @skill_count_10to74 skills from 10% to 74%
 #echo @skill_count_75to99 skills from 75% to 99%
 #var skill_count_crap 0
 #var skill_count_10to74 0
 #var skill_count_75to99 0
 #var skill_count_100 0
 #var skill_count_total 0
 #t- skill_count_trigger1
 #t- skill_count_trigger2
} "" {disable}
#TRIGGER "skill_count_trigger1" {(%*)(%s)(%*)(%s)(%d)~%(%s)(%*)} {
 #if (%5 < 10) {
   #add skill_count_crap 1
   #add skill_count_total 1
 }
 #if (%5 >= 10 and %5 < 75) {
   #add skill_count_10to74 1
   #add skill_count_total 1
 }
 #if (%5 >= 75 and %5 < 100) {
   #add skill_count_75to99 1
   #add skill_count_total 1
 }
 #if (%5 = 100) {
   #add skill_count_100 1
   #add skill_count_total 1
 }
} "" {disable}
#CLASS 0

<suckup>This script was put together a while ago with the help of the fine people of the zmud forums and thier invaluable help.</suckup>
_________________
http://www.Aardwolf.com
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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