On Fri, 2002-07-12 at 14:28, Matt Foltz wrote: > I'm not trying to insert another argument into > damage(), I think you misread my original message. I > want to use a string inputted from the mpdamage > function instead of dt into the damage() function. > Ie:
then, do it this way (as was previously explained): Copy void damage(blah) to new_damage(blah). go through, change the int (damtype) to char (damtype). Make SURE you go through your own code and change the references to damtype in there to show that they're NOT integers (they're chars now) instead of calling damage(blah) in mob_commands.c (ONLY in mob_damage), you should call damage_new(blah), and PLEASE make sure you put the code in right.. Should be "pinch", not pinch.. Otherwise, well, you'll have a hell of a time explaining pinch to the compiler. Also, what I'd do (personally), is go through mob_damage, and change damage(victim, victim) to damage(ch, victim), so that the victim isn't killing themselves, or damaging themselves. The mob is. If this doesn't apply, scrap it, I've modified mobprogs quite heavily and it COULD be something unique to the obj/room prog code alone too (the whole file gets replaced). This is probably the easiest way for you to handle that little dilemna.. Hope it works. -- TJW :Head tech, designer, bum:P Mud :http://dreamless.wolfstream.net telnet :telnet://dreamless.wolfstream.net 9275 OLC Pages:http://olc.wolfstream.net

