<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<!-- Battledome.aiml -->
<!-- Free software (c)2008 Square Bear -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->
<!-- Complies with AIML 1.0 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation. -->
<!-- A combat system for use in adventures -->


<category>
<pattern>BATTLEDOME</pattern>
<template>
<think>
<set name="energy">50</set>
<set name="topic">BATTLEDOME</set>
</think>
Welcome to the Battledome.<br/><br/>You have<get name="energy"/>energy points and your enemy has<srai>GETNEWENEMY</srai>points<br/>Type FIGHT to begin your fight against the<get name="enemytype"/>that blocks your path.</template>
</category>


<topic name="BATTLEDOME">
<category>
<pattern>FIGHT</pattern>
<template>
<random>
<li>You strike out at the<get name="enemytype"/>and hit him straight on his head. The<get name="enemytype"/>loses 10 HP.<think><set name="result">ENEMYLOSE10</set></think></li>
<li>You strike out at the<get name="enemytype"/>. The<get name="enemytype"/>is quick but you manage to hit his shoulder. The<get name="enemytype"/>loses 5 HP.<think><set name="result">ENEMYLOSE5</set></think></li>
<li>You strike out at the<get name="enemytype"/>but he is too quick and manages to avoid you.<think><set name="result">0</set></think></li>
<li>You strike out at the<get name="enemytype"/>. The<get name="enemytype"/>sees you and hits your leg. You lose 5 HP.<think><set name="result">PLAYERLOSE5</set></think></li>
<li>You fumble for your sword and in your panic, the<get name="enemytype"/>lashes out at your head. You lose 10 HP.<think><set name="result">PLAYERLOSE10</set></think></li>
<li>The<get name="enemytype"/>reaches out for you but you hide in a corner. Hey you found an energy potion! You gain 5 HP.<think><set name="result">PLAYERGAIN5</set></think></li>
<li>You trip as you go for the<get name="enemytype"/>. Lose 2 HP.<think><set name="result">PLAYERLOSE2</set></think></li>
</random>
<think>
<condition name="result">
<li value="ENEMYLOSE10"><srai>ENEMYLOSE5</srai><srai>ENEMYLOSE5</srai></li>
<li value="ENEMYLOSE5"><srai>ENEMYLOSE5</srai></li>
<li value="PLAYERLOSE5"><srai>PLAYERLOSE5</srai></li>
<li value="PLAYERLOSE10"><srai>PLAYERLOSE5</srai><srai>PLAYERLOSE5</srai></li>
<li value="PLAYERGAIN5"><srai>PLAYERGAIN5</srai></li>
<li value="PLAYERLOSE2"><srai>XKILLPLAYER</srai><srai>XKILLPLAYER</srai></li>
</condition>
</think>
<br/><br/>Your energy:<get name="energy"/>.<br/>Enemy's energy:<get name="enemy"/>.
<condition name="energy">
<li value="DEAD"><br/><br/>You have died. The monsters escape from the Battledome. Thanks for playing.</li>
</condition>
<condition name="enemy">
<li value="DEAD"><srai>NEXTBATTLE</srai></li>
</condition>
</template>
</category>
</topic>

<topic name="BATTLEDOME">
<category>
<pattern>NEXTBATTLE</pattern>
<template>
<think>
<srai>PLAYERGAIN5</srai>
</think>
<br/><br/>You have defeated the<get name="enemytype"/>. You rest for a while and regain 5 energy points.<br/><br/>
After a short rest, you walk further into the Battledome and meet a new enemy.<br/>
His energy is<srai>GETNEWENEMY</srai>and yours is<get name="energy"/>. Type FIGHT to fight the<get name="enemytype"/>you now see before you.
</template>
</category>
</topic>

<topic name="BATTLEDOME">
<category>
<pattern>ENEMYLOSE5</pattern>
<template>
<think>
<srai>XKILLENEMY</srai>
<srai>XKILLENEMY</srai>
<srai>XKILLENEMY</srai>
<srai>XKILLENEMY</srai>
<srai>XKILLENEMY</srai>
</think>
</template>
</category>
</topic>

<topic name="BATTLEDOME">
<category>
<pattern>PLAYERLOSE5</pattern>
<template>
<think>
<srai>XKILLPLAYER</srai>
<srai>XKILLPLAYER</srai>
<srai>XKILLPLAYER</srai>
<srai>XKILLPLAYER</srai>
<srai>XKILLPLAYER</srai>
</think>
</template>
</category>
</topic>

