Xela, I need a function which will return the total amount of X item in inventory of provided character or list of characters, and false if they have none.
def has_items(item, chars):
amount = 0
for c in chars:
amount += c.inventory[item]
return amount
Just pushed. I woke up at 6 am and just got back home so I cannot do more than this tonight

False is an alias for 0 in python so unless you do something crazy like:
if has_item("name") is False:
...
and stick with normal syntax, like:
if not has_item("name"):
...
or
if has_item("name") > 0:
...
It should be fine. This is untested but it should just work. I just pushed the func. It expects an iterable like list or teams as chars argument, just one char will not work unless it's a list or team with one char in it.