User Tools

Site Tools


lua:formatargs

This is an old revision of the document!


Many functions that accept string arguments will also accept format arguments (in the style of string.format.

In fact, in these cases, the function is just passing its arguments along to string.format, so it will work exactly the same.

say(“Hey %s, I have %d items!”, ch.name, #mob.items)

mdo(“poke %s”, ch.name)

lua/formatargs.1419665043.txt.gz · Last modified: 2014/12/26 23:24 by vodur