'Note that we choose to implement this with checking for
if the lid is open/closed. This is because this command
is likely to be tried regardless of the state of the lid.
An alternative would be to make two versions of this command
and tuck them into the cmdset linked to the Open and Closed
lid-state respectively.'

def func(self):

    if self.obj.db.lid_open:
        string = 'You    reach    out    to    press    the    big    red    button    ...'
        string += '\n\nA    BOOM!    A    bright    light    blinds    you!'
        string += '\nThe    world    goes    dark    ...'
        self.caller.msg(string)
        self.caller.location.msg_contents(('%s    presses    the    button.    BOOM!    %s    is    blinded    by    a    flash!' % (self.caller.name, self.caller.name)), exclude=self.caller)
        self.obj.press_button(self.caller)
    else:
        string = 'You    cannot    push    the    button    -    there    is    a    glass    lid    covering    it.'
        self.caller.msg(string)
