dammessage( damage )
Used to produce damage messages matching regular in game damage messages, being based of the amount of damage.
Returns 3 string values: singular verb, plural verb, and punctuation.
local dam=randnum(750,1250) local sng,pl,pnct=dammessage(dam) echoat(ch, string.format("%s's cannon %s you%s", mob.shortdescr, pl, pnct)) damage( ch, dam)