User Tools

Site Tools


lua:dammessage

This is an old revision of the document!


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, "%s's cannon %s you%s",
    mob.shortdescr, pl, pnct)
damage( ch, dam)
lua/dammessage.1497396865.txt.gz · Last modified: 2017/06/13 23:34 by vodur