|
lincher Newbie
Joined: 12 Dec 2010 Posts: 1
|
Posted: 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! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
|
|