Anyone have suggestions or codes on how I can foods with special properties, i.e. A Herb which causes 'cure light' or a pill that cures blindness, etc. BTW - How the hell can you eat a pill if your blind ;) -J "Listening to some short green alien dude who babbles about the force just might get you trouble, stupid!" Wise Words form J #045 +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+ From goamkows@kirk.geog.sc.edu Wed, 21 Aug 96 13:08:22 EDT X-SystemInfo: MyE-Mail: EMail X-Message-No: 3937 (database) From: goamkows <goamkows@kirk.geog.sc.edu> To: circle <circle@cspo.queensu.ca> Subject: [Circle] spells Date: Wed, 21 Aug 96 18:08:00 Message-ID: <CMM.0.90.0.840647302.goamkows@janeway.geog.sc.edu> Reply-To: goamkows@kirk.geog.sc.edu (goamkows) X-POP3-Rcpt: lk4150@per Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca> Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id TAA15791 for <lk4150@krull.dk>; Wed, 21 Aug 1996 19:08:47 +0200 Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Wed, 21 Aug 96 13:14:22 EDT Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id NAA17189; Wed, 21 Aug 1996 13:03:09 -0500 Received: from otis.cla.sc.edu by cspo.queensu.ca (SMI-8.6/SMI-SVR4) Received: from kirk.geog.sc.edu by otis.cla.sc.edu (4.1/SMI-4.1) Received: from janeway.geog.sc.edu by kirk.geog.sc.edu (4.1/SMI-4.1) Sender: owner-circle@cspo.queensu.ca Precedence: bulk ok, i'll bite for all you newbies out there :) to add a spell: in spells.h, add a #define for the spell (where all the others are), giving it a unique number less than MAX_SPELLS (defined at the bottom of the spell list, before the skill list). if it is a manual spell, search for ASPELL and add one for the new spell you are putting in. furthermore, for manual spells, put the code itself for the spell at the bottom of spells.c. if it is not a manual spell, in magic.c, if it is a spell that does damage, search for man_damage and put in a case for your spell. if it affects a character in any way (e.g. strength, armor, blindness, etc.), put in a case in mag_affects. etc. for the other spell types. read the comments for each type - they are there for a reason :) when all this is done, go over to spell_parser.c. put the spell into char *spells[] in a slot marked UNUSED (it should have an index number equal to the value you defined the spell to be in spells.h, so if SPELL_KILL_BARNEY is defined as 101 in spells.h, it better be in slot 101 in spells[] - the slots are marked every 5 for convenience. if the spell is a manual spell, in the call_magic function, add a case for it where the other manual spells are. finally, add a spello - there are detailed notes on what each value should be, so it should not be difficult. if necessary, just copy another spell of the same type and modify it to suit your needs. finally, in constants.c, search for spell_wear_off_msg[] and add a message at the end that will be displayed when the spell wears off. even if that doesn't make sense (spells with instantaneous effect), you need to put in the spell name (e.g. "!Kill Barney!",) anyway, so the index number in the array correspond with the correct spell. i think that's everything. +-----------------------------------------------------------+ | 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