Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
lincher
Newbie


Joined: 12 Dec 2010
Posts: 1

PostPosted: Mon Dec 13, 2010 8:33 pm   

Popup item status on select/right click or tooltip with stats
 
Hi All,

I am looking to be able to easily see item stats based on the item label, e.g.

>list

Mertchant has:
1. black sword
2. magic sword

I would like to be able to have:
1) Item name highlighted (if it's in my database) and item stats displayed in popup if I have mouse on it (just need to exact match one field as key)
2) Select item text on screen, right click on it and in menu select lookup or something that would allow me to see item stats.

Also, is it possible to do multi matching?

E.g. I have information in database like:

display_name: a large black sword insribed with runes
object_keywords: black huge sword runes

I would like to again select text in session window, right click and select menu item that would do multi matching, e.g. displaying 5 items for which display_name and object_keywords match as close as possible.

Thanks!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Mon Dec 13, 2010 11:09 pm   
 
You can do this easily enough by #SUBing in some MXP commands, like so:

Code:
#TRIGGER {({@DBvarItemStats})} {
$tooltip=@{DBvarItemStats.%1.stats}
$color=@{DBvarItemStats.%1.color}
#SUB {<send '#NOOP' '$tooltip'><color $color>%1</color></send>}
}


Assuming you make use of the new json objects for your database.
It could likely be converted to work with actual database objects as well, but i never got the hang of those.
_________________
Discord: Shalimarwildcat
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Dec 14, 2010 2:41 am   
 
Database objects now are internally json objects, just as stringlists are. So you can use either form interchangeably.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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