This shows you the differences between two versions of the page.
lua:ch:at [2014/12/27 07:08] vodur created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Syntax: | ||
- | |||
- | ch:at(string) | ||
- | |||
- | Format: \\ | ||
- | at [location] [command] : execute command at location | ||
- | |||
- | Accepts [[:lua:formatargs|format arguments]]. | ||
- | |||
- | Examples: | ||
- | |||
- | \\ | ||
- | |||
- | <code lua> | ||
- | mob:at(ch.name.." dance") | ||
- | </code> | ||
- | |||
- | <code lua> | ||
- | mob:at("%d say hi there stranger", doggy.room.vnum) | ||
- | </code> | ||
- | |||
- | If you want to use functions within your at statement, you'll need to treat the at statement like an old mprog: | ||
- | |||
- | <code lua> | ||
- | mob:at("%d mob mload 9313", wing_vnums[r]) | ||
- | </code> | ||