Builder Options #77

Parent #68Owner #36Flags readSource QuestCore.db

Aliases: Builder Options

6 verbs · 11 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
check_create_flagsthis none thisrxd#776
show_create_flagsthis none thisrxd#775
parse_create_flagsthis none thisrxd#7713
show_dig_room show_dig_exitthis none thisrxd#777
parse_dig_room parse_dig_exitthis none thisrxd#7722
show_recycle_warnthis none thisrxd#777

Properties

PropertyDefinerFlagsOwnerValue
show_bi_create#77rc#36{"@create/@recycle re-use object numbers.", "@create/@recycle call create()/recycle() directly."}
type_dig_room#77rc#36{1}
type_dig_exit#77rc#36{1}
names#68r#36{"dig_room", "dig_exit", "create_flags", "bi_create", "recycle_warn"}
_namelist#68r#36"!dig_room!dig_exit!create_flags!bi_create!recycle_warn!"
extras#68r#36{}
namewidth#68rc#3620
key#1c#36<clear>
aliases#1rc#36{"Builder Options"}
description#1rc#36{"Option package for $builder commands. See `help @build-options'."}
object_size#1r#36{4803, -1090650497}

Ancestry

Ancestors (nearest first): #68 Generic Option Package#1 Root Class

Children: none

Call graph

calls n77_1 #77:show_create_flags n68_0 #68:get n77_1->n68_0 n77_2 #77:parse_create_flags n20_5 #20:from_list n77_2->n20_5 n77_3 #77:show_dig_room n77_3->n68_0 n77_4 #77:parse_dig_room n77_4->n20_5 n56_0 #56:object_match_failed n77_4->n56_0 n6_7 #6:my_match_object n77_4->n6_7 n52_5 #52:isa n77_4->n52_5 n6_18 #6:tell n77_4->n6_18 n77_5 #77:show_recycle_warn n77_5->n68_0

Source

check_create_flags

Spec this none thisFlags rxdOwner #36Definer #77

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 #36Definer #77

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 #36Definer #77

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 #36Definer #77

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 #36Definer #77

Referenced by

none

Source

1{oname, raw, crap} = 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

show_recycle_warn

Spec this none thisFlags rxdOwner #36Definer #77

Referenced by

none

Source

1name = args[2];
2what = (verb == "show_dig_room") ? "room" | "exit";
3if ((value = this:get(args[1], name)) == 0)
4return {0, {"@recycle w/o checking the player's intentions."}};
5else
6return {value, {"@recycle only after checking the player's intentions."}};
7endif