'The script system will regularly call this
function to make the button blink. Now and then
it won\'t blink at all though, to add some randomness
to how often the message is echoed.'

def blink(self):

    loc = self.location
    if loc:
        rand = random.random()
        if (rand < 0.2):
            string = 'The    red    button    flashes    briefly.'
        elif (rand < 0.4):
            string = 'The    red    button    blinks    invitingly.'
        elif (rand < 0.6):
            string = 'The    red    button    flashes.    You    know    you    wanna    push    it!'
        else:
            return
        loc.msg_contents(string)
