User Tools

Site Tools


lua:flagcheck

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
lua:flagcheck [2014/06/20 12:37]
vodur
lua:flagcheck [2014/06/20 12:37] (current)
vodur
Line 15: Line 15:
 <code lua>for k,v in pairs(mob:​act()) do <code lua>for k,v in pairs(mob:​act()) do
  
-say("​My "​..v.."​ flag is set")+  ​say("​My "​..v.."​ flag is set")
  
 end end
Line 38: Line 38:
 Example: Example:
  
-<code lua>if mob:​act("​safe"​) then +<code lua> 
- +if mob:​act("​safe"​) then 
-mob:​say("​I'​m safe"​) ​  ​else ​  ​mob:​say("​I'​m not safe") +  mob:​say("​I'​m safe"​) ​   
 +else    
 +  ​mob:​say("​I'​m not safe")
 end end
 </​code>​ </​code>​
  
lua/flagcheck.txt · Last modified: 2014/06/20 12:37 by vodur