From AardWiki

Main: Objflag

     objflag - syntax: objflag(obj,"flag-name",[0|1]) 

When called with an OBJ type variable and a flag name, returns true or false if that flag is set. If the third argument is set to 0 or 1, this turns the flag on and off respectively.

   --- Is this item humming?
    if objflag(obj,"hum") then
       say("Cool! This item is humming.")
    end

   --- Remove rot-death from goal version of callhero portal.
    objflag(obj,"rot-death",0)

Retrieved from http://www.aardwolf.com/wiki/index.php/Main/Objflag
Page last modified on December 31, 2008, at 06:13 PM EST