lua:dammessage
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lua:dammessage [2015/11/29 04:49] – created vodur | lua:dammessage [2019/02/16 04:27] (current) – aethyn | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <code lua> | + | 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. | ||
| + | |||
| + | <code lua> | ||
| local dam=randnum(750, | local dam=randnum(750, | ||
| local sng, | local sng, | ||
| - | echoat(ch, " | + | echoat(ch, |
| - | mob.shortdescr, | + | mob.shortdescr, |
| damage( ch, dam) | damage( ch, dam) | ||
| </ | </ | ||
| + | |||
lua/dammessage.1448772546.txt.gz · Last modified: 2015/11/29 04:49 by vodur