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
Snomannen
Newbie


Joined: 18 Feb 2006
Posts: 1

PostPosted: Sat Feb 18, 2006 3:01 pm   

trigger and tribulation
 
Greetings folx, I got me a small problem I figure that y'all can help me solve. You see on The Last Sunrise they got this nifty skill called gathering, which gathers herbs etc and now I was figuring I wanted to create some kind of record of all the herbs I gather during a certain set of time, lets say one hour....

The trigger that shows what you found is:

You have found an odd maroon tinted herb!

and to further figure this out, if lets say I would to find same herb again, to have that triggers etc add to the herbs already there so it would say 2 odd maroon tinted herb and next time 3 odd maroon tinted herb etc
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Feb 18, 2006 6:05 pm   
 
#CLASS Herbs
#VARIABLE HerbsFound {}
#TRIGGER {^You have found a{n|} (*) herb!$} {#ADDKEY HerbsFound {%1} {%eval(%db(@HerbsFound,"%1")+1)}}
#ALIAS HerbReport {#SHOW %expanddb(@HerbsFound);#IF ("%1"="0") {#LOOPDB @HerbsFound {#ADDKEY HerbsFound {%key} {0}}}}
#CLASS 0

That should cover it. As always this script is untested and typed off the top of my head, there may be a bug or 3.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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