BASE_NAME(1) BASE_NAME(1)
NNAAMMEE
_b_a_s_e___n_a_m_e_(_) - returns the name of the object's original
file
SSYYNNOOPPSSIISS
string base_name(mixed val)
DDEESSCCRRIIPPTTIIOONN
If you pass an object name (returned by the _f_i_l_e___n_a_m_e_(_)
efun) or an object itself, this function will return the
name of the original file from which the object was loaded
or cloned. For master copies, the _b_a_s_e___n_a_m_e_(_) will equal
the _f_i_l_e___n_a_m_e_(_). For clones, the _f_i_l_e___n_a_m_e_(_) will be the
_b_a_s_e___n_a_m_e_(_) plus an extension.
EEXXAAMMPPLLEESS
_b_a_s_e___n_a_m_e(find_living("orc")) might return "/std/monster"
LLOOCCAATTIIOONN
/secure/SimulEfun/base_name.c
SSEEEE AALLSSOO
_f_i_l_e___n_a_m_e_(_)
AAuutthhoorr
Descartes of Borg
1