Re: MOB classes & algorithms

From: John Evans (evansj@HI-LINE.NET)
Date: 05/04/98

On Mon, 4 May 1998, Lubos Lunak wrote:

>  My idea is every class will have its own fight abilities ( dragon
> breaths, fire spells, etc. ) and it will choose what it will do


> Can someone tell me where I can find such functions ? Or do I have to
> write it all myself ?

I felt the same way that you did and did the same thing that you are
planning on. It took over two thousand lines of code, but I did it.

What I did is took my list of skills and spells that the players have
available and at what level they get them. I sat down and thought, "If I
was a 1st level mage, what would I do in a fight? What would I do out of
a fight?" Of course, these was simple logic because at 1st level you
don't have many choices. I went up the levels from 1 to 50, and did the
same for all my classes.

If a class could heal, then it would take healing as priority over
anything else and make sure (if it could) that it's HPs didn't drop below
XX percentage. The XX would change depending on whether or not they were
in a fight.

When not fighting, the mobs would cast helpful spells upon themselves...
Things like bless, armor, sanctuary, fly, haste, so on and so forth.

I know that that is no code, but hopefully my ideas help you some.

John Evans <>  --

Any sufficiently advanced technology is indistinguishable from magic.
  -- Arthur C. Clarke

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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