Пример #1
0
void extra_create()
{
    set_name( "a beholder" );
    add_alias( "beholder" );
    set_short( "a beholder" );
    set_long( "This is a beholder. It is essentially a floating head "
      "with one single, cyclops-like eye surrounded by ten smaller eye "
      "stalks. Its massive, gaping maw is set in a permanent grin. "
      "It looks like a sphere covered in eyes, with extra eyes "
      "growing out of it. Little eye sprouts if you will." );
    set_gender( "unknown" );
    set_race( MON "beholder_race" );
    //set_guild()
    //set_specialization
    set_skill( "dodge", 50 );
    set_alignment( -4000 );
    set_stat( "str", random( 5000 ) );
    set_stat( "con", random( 5000 ) );
    set_proficiency( "hands", 50 );
    set_move_rate( 60 );
    set_move_chance( 50 );
    set_aggressive( 3 );
    add_combat_message( "smack", "smacks" );
    add_combat_message( "slup", "slurps" );
    add_combat_message( "grab", "grabs" );
    set_type( "blunt" );
    set_hit_bonus( 2 ); //So many eyes.
    set_heal_rate( 30 );
    set_heal_amount( random( THISO->query_max_hp() ) - random( 300 ) );
    set_natural_ac( 5 );
    set( "loot", 1 );
    add_money( random( 1000 ) );
    add_special_attack( "blastem", THISO, 10 );
}
Пример #2
0
void mtype::add_special_attacks( JsonObject &jo, const std::string &member ) {

    if( !jo.has_array( member ) ) {
        return;
    }

    JsonArray outer = jo.get_array(member);
    while( outer.has_more() ) {
        if( outer.test_array() ) {
            add_special_attack( outer.next_array() );
        } else if( outer.test_object() ) {
            add_special_attack( outer.next_object() );
        } else {
            outer.throw_error( "array element is neither array nor object." );
        }
    }
}
Пример #3
0
void extra_create() 
{
    switch( random( 3 ) )
    {
      case 0 : colorname = "green"  ; color = GRN; break;
      case 1 : colorname = "blue"   ; color = BLU; break;
      case 2 : colorname = "purple" ; color = MAG; break;
    }
    
    set_name( "a slime" );
    add_alias( "slime" );
    add_alias( sprintf( "%s slime", colorname ) );
    
    set_short( sprintf( "a %s slime", colorname ) );
    set_ansi_short ( sprintf( "%sa %s slime", color, colorname )  );
    
    set_long( sprintf( "This slime oozes sloppily through the room absorbing "
      "bits and pieces off of the mushrooms around it. Inside of its "
      "%s colored body you can see quite a bit of material. "
      "Hopefully it doesn't try to digest you!", colorname ) );
    
    set_race( FRACE "slime" );
    set_alignment( NEUTRAL_AL );
    
    set_stat( "str" , 200 );
    set_stat( "con" , 300 );
    
    
    set_proficiency( "hands", 150 );
    set_skill( "dodge", 65 );
    
    set( NoStealP, 1 );
    set( NoStunP, 1 );
    
    set_natural_ac( 10 );
    
    set_heal_rate( 20 );
    set_heal_amount( 60 );
    
    set_chat_rate( 30 );
    set_chat_chance( 50 );
    
    add_phrase( "#emote squelches along." );
    add_phrase( "#emote jiggles wildly." );

    set_move_rate( 40 );
    set_move_chance( 50 );
    
    set_pick_up_rate( 60 );
    set_pick_up_chance( 0 );
    
    set_heart_beat( 30 );
    
    add_special_attack( "mimic", THISO, 30 );
}
Пример #4
0
void extra_create()
{
   object ob;

   set_name(  "Paula Spleen" );
   add_alias( "paula" );
   add_alias( "spleen" );
   add_alias( "paula spleen" );
   add_alias( "Paula Spleen" );
   set_short( "Paula Spleen" );
   set_long(
     "This here be Paula.  She is famous round these parts fer "
     "being the best durn cook this side-a the mississipper.  "
     "She sure must love herself some butter, cuz she's five "
     "hunred pounds if shesa ounce yessireeee yeeehawwww."
   );

   set_race( "pig" );
   set_gender( "female" );
   set_alignment( 250 );

   set_stat( "str",  500 );
   set_stat( "int",    1 );
   set_stat( "wil",  800 );
   set_stat( "con",  500 );
   set_stat( "dex",  300 );
   set_stat( "chr", 1500 );

   set_max_fatigue( 25000 );
   set_natural_ac ( 10 );
   set_proficiency( "pig-fu", 6 );
   set_skill( "dodge", 100 );
   set_percent_bonus_exp( -15 );

   add_special_attack( "chuck_butter", THISO, 10 );

   ob = clone_object( ZOBJ "wig" );
     move_object( ob, THISO );
   ob = clone_object( ZOBJ "muumuu" );
     move_object( ob, THISO );
    ob = clone_object( ZOBJ "diabetes" );
      if( !ob ) ob = clone_object( ZOBJ "butter" );
      move_object( ob, THISO );

   call_out( "gear_up", 2 );
}
Пример #5
0
void extra_create()
{
    set_name( "the ghost of Rifrad" );
    add_alias( "rifrad" );
    add_alias( "ghost" );
    add_alias( "doctor" );
    add_alias( "ghost of rifrad" );
    
    set_short( "the ghost of Rifrad" );
    set_ansi_short( sprintf( "%sthe ghost of Rifrad", HIK ) );
    
    set_long( "Where there was once a being, there is now a fluctuating "
      "darkness. A cold ghastly presence. All that remains of Rifrad "
      "is his incorporal form." );   
    
    set_gender( "male" );
    set_alignment( NEUTRAL_AL );
    
    set_stat( "str" , 200 );
    set_stat( "con" , 200 );
    set_stat( "wil" , 500 );
    set_stat( "dex" , 200 );
    
    set_proficiency( "hands", 75 );
    set_skill( "dodge", 65 );
    
    set_type( "psychic" );
    
    set( NoStunP, 1 );
    set( UndeadP, 1 );
    
    set_aggressive( 1 );
    
    set_natural_ac( 3 );
    
    call_out( "hello", 1 );
    
    add_special_attack( "soulwell", THISO, 8 );
}    
Пример #6
0
void extra_create() 
{
    set_name( "Ramsey" );
    add_alias( "ramsey" );
    add_alias( "khan" );
    add_alias( "guard" );
    add_alias( "ramsey khan" );
    
    set_short( "Ramsey Khan, Facility 31 Security" );
    set_ansi_short ( YEL "Ramsey Khan, Facility 31 Security" );
    
    set_long( "Ramsey stares idlely around the "
      "office, taking in every event and detail. "
      "Though he seems to be mainly focused on the "
      "exit to the west. You may not want to push your "
      "luck. His arms are massive and covered in thick fluffy "
      "hair. For some reason he smells like the stuffing " 
      "that is found inside of blankets. There maybe more "
      "to this man than meets the eye." );
    
    set_gender( "male" );
    set_race( "human" );
    
    set_guild( "fighter" );
    set_specialization( "bodyguard" );
    set_skill( "grapple", 20 );
    
    
    set_alignment( MALICIOUS_AL );
    
    set_stat( "str" , 100 );
    set_stat( "con" , 300 );
    set_stat( "wil" , 500 );
    set_stat( "dex" , 200 );
    
    full_heal();
    
    set_proficiency( "hands", 30 );
    set_skill( "dodge", 65 );
    
    set( NoStealP, 1 );
    set( NoStunP, 1 );
    
    set_natural_ac( 10 );
    
    set_heal_rate( 20 );
    set_heal_amount( 60 );
    
    set_chat_rate( 30 );
    set_chat_chance( 50 );
    
    add_phrase( "#spit" );
    add_phrase( "#say This way isn't for you" );
    add_phrase( "#growl" );
    add_phrase( "#emote smiles showing more teeth than necessary." );
    add_phrase( "#grin" );
    add_phrase( "#say Go head, ask me what happened to the last intern." );
    add_phrase( "#say I've killed more people for just looking at " 
      "that stairwell than you've got teeth in your head." );
    
    ask_me_about( "intern", "#say I put him in "
      "his place. Always asking about the stairwell, " 
      "always prying " );
    
    move_object( clone_object( FARMOR "shirt" ), THISO );
    move_object( clone_object( FARMOR "pants" ), THISO );
    move_object( clone_object( FWEAP  "nails" ), THISO );

//This call_out is seperate so that he will equip the nails and
//be at full health when he spawns. Since the nails do
//damage on wield.
    
    call_out( "equip", 1 );
    
    add_special_attack( "go_bear", THISO, 40 );
}
Пример #7
0
void extra_create() 
{
    set_name( "Rifrad" );
    
    add_alias( "rifrad" );
    add_alias( "badgem" );
    add_alias( "doctor" );
    add_alias( "professor" );
    add_alias( "scientist" );
    add_alias( "doctor rifrad badgem" );
    
    set_short( "Doctor Rifrad Badgem" );
    
    set_long( "Rifrad stares dejectedly downwards. He barely "
      "acknowledges his own existence. His skin is old and wrinkled. "
      "He looks older than this building, older than time "
      "itself. His skin is extremely pale and his clothes are "
      "stained with sweat. He impatiently taps his fingers on the "
      "nearest table." );
    
    set_gender( "male" );
    set_race( "dwarf" );
    
    set_alignment( SAINTLY_AL );
    
    set_toughness( 45 );
    
    set_skill( "dodge", 65 );
    set_skill( "Darktongue", 25 );
    
    set( NoStealP, 1 );
    set( NoStunP, 1 );
    
    set_natural_ac( 3 );
    
    set_max_damage( 30 );
    
    set_chat_rate( 20 );
    set_chat_chance( 50 );
    
    add_phrase( "#shudder" );
    add_phrase( "#say So much has changed." );
    add_phrase( "#say What they do below, they will not say." );
    add_phrase( "#jitter" );
    
    listen_for( "shakes and rumbles", "AHAHAHAHA!!! THE "
	  "OLD ONE IS AWAKE!!!!!!" );
    
    ask_me_about( "change", "#say There was a time, "
      "when our work was new, and innocent. I "
      "fear that we may be overstepping the bounds." 
    );
    ask_me_about( "below", "#say This facility's location "
      "was carefully picked to be the most conducive to "
      "our needs. One of the things that enables us to "
      "delve so far into matters is the very earth itself. "
      "Our connection is through an ancient well that was dug "
      "here. It is older than time. Now I fear something "
      "sinister below. No one who works in that section "
      "will speak of it." 
    );
    ask_me_about( "experiments", "#say The screams... The screams..." );
    
    move_object( clone_object( FARMOR "pants" ), THISO );
    move_object( clone_object( FARMOR "shirt" ), THISO );
    command( "equip" );
  
    add_special_attack( "evasive", THISO, 10 );
    add_special_attack( "soulwell", THISO, 4 );
    add_special_attack( "banish", THISO, 1 );
}