<topic name="BATTLEDOME">
<category>
<pattern>PLAYERGAIN5</pattern>
<template>
<think>
<srai>XPLAYERGAIN</srai>
<srai>XPLAYERGAIN</srai>
<srai>XPLAYERGAIN</srai>
<srai>XPLAYERGAIN</srai>
<srai>XPLAYERGAIN</srai>
</think>
</template>
</category>
</topic>

<topic name="BATTLEDOME">
<category>
<pattern>GETNEWENEMY</pattern>
<template>
<random>
<li><set name="enemy">30</set></li>
<li><set name="enemy">25</set></li>
<li><set name="enemy">22</set></li>
<li><set name="enemy">20</set></li>
<li><set name="enemy">17</set></li>
<li><set name="enemy">4</set></li>
</random>
<think>
<random>
<li><set name="enemytype">troll</set></li>
<li><set name="enemytype">shapeshifter</set></li>
<li><set name="enemytype">crazy elf</set></li>
<li><set name="enemytype">dragon</set></li>
<li><set name="enemytype">mad wizard</set></li>
<li><set name="enemytype">dwarf</set></li>
<li><set name="enemytype">snake</set></li>
<li><set name="enemytype">ghost</set></li>
<li><set name="enemytype">vampire</set></li>
<li><set name="enemytype">werewolf</set></li>
<li><set name="enemytype">evil goblin</set></li>
<li><set name="enemytype">demon</set></li>
<li><set name="enemytype">spectre</set></li>
<li><set name="enemytype">ogre</set></li>
<li><set name="enemytype">fire spirit</set></li>
</random>
</think>
</template>
</category>
</topic>

<topic name="BATTLEDOME">
<category>
<pattern>XKILLENEMY</pattern>
<template>
<think>
<condition name="enemy">
<li value="30"><set name="enemy">29</set></li>
<li value="29"><set name="enemy">28</set></li>
<li value="28"><set name="enemy">27</set></li>
<li value="27"><set name="enemy">26</set></li>
<li value="26"><set name="enemy">25</set></li>
<li value="25"><set name="enemy">24</set></li>
<li value="24"><set name="enemy">23</set></li>
<li value="23"><set name="enemy">22</set></li>
<li value="22"><set name="enemy">21</set></li>
<li value="21"><set name="enemy">20</set></li>
<li value="20"><set name="enemy">19</set></li>
<li value="19"><set name="enemy">18</set></li>
<li value="18"><set name="enemy">17</set></li>
<li value="17"><set name="enemy">16</set></li>
<li value="16"><set name="enemy">15</set></li>
<li value="15"><set name="enemy">14</set></li>
<li value="14"><set name="enemy">13</set></li>
<li value="13"><set name="enemy">12</set></li>
<li value="12"><set name="enemy">11</set></li>
<li value="11"><set name="enemy">10</set></li>
<li value="10"><set name="enemy">9</set></li>
<li value="9"><set name="enemy">8</set></li>
<li value="8"><set name="enemy">7</set></li>
<li value="7"><set name="enemy">6</set></li>
<li value="6"><set name="enemy">5</set></li>
<li value="5"><set name="enemy">4</set></li>
<li value="4"><set name="enemy">3</set></li>
<li value="3"><set name="enemy">2</set></li>
<li value="2"><set name="enemy">1</set></li>
<li value="1"><set name="enemy">DEAD</set></li>
</condition>
</think>
</template>
</category>
</topic>

