<spanid="evennia-contrib-ingame-python-eventfuncs"></span><h1>evennia.contrib.ingame_python.eventfuncs<aclass="headerlink"href="#module-evennia.contrib.ingame_python.eventfuncs"title="Permalink to this headline">¶</a></h1>
<p>Module defining basic eventfuncs for the event system.</p>
<p>Eventfuncs are just Python functions that can be used inside of calllbacks.</p>
<codeclass="sig-prename descclassname">evennia.contrib.ingame_python.eventfuncs.</code><codeclass="sig-name descname">deny</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/ingame_python/eventfuncs.html#deny"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.ingame_python.eventfuncs.deny"title="Permalink to this definition">¶</a></dt>
<dd><p>Deny, that is stop, the callback here.</p>
<pclass="rubric">Notes</p>
<p>This function will raise an exception to terminate the callback
in a controlled way. If you use this function in an event called
prior to a command, the command will be cancelled as well. Good
situations to use the <strong>deny()</strong> function are in events that begins
by <strong>can_</strong>, because they usually can be cancelled as easily as that.</p>
<codeclass="sig-prename descclassname">evennia.contrib.ingame_python.eventfuncs.</code><codeclass="sig-name descname">get</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/ingame_python/eventfuncs.html#get"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.ingame_python.eventfuncs.get"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">evennia.contrib.ingame_python.eventfuncs.</code><codeclass="sig-name descname">call_event</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">obj</span></em>, <emclass="sig-param"><spanclass="n">event_name</span></em>, <emclass="sig-param"><spanclass="n">seconds</span><spanclass="o">=</span><spanclass="default_value">0</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/ingame_python/eventfuncs.html#call_event"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.ingame_python.eventfuncs.call_event"title="Permalink to this definition">¶</a></dt>