Yes, I soon wizened up and took another approach. :) I simply borrowed some code from mobile_activity, made an invasion_activity, and have them wander around aimlessly, aggro to whomever they meet. I made the invasion_activity pulse much faster, to seem like the MOBs are actually running and invading, instead of wandering pointlessly. I also made a siege command, so that implementors can siege the city of their choice. I'm not sure if I will make this automated yet...might be difficult to make it happen at wide, random intervals. I also added an INVASION flag, so that invasion_activity doesn't cause all the MOBs on my mud to go completely haywire. Of course, we could have a global mob frenzy...perhaps alignment based as was suggested before...hmmm...poor players. :) Thanks! >Its possible in C, yes... almost anything program-wise is possible in C >:-) >However, thats kind of drastic, and allows for too strict hunting, IMHO. > >I would recommend a simple function that aggy mobs would do: scan each >direction, as far as line of sight permits (up to a maximum distance), >and find a character it would attack, then start hunting that character. >If none, just wander until someone enters line of sight. Realistic and >far less processing power needed. > >But as far as "power required", its not that much... MUDs run normally at >> 1% CPU power on a P2/233 Linux system... our development port, (at time of >check: 7.5k rooms, 1.5k mobs loaded, 5.8k objs loaded, 26 hours uptime. >This has scripts and mobprogs, and is in C++, so there is more overhead >than a C-based mud) uses less than .5% of CPU time (7:02 time usage). Of >course, with players on, this would maybe double or triple, but the other >port is 4 month old code and crashes every so often... like rightbefore I >started writing this letter, so I can't check it :-) But you get the >idea. > >- Chris Jacobson [ Tadrith Skandrakae, Implementor of Dreamscape ] [ - telnet://mud.dreamscape.org:1234/ - ] ["I lay my dreams before your feet; ] [ tread softly, for you tread on my dreams. ] +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST