Display amount
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Function Syntax
- it is the item to check
Returns the amount of a given item that is contained in your display case.
Code Sample
Reports on the amount of all Disco Bandit drinks in your display case.
void report_drink(item drink) {
if(display_amount(drink) > 0)
print("In your DC are "+ display_amount(drink) +" "+ drink.to_plural());
}
foreach drink in get_related($item[tangarita], "zap")
report_drink(drink);
foreach drink in get_related($item[fuzzbump], "zap")
report_drink(drink);