on *:text:!dh*:#: { if (%turn == 1) { if ($nick == %player1) { set %turn 2 set %dh $rand(20,81) msg $chan %player1 has hit a %dh dec %p2hp %dh msg $chan %player2 has %p2hp hp left if (%p2hp < 0) { msg $chan %player2 has defeated %player1 unset %duel unset %player1 unset %player2 unset %duel2 unset %p1hp unset %p2hp unset %spec1 unset %spec2 unset %turn unset %hit1 unset %hit2 } else { } } } if (%turn == 2) { if ($nick == %player2) { set %turn 1 set %dh $rand(20,81) msg $chan %player2 has hit a %dh dec %p1hp %dh msg $chan %player1 has %p1hp hp left if (%p1hp < 0) { msg $chan %player2 has defeated %player1 unset %duel unset %player1 unset %player2 unset %duel2 unset %p1hp unset %p2hp unset %spec1 unset %spec2 unset %turn unset %hit1 unset %hit2 } else { } } } }