MEDIT default settings

From: Del (caminturn@earthlink.net)
Date: 01/23/00


using bpl17 (pre), and Oasis 2.0;

I added this in to help set some general values for mobs.

NOTE!!! The formula's will need to be calculated for your mud!
AND!! As always.. back up your entire MUD before using this!

oasis.h
add after MEDIT_ALIGNMENT     xx
#define MEDIT_DEFAULTS       XX


medit.c
top of medit_parse
add
int defaults;

in display menu
add
"%sZ%s) Defaults   :\r\n"
and
grn, nrm

add
case 'z':
case 'Z':
  SEND_TO_Q("\r\nEnter the level to base defaults : ", d);
  OLC_MODE(d) = MEDIT_DEFAULTS;
  i++;
  return;


add after case MEDIT_ALIGNMENT:

case MEDIT_DEFAULTS:
     default = LIMIT(i, 1, 100);
     GET_LEVEL(OLC_MOB(d)) = default;
     GET_HITROLL(OLC_MOB(d)) = MAX(0, default - 1);
     GET_DAMROLL(OLC_MOB(d)) = MAX(0, int(default / 2))
     GET_NDD(OLC_MOB(d)) = MAX(1, int(default/25));    /* number damage
dice 1-4*/
     GET_SDD(OLC_MOB(d)) = MAX(2, int(default/10));    /* size of damage
dice 2-10*/
     GET_HIT(OLC_MOB(d)) = default * 3;           /* number of hitpoint
dice */
     GET_MANA(OLC_MOB(d)) = MAX(2, int(default / 10)); /* Yes, this is
size of hitpoint dice */
     GET_MOVE(OLC_MOB(d)) = default * default);   /* Yes, this is hit
point bonus */
     GET_AC(OLC_MOB(d)) = MAX(-10, 10 - (default / 2.5));
     GET_EXP(OLC_MOB(d)) = default * 25 * 25 + int(default * 2.5);


     +------------------------------------------------------------+
     | 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 : 04/10/01 PDT