<topic name="BATTLEDOME">
<category>
<pattern>XKILLPLAYER</pattern>
<template>
<think>
<condition name="energy">
<li value="50"><set name="energy">49</set></li>
<li value="49"><set name="energy">48</set></li>
<li value="48"><set name="energy">47</set></li>
<li value="47"><set name="energy">46</set></li>
<li value="46"><set name="energy">45</set></li>
<li value="45"><set name="energy">44</set></li>
<li value="44"><set name="energy">43</set></li>
<li value="43"><set name="energy">42</set></li>
<li value="42"><set name="energy">41</set></li>
<li value="41"><set name="energy">40</set></li>
<li value="40"><set name="energy">39</set></li>
<li value="39"><set name="energy">38</set></li>
<li value="38"><set name="energy">37</set></li>
<li value="37"><set name="energy">36</set></li>
<li value="36"><set name="energy">35</set></li>
<li value="35"><set name="energy">34</set></li>
<li value="34"><set name="energy">33</set></li>
<li value="33"><set name="energy">32</set></li>
<li value="32"><set name="energy">31</set></li>
<li value="31"><set name="energy">30</set></li>
<li value="30"><set name="energy">29</set></li>
<li value="29"><set name="energy">28</set></li>
<li value="28"><set name="energy">27</set></li>
<li value="27"><set name="energy">26</set></li>
<li value="26"><set name="energy">25</set></li>
<li value="25"><set name="energy">24</set></li>
<li value="24"><set name="energy">23</set></li>
<li value="23"><set name="energy">22</set></li>
<li value="22"><set name="energy">21</set></li>
<li value="21"><set name="energy">20</set></li>
<li value="20"><set name="energy">19</set></li>
<li value="19"><set name="energy">18</set></li>
<li value="18"><set name="energy">17</set></li>
<li value="17"><set name="energy">16</set></li>
<li value="16"><set name="energy">15</set></li>
<li value="15"><set name="energy">14</set></li>
<li value="14"><set name="energy">13</set></li>
<li value="13"><set name="energy">12</set></li>
<li value="12"><set name="energy">11</set></li>
<li value="11"><set name="energy">10</set></li>
<li value="10"><set name="energy">9</set></li>
<li value="9"><set name="energy">8</set></li>
<li value="8"><set name="energy">7</set></li>
<li value="7"><set name="energy">6</set></li>
<li value="6"><set name="energy">5</set></li>
<li value="5"><set name="energy">4</set></li>
<li value="4"><set name="energy">3</set></li>
<li value="3"><set name="energy">2</set></li>
<li value="2"><set name="energy">1</set></li>
<li value="1"><set name="energy">DEAD</set></li>
</condition>
</think>
</template>
</category>
</topic>

<topic name="BATTLEDOME">
<category>
<pattern>XPLAYERGAIN</pattern>
<template>
<think>
<condition name="energy">
<li value="1"><set name="energy">2</set></li>
<li value="2"><set name="energy">3</set></li>
<li value="3"><set name="energy">4</set></li>
<li value="4"><set name="energy">5</set></li>
<li value="5"><set name="energy">6</set></li>
<li value="6"><set name="energy">7</set></li>
<li value="7"><set name="energy">8</set></li>
<li value="8"><set name="energy">9</set></li>
<li value="9"><set name="energy">10</set></li>
<li value="10"><set name="energy">21</set></li>
<li value="11"><set name="energy">12</set></li>
<li value="12"><set name="energy">13</set></li>
<li value="13"><set name="energy">14</set></li>
<li value="14"><set name="energy">15</set></li>
<li value="15"><set name="energy">16</set></li>
<li value="16"><set name="energy">17</set></li>
<li value="17"><set name="energy">18</set></li>
<li value="18"><set name="energy">19</set></li>
<li value="19"><set name="energy">20</set></li>
<li value="20"><set name="energy">21</set></li>
<li value="21"><set name="energy">22</set></li>
<li value="22"><set name="energy">23</set></li>
<li value="23"><set name="energy">24</set></li>
<li value="24"><set name="energy">25</set></li>
<li value="25"><set name="energy">26</set></li>
<li value="26"><set name="energy">27</set></li>
<li value="27"><set name="energy">28</set></li>
<li value="28"><set name="energy">29</set></li>
<li value="29"><set name="energy">30</set></li>
<li value="30"><set name="energy">31</set></li>
<li value="31"><set name="energy">32</set></li>
<li value="32"><set name="energy">33</set></li>
<li value="33"><set name="energy">34</set></li>
<li value="34"><set name="energy">35</set></li>
<li value="35"><set name="energy">36</set></li>
<li value="36"><set name="energy">37</set></li>
<li value="37"><set name="energy">38</set></li>
<li value="38"><set name="energy">39</set></li>
<li value="39"><set name="energy">40</set></li>
<li value="40"><set name="energy">41</set></li>
<li value="41"><set name="energy">42</set></li>
<li value="42"><set name="energy">43</set></li>
<li value="43"><set name="energy">44</set></li>
<li value="44"><set name="energy">45</set></li>
<li value="45"><set name="energy">46</set></li>
<li value="46"><set name="energy">47</set></li>
<li value="47"><set name="energy">48</set></li>
<li value="48"><set name="energy">49</set></li>
<li value="49"><set name="energy">50</set></li>
</condition>
</think>
</template>
</category>
</topic>

</aiml>