Jump to content
Returning Members: Password Reset Required ×

Recommended Posts

Posted

guys a quick question,
i know that the x,y,cx,cy are the coords bounds
but i do not know how to generate the mobs ratio properly

image.png.2078d34ee8bc0dcb126f89ef22dacd11.png

in this example
the bounds between x,y,bound x and bound y
there will be 10 monsters or 25 ? what is the difference between maxnpc and max per gen ? how to generate them properly what is the formula?

Posted
if (generator.Grid >= 1)
{
  maxNpc = (int)((generator.BoundCx / generator.Grid) * (generator.BoundCy / generator.Grid));
  if (maxNpc < 0)
  {
    maxNpc = 1;
  }
}

Grid is the `maxnpc` field.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...