here is one script that does a similar thing but in a different way

on *:text:*:#: { if ($1 == !land) && ($chan != #chat) {
var %n $2
var %e $2
var %r 0
var %creep 0
:next2
%creep = %n * 0.1
if (%creep < 20) {
var %creep 20
}
%n = %n - %creep
inc %r
if (%n > 0) {
goto next2 }
/msg $chan 12,9 Starting Land: %e It will take %r hits to kill the empire | halt
}

elseif ($1 == !roids) && ($chan != #chat) {
var %n $2
var %e $2
var %r 0
var %creep 0
:next2
%creep = %n * 0.1
if (%creep < 10) {
var %creep 10
}
%n = %n - %creep
inc %r
if (%n > 0) {
goto next2 }
/msg $chan 12,9 Starting Roids: %e It will take %r hits to kill the empire | halt