2021-05-10 11:28:03 -04:00
|
|
|
---
|
|
|
|
|
title: stdlib / all_environment
|
|
|
|
|
---
|
2023-11-25 09:50:24 -08:00
|
|
|
# all_environment
|
2021-05-10 11:28:03 -04:00
|
|
|
|
|
|
|
|
### 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:
|
|
|
|
|
|
2026-06-23 21:33:42 -07:00
|
|
|
(\{ bag, player, room \})
|
2021-05-10 11:28:03 -04:00
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
|
|
deep_inventory
|