Re: [MOB][NEWBIE]

From: Richard Glover (magik@thegrid.net)
Date: 03/15/99


===Snippet from /doc/building.txt:===

4.2.  Type S Mobiles

For type S mobs, the type-specific information should be in the
following format:

     ______________________________________________________________________
     <level> <thac0> <armor class> <max hit points> <bare hand damage>
     <gold> <experience points>
     <load position> <default position> <sex>
     ______________________________________________________________________

   Level
      The level of the monster, from 1 to 30.

   THAC0
      ``To Hit Armor Class 0'' -- a measure of the ability of the
      monster to penetrate armor and cause damage, ranging from 0 to
      20.  Lower numbers mean the monster is more likely to penetrate
      armor.  The formal definition of THAC0 is the minimum roll
      required on a 20-sided die required to hit an opponent of
      equivalent Armor Class 0.

===Snippet from fight.c:===

  /* Calculate the THAC0 of the attacker */
  if (!IS_NPC(ch))
    calc_thaco = thaco((int) GET_CLASS(ch), (int) GET_LEVEL(ch));
  else  /* THAC0 for monsters is set in the HitRoll */
    calc_thaco = 20;
  calc_thaco -= str_app[STRENGTH_APPLY_INDEX(ch)].tohit;
  calc_thaco -= GET_HITROLL(ch);
  calc_thaco -= (int) ((GET_INT(ch) - 13) / 1.5); /* Intelligence helps! */
  calc_thaco -= (int) ((GET_WIS(ch) - 13) / 1.5); /* So does wisdom */

===Snippet from db.c:===

  if (sscanf(line, " %d %d %d %dd%d+%d %dd%d+%d ",
   t, t + 1, t + 2, t + 3, t + 4, t + 5, t + 6, t + 7, t + 8) != 9) {
    log("SYSERR: Format error in mob #%d, first line after S flag\n"
 "...expecting line of form '# # # #d#+# #d#+#'", nr);
    exit(1);
  }

  GET_LEVEL(mob_proto + i) = t[0];
  mob_proto[i].points.hitroll = 20 - t[1];
  mob_proto[i].points.armor = 10 * t[2];

Thus, if you give a mob a THAC0 of 5, it will give them a HITROLL of +15,
which is placed in the first line, second parameter of simple/enhanced mobs
AFTER the S/E flag line.

Rick

-----Original Message-----
From: Robin Wylie <wylier@bach.augustana.ab.ca>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Monday, March 15, 1999 9:02 PM
Subject:  [MOB][NEWBIE]


I'm havin problems fiurin out how to put the proper THACHO into the
olc I'm workin with. it's version circle 3.0 gamma 0.0 I'm not sure
of the exact version of OLC.
Can you even ive your mob a thacho and how would you do it?
Robin


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST