Armageddon General Discussion Board

General => Code Discussion => Topic started by: Bellator on September 10, 2013, 03:36:50 PM

Title: Indication whether a container is empty or not
Post by: Bellator on September 10, 2013, 03:36:50 PM
When you have many containers sitting around some with things in them and some that are empty, it can be a real chore to sift through them to see which have things in them or not. Would it be possible to add some sort of indication when a container is empty?
Something like:
look

Room desc ...
A yellow bag rests here (empty)
A large purple bag rests here

k .
In the room:
  1..bag - a large yellow bag (empty)
  2..bag - a large purple bag
On a long wooden bench:
  3..bag - a plain bag of cloth
  4..bag - a small bag (empty)
  5..bag - a large grey bag
  6..bag - a large black bag
Title: Re: Indication whether a container is empty or not
Post by: Desertman on September 10, 2013, 05:35:16 PM
I like it.
Title: Re: Indication whether a container is empty or not
Post by: Barsook on September 10, 2013, 07:25:41 PM
I dig this.
Title: Re: Indication whether a container is empty or not
Post by: AmandaGreathouse on September 10, 2013, 07:26:59 PM
I would prefer if it showed up as

a large bag
or
an empty large bag

I hate the (parentheses condition) things on other muds, as opposed to how on arm it has 'lit' or 'glowing' as part of the sdesc of an item without putting it in the parentheses at the end.

I like the idea, but I would prefer a display that was more in line with other displays (it also goes from 'a fancy glass goblet' to 'an empty fancy glass goblet' if you empty a liquid container, etc). The one with the unnecessary parentheses at the end would be a bit jarring for me, but, again, I think the idea is good, it's just the display I would alter.
Title: Re: Indication whether a container is empty or not
Post by: Barsook on September 10, 2013, 07:27:56 PM
Yeah, I think that is better for sure.
Title: Re: Indication whether a container is empty or not
Post by: Myhrrn on September 16, 2013, 12:32:10 AM
I too do not like (burning) (lit) (empty).

I would much rather see.

An empty large bag lies here.
You get an empty large bag.
Title: Re: Indication whether a container is empty or not
Post by: Lizzie on September 16, 2013, 07:19:20 AM
If [empty] were made a temporary keyword on an item, I think that might solve the problem since you can now combine keywords to get exactly what you want.

For instance - if there are 4 different -types- of bags - plain, small, large, and tattered. There's 5 of each. Two of each are empty.

And you want an empty small bag.

All you'd have to do is...

get empty.small.bag crate

And voila - there's your empty small bag.

The coding would work however the food-eating works - a partially-eaten kalan fruit can change its sdesc to a small portion of a kalan fruit, and both "partially" and "small" will work as temporary keywords, when those changes to the item occur.