[bold][cyan]Character Generator[normal] #178
Aliases: [bold][cyan]Character Generator[normal]
14 verbs · 77 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
look_self | this none this | rxd | #178 | 1 |
enterfunc | this none this | rxd | #178 | 9 |
select_race | this none this | rxd | #178 | 82 |
@r*ace | none none none | rxd | #178 | 1 |
roll | none none none | rxd | #178 | 1 |
race | none none none | rxd | #178 | 1 |
org | none none none | rxd | #178 | 1 |
facts | none none none | rxd | #178 | 1 |
set | none none none | rxd | #178 | 1 |
display_stats | this none this | rxd | #178 | 9 |
select_gender | this none this | rxd | #178 | 14 |
description | this none this | rxd | #178 | 39 |
confunc | this none this | rxd | #178 | 12 |
select_class | this none this | rxd | #178 | 21 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
instructions | #178 | rc | #2 | {} |
race_chart | #178 | rc | #2 | list of 15{"[underline]RACES[normal]", "", "Starting Statistic Adjustments", "", "[underline]Race STR DEX INT HEA[normal]", "Human... | n/a n/a n/a n/a*", "Elf..... | -1.0 +2.0 n/a -1.0", "Gnome... | -2.0 +3.0 +1.0 -1.0", "Dwarf... | +2.0 -1.5 n/a +1.0", "Orc..... | +3.0 n/a -3.0 +1.0", "Sprite.. | -3.0 +5.0 +1.0 -2.0", "", "* Humans begin with 2 more Advancement Points", " than the other races rather than adjustments", " to statistics."} |
races | #178 | rc | #2 | {} |
class_info | #178 | rc | #2 | list of 7{"[underline]CLASSES[normal]", "", "[underline]Class Description[normal]", "Warrior..... | Begins with 3.0 Combat", "Blue Mage... | Can cast: Knowledge, Heal, Enchantment, Sleep, Power, Speed, Escape, Pacifism", "Red Mage.... | Can cast: Knowledge, Enchantment, Sleep, Fear, Power, Speed, Magic Missile, Death", "Alchemist... | Can convert items to gold or bonus points"} |
build_help_random | #141 | rc | #2 | <clear> |
build_help_choice | #141 | rc | #2 | <clear> |
type | #141 | rc | #2 | <clear> |
org | #141 | rc | #2 | <clear> |
stat_keys | #141 | rc | #2 | {1, 1, 1, 1} |
races_random | #141 | rc | #2 | list of 6{{"Human", {0.0, 0.0, 0.0, 0.0}, {{#142}, {2.0}}, 3}, {"Elf", {-1.0, 2.0, 0.0, -1.0}, {{#142}, {2.0}}, 3}, {"Gnome", {-2.0, 3.0, 1.0, -1.0}, {{#142}, {2.0}}, 3}, {"Dwarf", {2.0, -1.5, 0.0, 1.0}, {{#142}, {2.0}}, 3}, {"Orc", {3.0, 0.0, -3.0, 1.0}, {{#142}, {2.0}}, 3}, {"Sprite", {-3.0, 5.0, 1.0, -2.0}, {{#142}, {2.0}}, 3}} |
org_facts | #141 | rc | #2 | <clear> |
races_choice | #141 | rc | #2 | <clear> |
orgs | #141 | rc | #2 | <clear> |
instructions_random | #141 | rc | #2 | <clear> |
instructions_choice | #141 | rc | #2 | <clear> |
clear_all_skills | #141 | rc | #2 | 0 |
virtual_exit_task | #118 | r | #2 | 1787415029 |
defaulting_exit_oleave_msg | #118 | rc | #2 | <clear> |
blessed_entrances | #118 | rc | #2 | <clear> |
virtual_exits | #118 | rc | #2 | {{{"out", "o", "exit"}, #62, 0}} |
give_short_alias | #118 | rc | #2 | <clear> |
virtual_exit_to_use | #118 | r | #2 | {} |
lit_from_outside | #118 | rc | #2 | <clear> |
bot_locked | #104 | rc | #2 | <clear> |
fakes | #104 | r | #36 | <clear> |
retail | #104 | rc | #2 | <clear> |
seat | #104 | r | #36 | <clear> |
pool | #104 | r | #36 | <clear> |
seat_desc | #104 | r | #36 | <clear> |
pool_desc | #104 | r | #36 | <clear> |
sit_phrase | #104 | rc | #2 | <clear> |
stand_phrase | #104 | rc | #2 | <clear> |
swim_phrase | #104 | rc | #2 | <clear> |
dry_phrase | #104 | rc | #2 | <clear> |
push_phrase | #104 | rc | #2 | <clear> |
seat_aliai | #104 | r | #36 | <clear> |
pool_aliai | #104 | r | #36 | <clear> |
seat_contents | #104 | r | #36 | <clear> |
pool_contents | #104 | r | #36 | <clear> |
seat_max | #104 | r | #36 | <clear> |
pool_max | #104 | r | #36 | <clear> |
details | #104 | rc | #2 | <clear> |
temp_detail_index | #104 | rc | #2 | <clear> |
temp_detail_desc | #104 | rc | #2 | <clear> |
outdoors | #104 | r | #36 | <clear> |
attack_queue | #104 | r | #2 | <clear> |
battle_on | #104 | r | #2 | <clear> |
stop_msg | #104 | rc | #2 | <clear> |
remove_msg | #104 | rc | #2 | <clear> |
dump_msg | #104 | rc | #2 | <clear> |
dump_loc | #104 | rc | #2 | #62 |
sanctuary | #104 | rc | #2 | 1 |
ansi_title | #104 | r | #36 | <clear> |
dark_desc | #104 | rc | #2 | <clear> |
title_style | #104 | rc | #2 | <clear> |
build_help | #104 | rc | #2 | <clear> |
battle_task | #104 | r | #2 | <clear> |
dig_level | #104 | rc | #2 | <clear> |
holes | #104 | r | #2 | <clear> |
help_msg | #104 | rc | #2 | <clear> |
who_location_msg | #3 | rc | #2 | <clear> |
free_home | #3 | rc | #2 | <clear> |
victim_ejection_msg | #3 | rc | #2 | <clear> |
ejection_msg | #3 | rc | #2 | <clear> |
oejection_msg | #3 | rc | #2 | <clear> |
residents | #3 | rc | #2 | <clear> |
free_entry | #3 | rc | #2 | <clear> |
entrances | #3 | c | #2 | <clear> |
blessed_object | #3 | rc | #2 | <clear> |
blessed_task | #3 | rc | #2 | <clear> |
exits | #3 | c | #2 | {} |
dark | #3 | rc | #2 | <clear> |
ctype | #3 | rc | #2 | <clear> |
key | #1 | c | #2 | 0 |
aliases | #1 | rc | #2 | {"[bold][cyan]Character Generator[normal]"} |
description | #1 | rc | #2 | {} |
object_size | #1 | r | #36 | {0, 0} |
Ancestry
Ancestors (nearest first): #141 Character Generator → #118 virtual exit room → #104 RPG room → #3 generic room → #1 Root Class
Children: none
Call graph
Source
look_self
Referenced by
none
Source
1
enterfunc
Referenced by
none
Source
1if ((((player.stats[2] != {10.0, 10.0, 10.0, 10.0}) || (player.stats_current[2] != {10.0, 10.0, 10.0, 10.0})) || (player.race != "human")) || (player.adv_points > 0)) 2player.stats[2] = {10.0, 10.0, 10.0, 10.0}; 3player.stats_current[2] = {10.0, 10.0, 10.0, 10.0}; 4player.skills[2][1] = 0.0; 5player.race = "human"; 6player.adv_points = 0; 7player:tell("Character stats and race have been reset."); 8endif 9this:description();
select_race
Referenced by
- #178:select_race line 81:
this:select_race - #178:@r*ace line 1:
this:select_race - #178:description line 7:
this:select_race
Source
1suspend(2); 2player:tell(); 3player:tell_lines(this.race_chart); 4player:tell(); 5player:tell("Choose a race: "); 6r = player:request_line(); 7if (r == "human") 8player:tell("You have selected Human as your race."); 9player:tell("Humans do not receive statistic adjustments, but begin with an extra 2 Advancement Points."); 10player.race = "Human"; 11player.adv_points = 6; 12elseif (r == "elf") 13player:tell("You have selected Elf as your race."); 14player:tell("Your statistics have been adjusted accordingly."); 15player.stats[2][1] = player.stats[2][1] - 1.0; 16player.stats[2][2] = player.stats[2][2] + 2.0; 17player.stats[2][3] = player.stats[2][3] + 0.0; 18player.stats[2][4] = player.stats[2][4] - 1.0; 19player.stats_current[2][1] = player.stats_current[2][1] - 1.0; 20player.stats_current[2][2] = player.stats_current[2][2] + 2.0; 21player.stats_current[2][3] = player.stats_current[2][3] + 0.0; 22player.stats_current[2][4] = player.stats_current[2][4] - 1.0; 23player.race = "Elf"; 24player.adv_points = 4; 25elseif (r == "gnome") 26player:tell("You have selected Gnome as your race."); 27player:tell("Your statistics have been adjusted accordingly."); 28player.stats[2][1] = player.stats[2][1] - 2.0; 29player.stats[2][2] = player.stats[2][2] + 3.0; 30player.stats[2][3] = player.stats[2][3] + 1.0; 31player.stats[2][4] = player.stats[2][4] - 1.0; 32player.stats_current[2][1] = player.stats_current[2][1] - 2.0; 33player.stats_current[2][2] = player.stats_current[2][2] + 3.0; 34player.stats_current[2][3] = player.stats_current[2][3] + 1.0; 35player.stats_current[2][4] = player.stats_current[2][4] - 1.0; 36player.race = "Gnome"; 37player.adv_points = 4; 38elseif (r == "dwarf") 39player:tell("You have selected Dwarf as your race."); 40player:tell("Your statistics have been adjusted accordingly."); 41player.stats[2][1] = player.stats[2][1] + 2.0; 42player.stats[2][2] = player.stats[2][2] - 1.5; 43player.stats[2][3] = player.stats[2][3] + 0.0; 44player.stats[2][4] = player.stats[2][4] + 1.0; 45player.stats_current[2][1] = player.stats_current[2][1] + 2.0; 46player.stats_current[2][2] = player.stats_current[2][2] - 1.5; 47player.stats_current[2][3] = player.stats_current[2][3] + 0.0; 48player.stats_current[2][4] = player.stats_current[2][4] + 1.0; 49player.race = "Dwarf"; 50player.adv_points = 4; 51elseif (r == "orc") 52player:tell("You have selected Orc as your race."); 53player:tell("Your statistics have been adjusted accordingly."); 54player.stats[2][1] = player.stats[2][1] + 3.0; 55player.stats[2][2] = player.stats[2][2] - 1.5; 56player.stats[2][3] = player.stats[2][3] - 3.0; 57player.stats[2][4] = player.stats[2][4] + 1.0; 58player.stats_current[2][1] = player.stats_current[2][1] + 3.0; 59player.stats_current[2][2] = player.stats_current[2][2] - 1.5; 60player.stats_current[2][3] = player.stats_current[2][3] - 3.0; 61player.stats_current[2][4] = player.stats_current[2][4] + 1.0; 62player.race = "Orc"; 63player.adv_points = 4; 64elseif (r == "sprite") 65player:tell("You have selected Sprite as your race."); 66player:tell("Your statistics have been adjusted accordingly."); 67player.stats[2][1] = player.stats[2][1] - 3.0; 68player.stats[2][2] = player.stats[2][2] + 5.0; 69player.stats[2][3] = player.stats[2][3] + 1.0; 70player.stats[2][4] = player.stats[2][4] - 2.0; 71player.stats_current[2][1] = player.stats_current[2][1] - 3.0; 72player.stats_current[2][2] = player.stats_current[2][2] + 5.0; 73player.stats_current[2][3] = player.stats_current[2][3] + 1.0; 74player.stats_current[2][4] = player.stats_current[2][4] - 2.0; 75player.race = "Sprite"; 76player.adv_points = 4; 77else 78player:tell("Invalid selection. You must enter one of the following:"); 79player:tell("human, elf, gnome, dwarf, orc, sprite"); 80player:tell(); 81this:select_race(); 82endif
@r*ace
Referenced by
none
Source
1this:select_race();
roll
Referenced by
none
Source
1$command_utils:do_huh();
race
Referenced by
none
Source
1$command_utils:do_huh();
org
Referenced by
none
Source
1$command_utils:do_huh();
facts
Referenced by
none
Source
1$command_utils:do_huh();
set
Referenced by
none
Source
1$command_utils:do_huh();
display_stats
Referenced by
- #178:description line 9:
this:display_stats
Source
1player:tell(); 2player:tell("[underline]STATISTICS[normal]"); 3player:tell(); 4player:tell("Strength......", floatstr(player.stats[2][1], 2)); 5player:tell("Dexterity.....", floatstr(player.stats[2][2], 2)); 6player:tell("Intelligence..", floatstr(player.stats[2][3], 2)); 7player:tell("Health........", floatstr(player.stats[2][4], 2)); 8player:tell("Combat........", floatstr(player.skills[2][1], 2)); 9player:tell();
select_gender
Referenced by
- #178:select_gender line 13:
this:select_gender - #178:description line 6:
this:select_gender
Source
1player:tell("Male or Female?"); 2g = player:request_line(); 3if ((g == "m") || (g == "male")) 4force_input(player, "@gender male"); 5suspend(2); 6elseif ((g == "f") || (g == "female")) 7force_input(player, "@gender female"); 8suspend(2); 9else 10player:tell("Invalid selection. You must enter one of the following:"); 11player:tell("male, female, m, f"); 12suspend(1); 13this:select_gender(); 14endif
description
Referenced by
- #178:enterfunc line 9:
this:description - #178:confunc line 11:
this:description
Source
1player:tell(); 2player:tell("[bold][cyan]+[blue]---------------------[cyan]+[normal]"); 3player:tell("[bold][blue]| [cyan]CHARACTER GENERATOR [blue]|[normal]"); 4player:tell("[bold][cyan]+[blue]---------------------[cyan]+[normal]"); 5player:tell(); 6this:select_gender(); 7this:select_race(); 8this:select_class(); 9this:display_stats(); 10player:tell(); 11player:tell("Name: ", player.name, " (", player.gender, ")"); 12player:tell("Race: ", player.race, " / Class: ", player.class); 13player:tell(); 14player:tell("You will begin with [bold][red]", tostr(player.adv_points), "[normal] Advancement Points."); 15player:tell(); 16player:tell("Use the @advance <stat> (@adv <stat>) command to advance any of your stats by one point."); 17player:tell(); 18player:tell("<stat> may be strength, dexterity, intelligence, health or combat."); 19player:tell(); 20player:tell("Abbreviations str, dex, int, hea, or com are also acceptable."); 21player:tell(); 22player:tell("Type 'help @advance' within the game for more information."); 23player:tell(); 24if ((player.class == "Blue Mage") || (player.class == "Red Mage")) 25player:tell("You have chosen ", player.class, " as your class. [bold]Type 'help mages' to learn more.[normal]"); 26player:tell(); 27elseif (player.class == "Alchemist") 28player:tell("You have chosen Alchemist as your class. [bold]Type 'help alchemist' to learn more.[normal]"); 29player:tell(); 30elseif (player.class == "Warrior") 31player:tell("You have chosen Warrior as your class. Warriors begin the game with a Combat ability of 3.0 (rather than 0.0),"); 32player:tell("giving them the advantage in combat even at low level."); 33player:tell(); 34endif 35suspend(1); 36player:tell("[bold][white]Press [ENTER] to begin playing ", $network.MOO_name, ".[normal]"); 37player:request_line(); 38suspend(1); 39move(player, $player_start);
confunc
Referenced by
none
Source
1if ((((cp = caller_perms()) == player) || $perm_utils:controls(cp, player)) || (caller == this)) 2"Need the first check because guests don't control themselves"; 3if ((((player.stats[2] != {10.0, 10.0, 10.0, 10.0}) || (player.stats_current[2] != {10.0, 10.0, 10.0, 10.0})) || (player.race != "human")) || (player.adv_points > 0)) 4player.stats[2] = {10.0, 10.0, 10.0, 10.0}; 5player.stats_current[2] = {10.0, 10.0, 10.0, 10.0}; 6player.skills[2][1] = 0.0; 7player.race = "human"; 8player.adv_points = 0; 9player:tell("Character stats and race have been reset."); 10endif 11this:description(); 12endif
select_class
Referenced by
- #178:description line 8:
this:select_class - #178:select_class line 20:
this:select_class
Source
1suspend(2); 2player:tell(); 3player:tell_lines(this.class_info); 4player:tell(); 5player:tell("Choose a class: "); 6c = player:request_line(); 7if (c == "warrior") 8player.class = "Warrior"; 9player.skills[2][1] = 3.0; 10elseif (c == "blue mage") 11player.class = "Blue Mage"; 12elseif (c == "red mage") 13player.class = "Red Mage"; 14elseif (c == "alchemist") 15player.class = "Alchemist"; 16else 17player:tell("Invalid selection. You must enter one of the following:"); 18player:tell("warrior, blue mage, red mage, alchemist"); 19player:tell(); 20this:select_class(); 21endif