<spanclass="c1"># Declare the variables with their type</span>
<spanclass="n">userid</span><spanclass="o">=</span><spanclass="n">ShortVariable</span><spanclass="p">(</span><spanclass="s1">'The userid of the player involved in the event.'</span><spanclass="p">)</span>
<spanclass="n">pos_x</span><spanclass="o">=</span><spanclass="n">FloatVariable</span><spanclass="p">(</span><spanclass="s1">'The x value of some location in the event.'</span><spanclass="p">)</span>
<spanclass="n">pos_y</span><spanclass="o">=</span><spanclass="n">FloatVariable</span><spanclass="p">(</span><spanclass="s1">'The y value of some location in the event.'</span><spanclass="p">)</span>
<spanclass="n">pos_z</span><spanclass="o">=</span><spanclass="n">FloatVariable</span><spanclass="p">(</span><spanclass="s1">'The z value of some location in the event.'</span><spanclass="p">)</span>
<spanclass="n">weapon</span><spanclass="o">=</span><spanclass="n">StringVariable</span><spanclass="p">(</span><spanclass="s1">'The weapon used in the event.'</span><spanclass="p">)</span>
</pre></div>
</div>
<p>The next step is to create the resource file and load the events. For more
information, look to the <aclass="reference internal" href="../modules/events.resource.html#module-events.resource" title="events.resource"><codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">events.resource</span></code></a> module.</p>
<p>The other way, is to set the variables on instantiation.</p>
<divclass="highlight-python notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># Create the event and define the variable values on instantiation</span>