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
typhonjr
Beginner


Joined: 12 Jul 2002
Posts: 11

PostPosted: Thu Jan 08, 2004 4:02 pm   

practice trigger
 
just a quick question if anyone knows.. i'd rather not set up a db for this trigger and would like to use a varlist.. but what im trying to do is go through a prac list on a rom mud and pick out a specific spell/skill and state the % its at. i cant seem to get the trigger for reading in the prac list. heres the an example prac list

create booze 100% create food 100% create rose 100%
create spring 100% identify 100% locate object 100%
portal 100% liquid form 100% axe 100%
dagger 100% flail 100% mace 100%
polearm 100% spear 100% sword 100%
whip 100% backstab 100% bash 100%

i cant seem to store all the skills into a varlist to check it.
thx
-typ
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Thu Jan 08, 2004 4:28 pm   
 
Its late and I'm tired...but basically, use a database variable.

#TR {(*) (%d)~% (*) (%d)~% (*) (%d)~%} {
#ADDKEY praclist %replace(%1," ","") %2 //The %replace bit strips any spaces from the string
#ADDKEY praclist %replace(%3," ","") %4
#ADDKEY praclist %replace(%5," ","") %6
}

#AL chk (#SH %db(@praclist,%1}

SO... to check your percentage in food..., type
chk createfood
Reply with quote
typhonjr
Beginner


Joined: 12 Jul 2002
Posts: 11

PostPosted: Sat Jan 10, 2004 1:56 pm   
 
awesome works like a charm
thanks caled
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