<pclass="last">You are reading an old version of the Evennia documentation. <ahref="https://www.evennia.com/docs/latest/index.html">The latest version is here</a></p>.
<p>Note that you must drop the button before you can see its messages! It’s
imperative that you press the red button. You know you want to.</p>
<p>Use <codeclass="docutils literal notranslate"><spanclass="pre">del</span><spanclass="pre">button</span></code> to destroy/stop the button when you are done playing.</p>
<sectionid="technical">
<h2>Technical<aclass="headerlink"href="#technical"title="Permalink to this headline">¶</a></h2>
<p>The button’s functionality is controlled by CmdSets that gets added and removed
depending on the ‘state’ the button is in.</p>
<ulclass="simple">
<li><p>Lid-closed state: In this state the button is covered by a glass cover and
trying to ‘push’ it will fail. You can ‘nudge’, ‘smash’ or ‘open’ the lid.</p></li>
<li><p>Lid-open state: In this state the lid is open but will close again after a
certain time. Using ‘push’ now will press the button and trigger the
Blind-state.</p></li>
<li><p>Blind-state: In this mode you are blinded by a bright flash. This will affect
your normal commands like ‘look’ and help until the blindness wears off after
a certain time.</p></li>
</ul>
<p>Timers are handled by persistent delays on the button. These are examples of
<codeclass="docutils literal notranslate"><spanclass="pre">evennia.utils.utils.delay</span></code> calls that wait a certain time before calling a
method - such as when closing the lid and un-blinding a character.</p>
<hrclass="docutils"/>
<p><small>This document page is generated from <codeclass="docutils literal notranslate"><spanclass="pre">evennia/contrib/tutorials/red_button/README.md</span></code>. Changes to this
file will be overwritten, so edit that file rather than this one.</small></p>
<pclass="last">You are reading an old version of the Evennia documentation. <ahref="https://www.evennia.com/docs/latest/index.html">The latest version is here</a></p>.
</div>
<divclass="footer"role="contentinfo">
© Copyright 2023, The Evennia developer community.
Created using <ahref="https://www.sphinx-doc.org/">Sphinx</a> 3.2.1.