User Tools

Site Tools


lua:formatargs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
lua:formatargs [2014/12/27 07:24] – vodurlua:formatargs [2026/10/13 22:01] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-Many functions that accept string arguments will also accept format arguments (in the style of [[http://www.lua.org/pil/20.html|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. 
- 
-<code lua> 
-say("Hey %s, I have %d items!", ch.name, #mob.items) 
-</code> 
- 
-<code lua> 
-mdo ("poke %s", ch.name) 
-</code> 
  
lua/formatargs.1419665074.txt.gz · Last modified: by vodur