|
Snomannen Newbie
Joined: 18 Feb 2006 Posts: 1
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|