Objflag

Main.Objflag History

Hide minor edits - Show changes to output

December 31, 2008, at 06:13 PM EST by admin
Added lines 1-13:
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)