This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
lua:ch:act [2014/06/20 19:45] vodur |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Check ACT flag (NPCs) or PLR flag (PCs). | ||
| - | |||
| - | See 'act_flags' and 'plr_flags' tables. | ||
| - | |||
| - | See [[:lua:flagcheck|flagcheck]] for syntax reference. | ||
| - | |||
| - | Example: | ||
| - | |||
| - | <code lua> | ||
| - | if mob:act("safe") then | ||
| - | mob:say("I'm safe") | ||
| - | end | ||
| - | |||
| - | if ch:act("helper") then | ||
| - | mob:say("You're a helper.") | ||
| - | end | ||
| - | </code> | ||