|
![]() |
|
Thread Tools | Display Modes |
![]() |
#1 |
Swordsman
Join Date: Jun 2010
Posts: 324
![]() |
(Hopefully) useful code snippet modifies "]" command to highlight unidentified items
Playing 3.2, but probably applies to most recent versions. When there is a lot of junk on the ground the object list ("]") command is great to find the "interesting" objects. It is also useful that it highlights artifacts in violet and objects that have not been seen yet in red. I thought it would be even more useful if it also highlighted objects that were not fully identified. I wondered if it might be a simple edit to make this happen, since the code to highlight was already there. It turns out that it was, as evidenced by the fact that I was able to do it.
![]() If you are the compile-it-yourself type, you can make this change by editing src/object/obj-util.c and finding the display_itemlist function. Find the following code: Code:
if (artifact_p(o_ptr) && object_is_known(o_ptr)) /* known artifact */ attr = TERM_VIOLET; else if (!object_flavor_is_aware(o_ptr)) /* unaware of kind */ attr = TERM_RED; else if (object_is_worthless(o_ptr)) /* worthless */ attr = TERM_SLATE; else /* default */ attr = TERM_WHITE; Code:
if (artifact_p(o_ptr) && object_is_known(o_ptr)) /* known artifact */ attr = TERM_VIOLET; else if (!object_flavor_is_aware(o_ptr)) /* unaware of kind */ attr = TERM_RED; else if (!object_is_known(o_ptr)) /* not fully known */ attr = TERM_ORANGE; else if (object_is_worthless(o_ptr)) /* worthless */ attr = TERM_SLATE; else /* default */ attr = TERM_WHITE; |
![]() |
![]() |
![]() |
#2 |
Swordsman
Join Date: Feb 2010
Posts: 405
![]() |
Problem is, this is something we *don't* want. Dive strategy usually means:
a) detect b) see, from that, what's interesting and safe to reach c) go get it while avoiding undesirable fights The general tone of comments is, this is already too easy to do. Thus, anything that simplifies this aspect, is movement in the wrong direction. |
![]() |
![]() |
![]() |
#3 | |
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 42
Posts: 1,516
![]() |
Quote:
If diving really is too easy, the solution is to actually make it harder, not to hide information. Do you think we should hide unknown flavors to make it harder to find those also? Max Stats: I will definitely try out your patch and see how it plays. Thanks! |
|
![]() |
![]() |
![]() |
#4 | |
Prophet
Join Date: Dec 2009
Posts: 9,022
![]() |
Quote:
The game should be transparent. That includes automating tedious tasks. If the player can see where an item is, and they can then use the 'l'ook command to inspect the item, and from that determine if the item is identified or not, then there is no reason to not automate that process for the player. Your logic would have us e.g. not sorting the monster list by monster level / uniqueness, since you can get that information from using the '/' command and then paging through until you find the monster you want. Difficulty that comes from the game having a clunky interface is not good difficulty. In short, we have already decided to provide identification information to the player for items they aren't carrying. Having made that decision, we should make it as easy as possible for the player to get access to that information. Or we should decide that the player cannot tell that the item is identified at all unless they're standing on it. Those are your options. |
|
![]() |
![]() |
![]() |
#5 | |
Angband Devteam member
|
Quote:
For example, about a year ago we decided that extra dice on ego/artifact weapons should not be visible until you actually pick up the item (or walk over it, I forget which). So Ringil shows up as a plain 2d5 longsword from any kind of object detection. I don't see why we couldn't move further in that direction, as Timo and others have already suggested. We could have dObj just reveal "potion", "ring" etc. without showing flavours until you get to them. That's nothing to do with making the interface better: I'm all for the object list being totally sortable and colour-coded for objects you have already physically plodded over to see. Etc. Last edited by Magnate; January 6, 2011 at 20:01. |
|
![]() |
![]() |
![]() |
#6 |
Prophet
Join Date: Dec 2009
Posts: 9,022
![]() |
Oh, sure, no arguments there. That's a question of deciding what information to reveal and when to reveal it. Once you make that decision, though, you design the UI to make accessing that information as painless as possible once the player has gained it.
|
![]() |
![]() |
![]() |
#7 | |
Prophet
Join Date: Mar 2008
Posts: 2,755
![]() |
Quote:
If you change things so that I cannot automatically ignored squelched items until I plod over to check them out, then I'll have to keep that in mind any time anyone wants to do something flavorful. I'd be against adding Guinness in that case. |
|
![]() |
![]() |
![]() |
#8 | |
Adept
Join Date: Sep 2010
Posts: 162
![]() |
I think the original posters idea would be useful, at least as an option, though it might turn out to be overbearing. As an alternative (or addition) I might suggest highlighting the square the item is on. This would have the added benefit of making food/mushrooms easier to spot.
Somewhat related to this, is there currently a way to disable the confirmation when destroying stacks of items? I tend to use my favorite macro, k-ay, a lot, which hangs when destroying stacks. Alternatively, an option to destroy an entire stack would be just as useful. Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Angband Devteam member
|
Well spotted. I think the dice-hiding change was made before the base ACs were changed. I agree that these shouldn't be obvious from afar either.
|
![]() |
![]() |
![]() |
#10 | |
Prophet
Join Date: Mar 2008
Posts: 2,755
![]() |
Quote:
It's not like weapons where there are effects that apply to base but not to plusses. |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
An option to disable the "command menu" | AnonymousHero | Vanilla | 11 | March 14, 2012 16:37 |
How do players of graphical tiled display use the "/" identify command? | Hajo | Vanilla | 3 | September 1, 2010 18:04 |
"repeat" Command just little bit "smarter" | ClaytonAguiar | Vanilla | 8 | June 17, 2009 15:01 |
3.0.6. Drop command "Are you sure?" | Fonzie684 | Vanilla | 2 | June 11, 2009 07:41 |
Uses for "out-of-character" items | ekolis | Vanilla | 4 | July 6, 2007 09:18 |