Parent()

From TinyMUX
Jump to navigation Jump to search


FUNCTION: parent(<object>)

Returns the parent of <object>. Returns #-1 if <object> cannot be found or if you do not own <object> and it is not set VISUAL or PARENT_OK.

Example

   > say parent(me)
   You say "#-1"
   > say My va is [v(va)].
   You say "My va is "
   > @parent me=test
   Parent set.
   > say parent(me)
   You say "#323"
   > say My va is [v(va)].
   You say "My va is Testing 123"

Related Topics: @parent, Parent Objects, children(), VISUAL, PARENT_OK