<spanid="evennia-contrib-game-systems-barter-barter"></span><h1>evennia.contrib.game_systems.barter.barter<aclass="headerlink"href="#module-evennia.contrib.game_systems.barter.barter"title="Permalink to this headline">¶</a></h1>
<p>Barter system</p>
<p>Evennia contribution - Griatch 2012</p>
<p>This implements a full barter system - a way for players to safely
trade items between each other using code rather than simple free-form
talking. The advantage of this is increased buy/sell safety but it
also streamlines the process and makes it faster when doing many
transactions (since goods are automatically exchanged once both
agree).</p>
<p>This system is primarily intended for a barter economy, but can easily
be used in a monetary economy as well – just let the “goods” on one
side be coin objects (this is more flexible than a simple “buy”
command since you can mix coins and goods in your trade).</p>
<p>In this module, a “barter” is generally referred to as a “trade”.</p>
<ulclass="simple">
<li><p>Trade example</p></li>
</ul>
<p>A trade (barter) action works like this: A and B are the parties.</p>
<olclass="arabic simple">
<li><p>opening a trade</p></li>
</ol>
<p>A: trade B: Hi, I have a nice extra sword. You wanna trade?
B sees: A says: “Hi, I have a nice extra sword. You wanna trade?”</p>
<blockquote>
<div><p>A wants to trade with you. Enter ‘trade A <emote>’ to accept.</p>
</div></blockquote>
<p>B: trade A: Hm, I could use a good sword …
A sees: B says: “Hm, I could use a good sword …</p>
<blockquote>
<div><p>B accepts the trade. Use ‘trade help’ for aid.</p>
</div></blockquote>
<p>B sees: You are now trading with A. Use ‘trade help’ for aid.</p>
<olclass="arabic simple"start="2">
<li><p>negotiating</p></li>
</ol>
<p>A: offer sword: This is a nice sword. I would need some rations in trade.
B sees: A says: “This is a nice sword. I would need some rations in trade.”</p>
<blockquote>
<div><p>[A offers Sword of might.]</p>
</div></blockquote>
<p>B evaluate sword
B sees: <Sword’s description and possibly stats>
B: offer ration: This is a prime ration.
A sees: B says: “This is a prime ration.”</p>
<blockquote>
<div><p>[B offers iron ration]</p>
</div></blockquote>
<p>A: say Hey, this is a nice sword, I need something more for it.
B sees: A says: “Hey this is a nice sword, I need something more for it.”
B: offer sword,apple: Alright. I will also include a magic apple. That’s my last offer.
A sees: B says: “Alright, I will also include a magic apple. That’s my last offer.”</p>
<blockquote>
<div><p>[B offers iron ration and magic apple]</p>
</div></blockquote>
<p>A accept: You are killing me here, but alright.
B sees: A says: “You are killing me here, but alright.”</p>
<blockquote>
<div><p>[A accepts your offer. You must now also accept.]</p>
</div></blockquote>
<dlclass="simple">
<dt>B accept: Good, nice making business with you.</dt><dd><p>You accept the deal. Deal is made and goods changed hands.</p>
</dd>
<dt>A sees: B says: “Good, nice making business with you.”</dt><dd><p>B accepts the deal. Deal is made and goods changed hands.</p>
</dd>
</dl>
<p>At this point the trading system is exited and the negotiated items
are automatically exchanged between the parties. In this example B was
the only one changing their offer, but also A could have changed their
offer until the two parties found something they could agree on. The
emotes are optional but useful for RP-heavy worlds.</p>
<ulclass="simple">
<li><p>Technical info</p></li>
</ul>
<p>The trade is implemented by use of a TradeHandler. This object is a
common place for storing the current status of negotiations. It is
created on the object initiating the trade, and also stored on the
other party once that party agrees to trade. The trade request times
out after a certain time - this is handled by a Script. Once trade
starts, the CmdsetTrade cmdset is initiated on both parties along with
the commands relevant for the trading.</p>
<ulclass="simple">
<li><p>Ideas for NPC bartering:</p></li>
</ul>
<p>This module is primarily intended for trade between two players. But
it can also in principle be used for a player negotiating with an
AI-controlled NPC. If the NPC uses normal commands they can use it
directly – but more efficient is to have the NPC object send its
replies directly through the tradehandler to the player. One may want
to add some functionality to the decline command, so players can
decline specific objects in the NPC offer (decline <object>) and allow
the AI to maybe offer something else and make it into a proper
barter. Along with an AI that “needs” things or has some sort of
personality in the trading, this can make bartering with NPCs at least
moderately more interesting than just plain ‘buy’.</p>
<ulclass="simple">
<li><p>Installation:</p></li>
</ul>
<p>Just import the CmdTrade command into (for example) the default
cmdset. This will make the trade (or barter) command available
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">TradeTimeout</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o">*</span><spanclass="n">args</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeTimeout"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeTimeout"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">at_script_creation</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeTimeout.at_script_creation"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeTimeout.at_script_creation"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">at_repeat</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeTimeout.at_repeat"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeTimeout.at_repeat"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">is_valid</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeTimeout.is_valid"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeTimeout.is_valid"title="Permalink to this definition">¶</a></dt>
<dd><p>Only valid if the trade has not yet started</p>
<emclass="property">exception </em><codeclass="sig-name descname">DoesNotExist</code><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeTimeout.DoesNotExist"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-name descname">MultipleObjectsReturned</code><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeTimeout.MultipleObjectsReturned"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">path</code><emclass="property"> = 'evennia.contrib.game_systems.barter.barter.TradeTimeout'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeTimeout.path"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">typename</code><emclass="property"> = 'TradeTimeout'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeTimeout.typename"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">TradeHandler</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">part_a</span></em>, <emclass="sig-param"><spanclass="n">part_b</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">__init__</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">part_a</span></em>, <emclass="sig-param"><spanclass="n">part_b</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.__init__"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.__init__"title="Permalink to this definition">¶</a></dt>
<dd><p>Initializes the trade. This is called when part A tries to
initiate a trade with part B. The trade will not start until
part B repeats this command (B will then call the self.join()
command)</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>part_a</strong> (<em>object</em>) – The party trying to start barter.</p></li>
<li><p><strong>part_b</strong> (<em>object</em>) – The party asked to barter.</p></li>
</ul>
</dd>
</dl>
<pclass="rubric">Notes</p>
<p>We also store the back-reference from the respective party
<codeclass="sig-name descname">msg_other</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sender</span></em>, <emclass="sig-param"><spanclass="n">string</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.msg_other"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.msg_other"title="Permalink to this definition">¶</a></dt>
<dd><p>Relay a message to the <em>other</em> party without needing to know
which party that is. This allows the calling command to not
have to worry about which party they are in the handler.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>sender</strong> (<em>object</em>) – One of A or B. The method will figure
out the <em>other</em> party to send to.</p></li>
<li><p><strong>string</strong> (<em>str</em>) – Text to send.</p></li>
<codeclass="sig-name descname">get_other</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">party</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.get_other"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.get_other"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the other party of the trade</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>party</strong> (<em>object</em>) – One of the parties of the negotiation</p>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p><em>party_other (object)</em>– The other party, not the first party.</p>
<codeclass="sig-name descname">join</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">part_b</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.join"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.join"title="Permalink to this definition">¶</a></dt>
<dd><p>This is used once B decides to join the trade</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>part_b</strong> (<em>object</em>) – The party accepting the barter.</p>
<codeclass="sig-name descname">unjoin</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">part_b</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.unjoin"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.unjoin"title="Permalink to this definition">¶</a></dt>
<dd><p>This is used if B decides not to join the trade.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>part_b</strong> (<em>object</em>) – The party leaving the barter.</p>
<codeclass="sig-name descname">offer</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">party</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">args</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.offer"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.offer"title="Permalink to this definition">¶</a></dt>
<dd><p>Change the current standing offer. We leave it up to the
command to do the actual checks that the offer consists
of real, valid, objects.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>party</strong> (<em>object</em>) – Who is making the offer</p></li>
<li><p><strong>args</strong> (<em>objects</em><em> or </em><em>str</em>) – Offerings.</p></li>
<codeclass="sig-name descname">list</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.list"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.list"title="Permalink to this definition">¶</a></dt>
<dd><p>List current offers.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p><em>offers (tuple)</em>– A tuple with two lists, (A_offers, B_offers).</p>
<codeclass="sig-name descname">search</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">offername</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.search"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.search"title="Permalink to this definition">¶</a></dt>
<dd><p>Search current offers.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>offername</strong> (<em>str</em><em> or </em><em>int</em>) – Object to search for, or its index in
the list of offered items.</p>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p><em>offer (object)</em>– An object on offer, based on the search criterion.</p>
<codeclass="sig-name descname">accept</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">party</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.accept"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.accept"title="Permalink to this definition">¶</a></dt>
<dd><p>Accept the current offer.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>party</strong> (<em>object</em>) – The party accepting the deal.</p>
<codeclass="sig-name descname">decline</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">party</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.decline"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.decline"title="Permalink to this definition">¶</a></dt>
<dd><p>Decline the offer (or change one’s mind).</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>party</strong> (<em>object</em>) – Party declining the deal.</p>
<codeclass="sig-name descname">finish</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">force</span><spanclass="o">=</span><spanclass="default_value">False</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#TradeHandler.finish"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.TradeHandler.finish"title="Permalink to this definition">¶</a></dt>
<dd><p>Conclude trade - move all offers and clean up</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>force</strong> (<em>bool</em><em>, </em><em>optional</em>) – Force cleanup regardless of if the
trade was accepted or not (if not, no goods will change
hands but trading will stop anyway)</p>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p><em>result (bool)</em>– If the finish was successful.</p>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdTradeBase</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/game_systems/barter/barter.html#CmdTradeBase"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeBase"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">parse</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdTradeBase.parse"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeBase.parse"title="Permalink to this definition">¶</a></dt>
<dd><p>Parse the relevant parts and make it easily
<codeclass="sig-name descname">aliases</code><emclass="property"> = []</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeBase.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'general'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeBase.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'command'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeBase.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all();'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeBase.lock_storage"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdTradeHelp</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/game_systems/barter/barter.html#CmdTradeHelp"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeHelp"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'trade help'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeHelp.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeHelp.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'trade'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeHelp.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdTradeHelp.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeHelp.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = []</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeHelp.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeHelp.lock_storage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">search_index_entry</code><emclass="property"> = {'aliases': '', 'category': 'trade', 'key': 'trade help', 'no_prefix': ' ', 'tags': '', 'text': '\n help command for the trade system.\n\n Usage:\n trade help\n\n Displays help for the trade commands.\n '}</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTradeHelp.search_index_entry"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdOffer</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/game_systems/barter/barter.html#CmdOffer"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdOffer"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'offer'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdOffer.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdOffer.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'trading'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdOffer.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdOffer.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdOffer.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = []</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdOffer.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdOffer.lock_storage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">search_index_entry</code><emclass="property"> = {'aliases': '', 'category': 'trading', 'key': 'offer', 'no_prefix': ' ', 'tags': '', 'text': '\n offer one or more items in trade.\n\n Usage:\n offer <object> [, object2, ...][:emote]\n\n Offer objects in trade. This will replace the currently\n standing offer.\n '}</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdOffer.search_index_entry"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdAccept</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/game_systems/barter/barter.html#CmdAccept"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdAccept"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'accept'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdAccept.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = ['agree']</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdAccept.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdAccept.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'trading'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdAccept.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdAccept.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdAccept.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdAccept.lock_storage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">search_index_entry</code><emclass="property"> = {'aliases': 'agree', 'category': 'trading', 'key': 'accept', 'no_prefix': ' agree', 'tags': '', 'text': "\n accept the standing offer\n\n Usage:\n accept [:emote]\n agreee [:emote]\n\n This will accept the current offer. The other party must also accept\n for the deal to go through. You can use the 'decline' command to change\n your mind as long as the other party has not yet accepted. You can inspect\n the current offer using the 'offers' command.\n "}</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdAccept.search_index_entry"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdDecline</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/game_systems/barter/barter.html#CmdDecline"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdDecline"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'decline'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdDecline.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdDecline.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'trading'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdDecline.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdDecline.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdDecline.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = []</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdDecline.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdDecline.lock_storage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">search_index_entry</code><emclass="property"> = {'aliases': '', 'category': 'trading', 'key': 'decline', 'no_prefix': ' ', 'tags': '', 'text': "\n decline the standing offer\n\n Usage:\n decline [:emote]\n\n This will decline a previously 'accept'ed offer (so this allows you to\n change your mind). You can only use this as long as the other party\n has not yet accepted the deal. Also, changing the offer will automatically\n decline the old offer.\n "}</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdDecline.search_index_entry"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdEvaluate</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/game_systems/barter/barter.html#CmdEvaluate"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdEvaluate"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'evaluate'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdEvaluate.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = ['eval']</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdEvaluate.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdEvaluate.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'trading'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdEvaluate.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdEvaluate.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdEvaluate.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdEvaluate.lock_storage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">search_index_entry</code><emclass="property"> = {'aliases': 'eval', 'category': 'trading', 'key': 'evaluate', 'no_prefix': ' eval', 'tags': '', 'text': "\n evaluate objects on offer\n\n Usage:\n evaluate <offered object>\n\n This allows you to examine any object currently on offer, to\n determine if it's worth your while.\n "}</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdEvaluate.search_index_entry"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdStatus</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/game_systems/barter/barter.html#CmdStatus"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdStatus"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'status'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdStatus.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = ['offers', 'deal']</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdStatus.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdStatus.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'trading'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdStatus.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdStatus.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdStatus.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdStatus.lock_storage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">search_index_entry</code><emclass="property"> = {'aliases': 'offers deal', 'category': 'trading', 'key': 'status', 'no_prefix': ' offers deal', 'tags': '', 'text': "\n show a list of the current deal\n\n Usage:\n status\n deal\n offers\n\n Shows the currently suggested offers on each sides of the deal. To\n accept the current deal, use the 'accept' command. Use 'offer' to\n change your deal. You might also want to use 'say', 'emote' etc to\n try to influence the other part in the deal.\n "}</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdStatus.search_index_entry"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdFinish</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/game_systems/barter/barter.html#CmdFinish"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdFinish"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'end trade'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdFinish.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = ['finish trade']</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdFinish.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdFinish.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'trading'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdFinish.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdFinish.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdFinish.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdFinish.lock_storage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">search_index_entry</code><emclass="property"> = {'aliases': 'finish trade', 'category': 'trading', 'key': 'end trade', 'no_prefix': ' finish trade', 'tags': '', 'text': '\n end the trade prematurely\n\n Usage:\n end trade [:say]\n finish trade [:say]\n\n This ends the trade prematurely. No trade will take place.\n\n '}</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdFinish.search_index_entry"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdsetTrade</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">cmdsetobj</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">key</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdsetTrade"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdsetTrade"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'cmdset_trade'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdsetTrade.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">at_cmdset_creation</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdsetTrade.at_cmdset_creation"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdsetTrade.at_cmdset_creation"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">path</code><emclass="property"> = 'evennia.contrib.game_systems.barter.barter.CmdsetTrade'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdsetTrade.path"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.barter.barter.</code><codeclass="sig-name descname">CmdTrade</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/game_systems/barter/barter.html#CmdTrade"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTrade"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'trade'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTrade.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = ['barter']</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTrade.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTrade.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'general'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTrade.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/barter/barter.html#CmdTrade.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTrade.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all()'</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTrade.lock_storage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">search_index_entry</code><emclass="property"> = {'aliases': 'barter', 'category': 'general', 'key': 'trade', 'no_prefix': ' barter', 'tags': '', 'text': '\n Initiate trade with another party\n\n Usage:\n trade <other party> [:say]\n trade <other party> accept [:say]\n trade <other party> decline [:say]\n\n Initiate trade with another party. The other party needs to repeat\n this command with trade accept/decline within a minute in order to\n properly initiate the trade action. You can use the decline option\n yourself if you want to retract an already suggested trade. The\n optional say part works like the say command and allows you to add\n info to your choice.\n '}</em><aclass="headerlink"href="#evennia.contrib.game_systems.barter.barter.CmdTrade.search_index_entry"title="Permalink to this definition">¶</a></dt>