rendered paste bodyon *:text:!gmaul*:#: {
if (%turn == 1) {
if ($nick == %player1) {
if (%spec3 < 1) {
set %hit3 $rand(5,20)
set %hit4 $rand(5,20)
set %hit5 $rand(5,20)
inc %spec1
msg $chan 10 $+ %player1 swings his granite maul at %player2 and hits [4 $+ %hit3 $+ ]10, [4 $+ %hit4 $+ ]10, and [4 $+ %hit5 $+ ]
dec %p2hp %hit3
dec %p2hp %hit4
dec %p1hp %hit5
msg $chan 10 $+ %player2 has [4 $+ %p2hp $+ ]10 hp left
set %turn 2
}
if (%p2hp < 0) {
msg $chan 10 $+ %player1 has defeated %player2 $+ .
unset %dm
unset %player1
unset %player2
unset %dm2
unset %p1hp
unset %p2hp
unset %spec1
unset %spec2
unset %spec 3
unset %turn
unset %hit1
unset %hit2
unset %hit3
unset %hit4
unset %hit5
}
else {
}
}
else {
notice $nick 10You are out of special attack energy.
}
}
else {
if (%turn == 2) {
if ($nick == %player2) {
if (%spec3 < 1) {
set %hit1 $rand(5,20)
set %hit2 $rand(5,20)
set %hit3 $rand(5,20)
inc %spec3
msg $chan 10 $+ %player2 swings his granite maul at %player1 and hits [4 $+ %hit3 $+ ]10, [4 $+ %hit4 $+ ]10, and [4 $+ %hit5 $+ ]
dec %p1hp %hit3
dec %p1hp %hit4
dec %p1hp %hit5
msg $chan 10 $+ %player1 has [4 $+ %p1hp $+ ]10 hp left
set %turn 1
if (%p2hp < 0) {
msg $chan 10 $+ %player2 has defeated %player1 $+ .
unset %dm
unset %player1
unset %player2
unset %dm2
unset %p1hp
unset %p2hp
unset %spec1
unset %spec2
unset %spec 3
unset %turn
unset %hit1
unset %hit2
unset %hit3
unset %hit4
unset %hit5
}
else {
}
}
else if (%spec3 == 1) {
notice $nick 10You are out of special attack energy.
}
}
}
}
}