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


Joined: 19 Nov 2004
Posts: 3

PostPosted: Sat Feb 09, 2008 8:41 pm   

Equipment database / trigger
 
I'd like to match each line against any piece of equipment in my gear db and subsequently display information about it any time it matches. Anyone done this before? I can't think of a great way of doing this without having a trigger that reads every line who's trigger logic enumerates and pattern matches. Kind wondering if there's anything more eloquent.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Feb 10, 2008 5:37 am   
 
You really need to give us a better example of what you're trying to do. Show some actual MUD output and what you want the final result to be, please.

Charneus
Reply with quote
daemoan
Beginner


Joined: 04 Feb 2008
Posts: 23

PostPosted: Tue Feb 12, 2008 7:30 am   
 
Maybe Something I Needed Help WIth Can Help You Here....

if not give some examples and be descriptive......

http://forums.zuggsoft.com/forums/viewtopic.php?t=29779
Reply with quote
zammster
Newbie


Joined: 19 Nov 2004
Posts: 3

PostPosted: Mon Feb 18, 2008 3:40 pm   
 
Ok, the mud output could be anything

For instance

Code:
The Auction House of Winterhaven
Obvious exits: -N
A steaming pile of bullshit is here.
A large podium stands here.
Speek the Auctioneer stands on a podium showcasing items for sale to visitors.

< 218h/218H 112v/112V Pos: standing >
<> n

The Celestial Bazaar
Obvious exits: -N -E -S -W

< 218h/218H 111v/112V Pos: standing >
<> eq

You are using:
<worn on face>       a frogskin mask
<worn around neck>   a superior bone pendant
<worn on back>       a large leather backpack
<worn around wrist>  a drow-skin bracelet
<worn around wrist>  a drow-skin bracelet
<worn on finger>     a blood-red ring
<worn on finger>     a blood-red ring

< 218h/218H 111v/112V Pos: standing >
<>


My auction DB contains item names and all of their stats (obviously). I'd like to match ANY words in each line to ANY piece of gear in the DB and make those items clickable, with the intent to show the stats for that item. Since I don't think zMud will do "tooltips" (heck i'm not even sure how to make things clickable.. if at all), I'm thinking popping the results of the click into another window (populated from the db).

In the case above, I looked at my own gear but I'd like it to work for anything including the "steaming pile of bullshit" and "a large podium", presuming the item exists in my DB.

I'm guessing this isn't possible. I'm guessing the best I can do is highlight text and execute an alias based on what is highlighted.
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Mon Feb 18, 2008 4:50 pm   
 
For tooltips you can use MXP and #SU This also makes items clickable.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
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