stick in an update_pos( ch or vict or vitcim or whatever);
ie. just stick in your code like I did below
GET_HIT(vict) -= 25;
update_pos(vict);
get the idea?
Monroe - Eternal
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;
> }
>
._ o
/ //\. Michael A. Clubine (maclubin@syr.edu)
' \>> | E t e r n a l (smith.syr.edu 4000)
\\ ' http://borogove.syr.edu/
+-----------------------------------------------------------+
| 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