abglobal.htm

abglobal.htm · 3.4 KB

From the archive ab.zip

Download the archive   « Back to the archive contents

<html>
 <head>
  <title>Dizzy Mud Area Coding Guide - Global and Local Limits</title>
 </head>
 <body BGCOLOR="#FFFFFF">
  <h3>A word on global and local limits</h3>
  It's vital that you know what you're doing with global and local mob
  limits, or the mob population in your area will behave in whacky ways
  not intended or expected by you.
  <p>
  Never mind what the description said about "in the game" for now, and just 
  read it as "in your area". That global limit says how many of that kind of
  mob you generally want to have in your area before the hunters arrive.
  That's TOTAL. If they walk around, they may be spread out. But the total
  maximum will be maintained, if your local maxima allow it.
  <p>
  The <b>local maximum</b> applies to the particular mob and the particular
  room you coded. It's a kind of population explosion limiter <b>for that
  room</b>. If your mobs can wander, your number of mobs in that room may
  never hit the limit you set, but mobs being loaded into that room and
  wandering around your area will contribute to the global maximum.
  <b>Once the global maximum is reached, no more mobs will be loaded in
  any of your rooms!</b> Not until someone kills a few off, anyway.
  <p>
  If your local maxima are too high, mobs will be loaded in the first few
  of your rooms (maybe only one) until the global maximum is reached, and
  never again will any mobs load in the other rooms because the global
  population puts a lid on things as soon as mobs are replaced in the first
  room or two. Putting your local maxima up close to your global max or
  even higher results in one or two crowded rooms which will always be
  bursting with mobs, and rooms further down the line perpetually empty.
  Worse, if those mobs happen to be of the assisting kind, that first room
  will be practically unplayable because it will always have too many 
  of that kind of mob in it; while the other rooms will be unplayable for
  lack of prey.
  <p>
  <b>A sensible example</b>: Set a global maximum of 10 mobs for a particular type.
  Let those mobs reset in 5 different rooms, with a local maximum of 2
  in each. That should make for a happy, balanced population. You will probably
  be working with smaller numbers yet unless you're populating a city the 
  size of Midgaard.
  <hr NOSHADE WIDTH="100%">
  <h3>Another word on global limits</h3>
  You may have noticed that there can be many M lines, all for the same mob.
  Each of them specifies "the global limit". Wait! If it's <em>the</em>
  global limit, why do you have to keep specifying it again and again?
  What's the story?
  <p>
  The truth is, each of these reset lines runs sort of independently and
  will act in accordance with whatever limits you tell it. Each of these
  reset lines believes the global limit you code <em>in it</em> to be the
  true and only global limit. If you code different global limits into
  different lines, the ones with the low limits will stop 'producing'
  earlier and the other ones will keep working up to the higher limit
  they were told about. In general, this doesn't result in a healthy
  balance and 'production' of mobs (or objects), so you are better advised
  to code the same "global limit" value into all mobs (or objects) of
  the same vnum. It saves confusion for everyone concerned.
  <hr>
  Back to <a HREF="abreset.htm#mline">#RESETS</a>
 </body>
</html>

Site Stats

Snippets: 1791
Codebases: 571