On Mon, 29 Jul 1996, Lost Empire wrote: > I've added many things to my mud in the last week, but now i think, > before i add more classes, i need more skills/spells for my existing > classes. One of the first things i want to do is add more warrior > spells, so i want to add something i call 'fury'. You can only do this > to yourself, and when you succesfully do it, you get +2 hitroll for 4 > ticks, then fury wears off, and you may type it again. I was basically > clueless on what to do for this, but nevertheless i gave it a stab, and > it is VERY wrong..well, first i drop my code, then tell you what i tried > to do. Well, as you will be "adding a series of new skills/spells", I would encourage you to do the following: In magic.c there is a procedure called mag_affects(). It handles all the affection spells in the std circle code. What you 'want' is to call this procedure, and have a case statement of SKILL_FURY there. Basically this would narrow your ACMD(do_furry) dwn to all your checks and stuff. then 'doing the affections' by: mag_affects(GET_LEVEL(ch), ch, ch, SKILL_FURY, 0); Hope this will help you, at least using mag_affects() made the life easier for me :) Regards, Con. d. -- Rasmus Rønlev DOEK'94 WWW: http://www.econ.cbs.dk/people/raro94ab Student instructor MUD: exiled.mud.circlemud.org 5000 199.199.16.100 5000 Student, B.Sc in Computer Science and Business Administration. +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST