Builder Options #71

Parent #62Owner #29Flags readSource hellcore/hellcore.db

Aliases: Builder Options

5 verbs · 17 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
check_create_flagsthis none thisrxd#716
show_create_flagsthis none thisrxd#715
parse_create_flagsthis none thisrxd#7113
show_dig_room show_dig_exitthis none thisrxd#717
parse_dig_room parse_dig_exitthis none thisrxd#7122

Properties

PropertyDefinerFlagsOwnerValue
show_bi_create#71rc#29{"@create/@recycle re-use object numbers.", "@create/@recycle call create()/recycle() directly."}
type_dig_room#71rc#29{1}
type_dig_exit#71rc#29{1}
names#62r#29{"dig_room", "dig_exit", "create_flags", "bi_create"}
_namelist#62r#29"!dig_room!dig_exit!create_flags!bi_create!"
extras#62r#29{}
namewidth#62rc#2920
aliases#1rc#29{"Builder Options"}
description#1rc#29{"Option package for $builder commands. See `help @build-options'."}
object_size#1r#29{3855, 1298433815}
hidden_verbs#1rc#29<clear>
phelp_msg#1rc#29<clear>
weight#1rc#29<clear>
owner_verbs#1rc#29<clear>
plural_name#1rc#29<clear>
client_image#1rc#29<clear>
listening#1rc#29<clear>

Ancestry

Ancestors (nearest first): #62 Generic Option Package#1 root

Children: none

Call graph

calls n71_1 #71:show_create_flags n62_0 #62:get n71_1->n62_0 n71_2 #71:parse_create_flags n20_5 #20:from_list n71_2->n20_5 n71_3 #71:show_dig_room n71_3->n62_0 n71_4 #71:parse_dig_room n71_4->n20_5 n48_0 #48:object_match_failed n71_4->n48_0 n6_6 #6:my_match_object n71_4->n6_6 n45_5 #45:isa n71_4->n45_5 n107_43 #107:tell n71_4->n107_43

Source

check_create_flags

Spec this none thisFlags rxdOwner #29Definer #71

Referenced by

none

Source

1value = args[1];
2if (m = match(value, "[^rwf]"))
3return tostr("Unknown object flag:  ", value[m[1]]);
4else
5return {tostr(index(value, "r") ? "r" | "", index(value, "w") ? "w" | "", index(value, "f") ? "f" | "")};
6endif

show_create_flags

Spec this none thisFlags rxdOwner #29Definer #71

Referenced by

none

Source

1if (value = this:get(@args))
2return {value, {tostr("Object flags for @create:  ", value)}};
3else
4return {0, {tostr("@create leaves all object flags reset")}};
5endif

parse_create_flags

Spec this none thisFlags rxdOwner #29Definer #71

Referenced by

none

Source

1raw = args[2];
2if (raw == 1)
3"...+create_flags => create_flags=r";
4return {args[1], "r"};
5elseif (typeof(raw) == STR)
6return args[1..2];
7elseif (typeof(raw) != LIST)
8return "???";
9elseif (length(raw) > 1)
10return tostr("I don't understand \"", $string_utils:from_list(listdelete(raw, 1), " "), "\"");
11else
12return {args[1], raw[1]};
13endif

show_dig_room show_dig_exit

Spec this none thisFlags rxdOwner #29Definer #71

Referenced by

none

Source

1name = args[2];
2what = (verb == "show_dig_room") ? "room" | "exit";
3if ((value = this:get(args[1], name)) == 0)
4return {0, {tostr("@dig ", what, "s are children of $", what, ".")}};
5else
6return {value, {tostr("@dig ", what, "s are children of ", value, " (", valid(value) ? value.name | "invalid", ").")}};
7endif

parse_dig_room parse_dig_exit

Spec this none thisFlags rxdOwner #29Definer #71

Referenced by

none

Source

1{oname, raw, data} = args;
2if (typeof(raw) == LIST)
3if (length(raw) > 1)
4return tostr("I don't understand \"", $string_utils:from_list(listdelete(raw, 1), " "), "\".");
5endif
6raw = raw[1];
7endif
8if (typeof(raw) != STR)
9return "You need to give an object id.";
10elseif ($command_utils:object_match_failed(value = player:my_match_object(raw), raw))
11return "Option unchanged.";
12endif
13what = (verb == "parse_dig_room") ? "room" | "exit";
14generic = #0.(what);
15if (value == generic)
16return {oname, 0};
17else
18if (!$object_utils:isa(value, generic))
19player:tell("Warning: ", value, " is not a descendant of $", what, ".");
20endif
21return {oname, value};
22endif