fluffos/docs/stdlib/objects/all_environment.md

31 lines
587 B
Markdown
Raw Permalink Normal View History

---
title: stdlib / all_environment
---
2023-11-25 09:50:24 -08:00
# all_environment
### NAME
all_environment() - return all environments of an object
### SYNOPSIS
object* all_environment( void|object ob );
### DESCRIPTION
This function will return a list of objects, from bottom to top, that
comprise the environments for object `ob`.
If no object is passed, then `previous_object()` will be used.
### EXAMPLE
If a player has a coin in a bag, and youi ask for all_environment() on
the the coin, it will return:
(\{ bag, player, room \})
### SEE ALSO
deep_inventory