|  | 
	
	
		| zammster Newbie
 
 
 Joined: 19 Nov 2004
 Posts: 3
 
 
 | 
			
			  |  Posted: 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. 
 |  | 
	
	  |  | 
	
		|  | 
	
		| charneus Wizard
 
  
 Joined: 19 Jun 2005
 Posts: 1876
 Location: California
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		| daemoan Beginner
 
 
 Joined: 04 Feb 2008
 Posts: 23
 
 
 |  | 
	
	  |  | 
	
		|  | 
	
		| zammster Newbie
 
 
 Joined: 19 Nov 2004
 Posts: 3
 
 
 | 
			
			  |  Posted: 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.
 |  | 
	
	  |  | 
	
		|  | 
	
		| Arminas Wizard
 
 
 Joined: 11 Jul 2002
 Posts: 1265
 Location: USA
 
 | 
			
			  |  Posted: 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
 |   |  | 
	
		|  | 
	
		|  | 
	
		|  |