There are still a few problems with the code as is.
It's still checking
if (CAN_GO(ch, dir) && !IS_SET(ROOM_FLAGS(EXIT(ch,dir) ....
At the beginning you no longer set dir = 0; so this is going
to cause a problem here. Those dir's should be retreat_type
also OR set dir = retreat_type before this.
You're now checking to see if ch CAN_GO in some strange direction
that's not really defined. That could be bad :)
Sean
> if (prob <= percent){
> if (CAN_GO(ch, dir) && !IS_SET(ROOM_FLAGS(EXIT(ch,dir)->to_room),
>ROOM_DEATH))
> {
> act("$n skillfully retreats from combat.", TRUE, ch, 0, 0, TO_ROOM);
> send_to_char("You skillfully retreat from combat.\r\n", ch);
> WAIT_STATE(ch, PULSE_VIOLENCE);
> do_simple_move(ch, retreat_type, TRUE);
> if (FIGHTING(ch))
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST