lua:flagcheck
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lua:flagcheck [2014/06/20 19:36] – vodur | lua:flagcheck [2026/10/13 22:00] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Syntax 1: | ||
| - | |||
| - | <code lua> | ||
| - | T: | ||
| - | </ | ||
| - | |||
| - | Arguments: none | ||
| - | |||
| - | Return value: table. | ||
| - | |||
| - | Returns a table of currently set flags. | ||
| - | |||
| - | Example: | ||
| - | |||
| - | <code lua>for k,v in pairs(mob: | ||
| - | |||
| - | say(" | ||
| - | |||
| - | end | ||
| - | </ | ||
| - | |||
| - | Syntax 2: | ||
| - | |||
| - | > T: | ||
| - | |||
| - | <code lua> | ||
| - | |||
| - | </ | ||
| - | |||
| - | Arguments: | ||
| - | |||
| - | **flag **- string value of the flag to be checked | ||
| - | |||
| - | Return value: boolean | ||
| - | |||
| - | Returns true if the given flag is set, false if the flag is not set. | ||
| - | |||
| - | Error if **flag ** is not a valid flag for the method. | ||
| - | |||
| - | Example: | ||
| - | |||
| - | <code lua>if mob: | ||
| - | |||
| - | mob: | ||
| - | |||
| - | end | ||
| - | </ | ||
lua/flagcheck.1403292984.txt.gz · Last modified: by vodur
