Generally, powers are used to give an object limited permissions for something specific without having to resort to giving an object the wizard flag.
You can add and otherwise manage powers as God from in a game using the commands documented in HELP @POWER2, but aside from softcode checks using
haspower(), you'll have to modify hardcode to test for them.
Test for the presence of a power or not with:
has_power_by_name(object, "power name", NOTYPE)
- object is the dbref of the object, and "power name" should be obvious (It's a string).
You can also create new powers in the source, by modifying src/flaglocal.c to include an appropriate
add_power() call. See the example in that file.