User Tools

Site Tools


lua:ch:act

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lua:ch:act [2014/06/20 19:29] vodurlua:ch:act [2014/06/20 19:45] (current) vodur
Line 1: Line 1:
 Check ACT flag (NPCs) or PLR flag (PCs). Check ACT flag (NPCs) or PLR flag (PCs).
 +
 +See 'act_flags' and 'plr_flags' tables.
  
 See [[:lua:flagcheck|flagcheck]] for syntax reference. See [[:lua:flagcheck|flagcheck]] for syntax reference.
Line 5: Line 7:
 Example: Example:
  
-<code lua>if mob:act("safe") then +<code lua> 
-  mob:say("I'm safe") end   if ch:act("helper") then   mob:say("You're a helper.")+if mob:act("safe") then 
 +  mob:say("I'm safe") 
 +end 
 + 
 +if ch:act("helper") then 
 +  mob:say("You're a helper.")
 end end
 </code> </code>
  
lua/ch/act.1403292543.txt.gz · Last modified: 2014/06/20 19:29 by vodur