Easiest way? Run it through damage(). Either create some new messages, or have the proc message itself, and call damage with any non-messaged attack type. On Sat, 16 Nov 1996, Brian Williams - Nashak wrote: > well, I have a question again.. I was wondering.. how to make people die > when their hps go under -10 when a spec is called.. i.e. I have 1 hp left, > a spec is called that does 100 damage.. and I have -99 hp.. I don't die.. > how would I change that? here is my spec I am trying to fix to do that: > any help will be greatly appreciated =) > > SPECIAL(black_dragon) > { > struct char_data *vict; > > if (cmd || GET_POS(ch) != POS_FIGHTING) > return FALSE; > > if (number(1, 50) >= 45) { > act("$n breathes acid!", 1, ch, 0, 0, TO_ROOM); > for (vict = world[ch->in_room].people; vict; vict = vict->next_in_room) { > GET_HIT(vict) -= 25; > send_to_char("You are burned by the acid!\r\n", vict); > update_pos(vict); > } > } > return TRUE; > } > > > > > /---------\ /--------/ > / /XXXXXXX\ \ / ////// / > / ///XXXXX\\\ \ / ////// / > / /////XXX\\\\\ \/ ////// / mud.penguin.net 4000 > / ////// \\\\\\\ ////// / Brian Williams > / ////// /\ \\\\\XXX///// / bmw@efn.org > / ////// / \ \\\XXXXX/// / > / ////// / \ \XXXXXXX/ / /\ /_ |_| /\ |/ > /--------/ \---------/ /--\ / | | /--\ |\ > > +-----------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > +-----------------------------------------------------------+ > +-----------------------------------------------------------+ | 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/18/00 PST