MUDL:get attr names
From SlothMUD Wiki
Revision as of 23:07, 7 November 2018 by Teker (Talk | contribs) (Created page with " __TOC__ = Summary = {|class="abilitiestable" border="0" cellspacing="0" cellpadding="0" ! Function Name | get_attr_names |- ! Settable | No |- ! Returns | String Array |}...")
Summary
Function Name | get_attr_names |
---|---|
Settable | No |
Returns | String Array |
Parameter Options |
---|
None |
Config Index (integer) |
Filter (string) |
Config Index (integer), Filter (string) |
Config Parent (character, room, area), Config Index (integer) |
Config Parent (character, room, area), Config Index (integer), Filter (string) |
This function returns a list of KVP key names on the specified Parent or on the Parent of the current script if no parent is provided. If a Filter string is provided, only key names that start with the Filter string will be returned.
Example
setproc <parent> # on_foo foreach(get_attr_names(), %9, ( msg_room(%room, %9) )), return(true) @ setproc <parent> # PROC_ENABLED 1