Unnamed
public text v1 · immutableon *:TEXT:!tell*:#:{
if ($2 == cav) && (%p1cav == 0) { notice %player1 You have no cavalry left to attack with! }
if ($3 == cav) && (%p2cav == 0) { notice %player1 You opponent has no cavalry to attack! }
if ($2 == cav) && ($3 == cav) && (%turn == 1) {
if (p1cav >= %p2cav) {
set %p2cav 0
set %p1cav $calc(( %p1cav / 10) * $r(7,9))
notice $nick Test
}
}
}