wizarD_AT

Magicka Random Challenge WIP

Aug 9th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 75.30 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <Scene>
  3.   <model>ch_havindr_arena</model>
  4.   <fog start="260" end="400" color="0.75,0.75,1"/>
  5.   <reverb roomType="10" mix="40" />
  6.   <Indoor>false</Indoor>
  7.   <Clouds Intensity="0.5" Texture="../Textures/Sky/Clouds" scale="0.8" movement="-0.03,-0.005" />
  8.   <trigger id="Start" repeat="false">
  9.     <if />
  10.     <then>
  11.       <cameramagnify magnification="0.75"/>
  12.       <playMusic cue="music_encounter" delay="3"/>
  13.  
  14.   <!--     <playSound id="ch_arena_bars01" volume="0" area="ch_arena_bars01" radius="150" apply3d="true" cue="Misc/misc_arena_gate01" />
  15. <addCameraEffect effect="weather_sparks"/>-->
  16.      
  17.      
  18.      
  19.       <counter name="wavecheck_started" action="set" value="0"/>        <!-- Set the counter responsible for proper wave starting. Only used by nextwave-trigger -->
  20.       <counter name="wavecheck_wavenumber" action="set" value="1"/>     <!-- Set the second counter responsible for proper wave starting -->
  21.      
  22.       <executeTrigger trigger="wave1" delay="2"/>           <!-- Call the first wave -->
  23.       <executeTrigger trigger="weather" delay="35"/>        <!-- Start weather loop -->
  24.      <!--
  25.       <executeTrigger trigger="reinforcements" delay="4"/>-->
  26.      
  27.         <counter name="grease" action="set" value="0"/>         <!-- Each magick counter starts at 0 -->
  28.         <!--<counter name="haste" action="set" value="0"/>-->   <unlockMagick magicktype="haste"/>
  29.         <counter name="invisibility" action="set" value="0"/>   <magick id="player1" magicktype="invisibility"/>
  30.         <counter name="rain" action="set" value="0"/>           <unlockMagick magicktype="invisibility"/>
  31.         <counter name="timewarp" action="set" value="0"/>
  32.         <counter name="sphoenix" action="set" value="0"/>
  33.         <counter name="nullify" action="set" value="0"/>
  34.         <counter name="judgementspray" action="set" value="0"/>
  35.         <counter name="wave" action="set" value="0"/>
  36.         <counter name="levitate" action="set" value="0"/>
  37.         <counter name="chainlightning" action="set" value="0"/>
  38.         <counter name="portal" action="set" value="0"/>
  39.         <counter name="teleport" action="set" value="0"/>
  40.         <counter name="charm" action="set" value="0"/>
  41.         <counter name="meteors" action="set" value="0"/>
  42.         <counter name="confuse" action="set" value="0"/>
  43.         <counter name="fear" action="set" value="0"/>
  44.         <counter name="tornado" action="set" value="0"/>
  45.         <counter name="blizzard" action="set" value="0"/>
  46.         <counter name="conflagration" action="set" value="0"/>
  47.         <counter name="tractorpull" action="set" value="0"/>        <unlockMagick magicktype="tractorpull"/>
  48.         <counter name="performanceenchantment" action="set" value="0"/>
  49.         <counter name="proppmagick" action="set" value="0"/>
  50.         <counter name="thunderb" action="set" value="0"/>
  51.         <counter name="ctd" action="set" value="0"/>
  52.         <counter name="sdeath" action="set" value="0"/>
  53.         <counter name="sundead" action="set" value="0"/>
  54.         <counter name="selemental" action="set" value="0"/>
  55.         <counter name="vortex" action="set" value="0"/>
  56.         <counter name="thunders" action="set" value="0"/>
  57.         <counter name="napalm" action="set" value="0"/>
  58.         <executeTrigger trigger="randomMagicks_tierselector" delay="1"/>
  59.        
  60.         <!--
  61.        
  62.       <spawn type="Goblin_miner"  id="disable_qwrf" area="north" order="wander" reactto="none" ondeath="disableElement_check_qwrf"/>        <!- It's the players' choice to disable elements ->
  63.       <spawn type="Spider_forest" id="disable_asde" area="south" order="wander" reactto="none" ondeath="disableElement_check_asde"/>
  64.       <spawn type="Skeleton_noob" id="disable_all"  area="east"  order="wander" reactto="none" ondeath="disableElement_check_all"/>
  65.      
  66.       <remove id="disable_qwrf" delay="29.5"/>  <counter name="disableElement_check_qwrf" action="set" value="0"/>
  67.       <remove id="disable_asde" delay="29.5"/>  <counter name="disableElement_check_asde" action="set" value="0"/>
  68.       <remove id="disable_all" delay="29.5"/>   <counter name="disableElement_check_all"  action="set" value="0"/>
  69.      
  70.       <setHint id="#DisableElements" position="center"/>
  71.       <removeHint delay="29.5"/>
  72.      
  73.      <executeTrigger trigger="disableElements_qwrf" delay="30"/>
  74.      <executeTrigger trigger="disableElements_asde" delay="30"/>
  75.      <executeTrigger trigger="disableElements_all" delay="30"/>-->
  76.      
  77.     </then>
  78.   </trigger>
  79.  
  80.  
  81.   <!-- ############## RANDOM ELEMENT DISABLING ############## -->
  82.  
  83.     <trigger id="disableElement_check_qwrf" autorun="false" repeat="false">
  84.         <then><counter name="disableElement_check_qwrf" action="set" value="1"/></then>
  85.     </trigger>
  86.     <trigger id="disableElement_check_asde" autorun="false" repeat="false">
  87.         <then><counter name="disableElement_check_asde" action="set" value="1"/></then>
  88.     </trigger>
  89.     <trigger id="disableElement_check_all" autorun="false" repeat="false">
  90.         <then><counter name="disableElement_check_all" action="set" value="1"/></then>
  91.     </trigger>
  92.  
  93.  <trigger id="disableElements_qwrf" autorun="false" repeat="true">
  94.     <if>
  95.         <counter name="disableElement_check_qwrf" compareMethod="equal" value="1"/>
  96.         <counter name="disableElement_check_all" compareMethod="equal" value="0"/>
  97.     </if>
  98.     <then>
  99.         <random>
  100.             <disableElement element="water"/>
  101.             <enableElement element="water" delay="5"/>
  102.             <executeTrigger trigger="disableElements_qwrf" delay="5.1"/>
  103.         </random>
  104.         <random>
  105.             <disableElement element="life"/>
  106.             <enableElement element="life" delay="5"/>
  107.             <executeTrigger trigger="disableElements_qwrf" delay="5.1"/>
  108.         </random>
  109.         <random>
  110.             <disableElement element="cold"/>
  111.             <enableElement element="cold" delay="5"/>
  112.             <executeTrigger trigger="disableElements_qwrf" delay="5.1"/>
  113.         </random>
  114.         <random>
  115.             <disableElement element="fire"/>
  116.             <enableElement element="fire" delay="5"/>
  117.             <executeTrigger trigger="disableElements_qwrf" delay="5.1"/>
  118.         </random>
  119.     </then>
  120. </trigger>
  121.  
  122.  <trigger id="disableElements_asde" autorun="false" repeat="true">
  123.     <if>
  124.         <counter name="disableElement_check_asde" compareMethod="equal" value="1"/>
  125.         <counter name="disableElement_check_all" compareMethod="equal" value="0"/>
  126.     </if>
  127.     <then>
  128.         <random>
  129.             <disableElement element="lightning"/>
  130.             <enableElement element="lightning" delay="5"/>
  131.             <executeTrigger trigger="disableElements_asde" delay="5.1"/>
  132.         </random>
  133.         <random>
  134.             <disableElement element="arcane"/>
  135.             <enableElement element="arcane" delay="5"/>
  136.             <executeTrigger trigger="disableElements_asde" delay="5.1"/>
  137.         </random>
  138.         <random>
  139.             <disableElement element="earth"/>
  140.             <enableElement element="earth" delay="5"/>
  141.             <executeTrigger trigger="disableElements_asde" delay="5.1"/>
  142.         </random>
  143.         <random>
  144.             <disableElement element="shield"/>
  145.             <enableElement element="shield" delay="5"/>
  146.             <executeTrigger trigger="disableElements_asde" delay="5.1"/>
  147.         </random>
  148.     </then>
  149.    
  150. </trigger>
  151. <trigger id="disableElements_all" autorun="false" repeat="true">
  152.     <if>
  153.         <counter name="disableElement_check_all" compareMethod="equal" value="1"/>
  154.     </if>
  155.     <then>
  156.         <random>
  157.             <disableElement element="water"/>
  158.             <enableElement element="water" delay="5"/>
  159.             <executeTrigger trigger="disableElements_all" delay="5.1"/>
  160.         </random>
  161.         <random>
  162.             <disableElement element="life"/>
  163.             <enableElement element="life" delay="5"/>
  164.             <executeTrigger trigger="disableElements_all" delay="5.1"/>
  165.         </random>
  166.         <random>
  167.             <disableElement element="cold"/>
  168.             <enableElement element="cold" delay="5"/>
  169.             <executeTrigger trigger="disableElements_all" delay="5.1"/>
  170.         </random>
  171.         <random>
  172.             <disableElement element="fire"/>
  173.             <enableElement element="fire" delay="5"/>
  174.             <executeTrigger trigger="disableElements_all" delay="5.1"/>
  175.         </random>
  176.         <random>
  177.             <disableElement element="lightning"/>
  178.             <enableElement element="lightning" delay="5"/>
  179.             <executeTrigger trigger="disableElements_all" delay="5.1"/>
  180.         </random>
  181.         <random>
  182.             <disableElement element="arcane"/>
  183.             <enableElement element="arcane" delay="5"/>
  184.             <executeTrigger trigger="disableElements_all" delay="5.1"/>
  185.         </random>
  186.         <random>
  187.             <disableElement element="earth"/>
  188.             <enableElement element="earth" delay="5"/>
  189.             <executeTrigger trigger="disableElements_all" delay="5.1"/>
  190.         </random>
  191.         <random>
  192.             <disableElement element="shield"/>
  193.             <enableElement element="shield" delay="5"/>
  194.             <executeTrigger trigger="disableElements_all" delay="5.1"/>
  195.         </random>
  196.     </then>
  197. </trigger>
  198.  
  199.  
  200.  
  201. <!-- ############## RANDOM MAGICKS ############## -->  
  202.  
  203. <trigger id="RemoveMagicks" repeat="true" autorun="true"> <!-- Remove magicks because, obviously, they are ranomised -->
  204.     <then>
  205.         <remove area="any" type="Luggage_magick"/>
  206.     </then>
  207. </trigger>
  208.  
  209.  
  210. <trigger id="randomMagicks_tierselector" autorun="false" repeat="true">     <!-- add basics and strong multiple times to reduce the chance of OP magick unlocks -->
  211.     <then>                                                                  <!-- dirty, but it works -->
  212.         <random> <executetrigger trigger="randomMagicks_basic"/> <executetrigger trigger="randomMagicks_loop_no" delay="1"/> </random>
  213.         <random> <executetrigger trigger="randomMagicks_basic"/> <executetrigger trigger="randomMagicks_loop_no" delay="1"/> </random>
  214.         <random> <executetrigger trigger="randomMagicks_basic"/> <executetrigger trigger="randomMagicks_loop_no" delay="1"/> </random>
  215.        
  216.         <random> <executetrigger trigger="randomMagicks_strong"/> <executetrigger trigger="randomMagicks_loop_no" delay="1"/> </random>
  217.         <random> <executetrigger trigger="randomMagicks_strong"/> <executetrigger trigger="randomMagicks_loop_no" delay="1"/> </random>
  218.        
  219.         <random> <executetrigger trigger="randomMagicks_op"/> <executetrigger trigger="randomMagicks_loop_no" delay="1"/> </random>
  220.        
  221.         <random> <executetrigger trigger="randomMagicks_loop_no" delay="1"/> </random>
  222.     </then>
  223. </trigger>
  224.  
  225. <trigger id="randomMagicks_basic" repeat="true" autorun="false">            <!-- Magicks are unlocked when their timer equals 1 -->
  226.     <then>                                                                  <!-- If the triggers select the same magick twice, it won't unlock again -->
  227.         <random> <counter name="grease" action="inc" value="1"/> </random>  <!-- because the counter would be 2 -->
  228.     <!--    <random> <counter name="haste" action="inc" value="1"/> </random>-->
  229.         <random> <counter name="invisibility" action="inc" value="1"/> </random>
  230.         <random> <counter name="rain" action="inc" value="1"/> </random>
  231.         <random> <counter name="timewarp" action="inc" value="1"/> </random>
  232.         <random> <counter name="sphoenix" action="inc" value="1"/> </random>
  233.         <random> <counter name="nullify" action="inc" value="1"/> </random>
  234.         <random> <counter name="judgementspray" action="inc" value="1"/> </random>
  235.         <random> <counter name="wave" action="inc" value="1"/> </random>
  236.         <random> <counter name="levitate" action="inc" value="1"/> </random>
  237.         <random> <counter name="chainlightning" action="inc" value="1"/> </random>
  238.         <random> <counter name="portal" action="inc" value="1"/> </random>
  239.     </then>
  240. </trigger>
  241. <trigger id="randomMagicks_strong" repeat="true" autorun="false">
  242.     <then>
  243.         <random> <counter name="teleport" action="inc" value="1"/> </random>
  244.         <random> <counter name="charm" action="inc" value="1"/> </random>
  245.         <random> <counter name="meteors" action="inc" value="1"/> </random>
  246.         <random> <counter name="confuse" action="inc" value="1"/> </random>
  247.        
  248.         <random> <counter name="fear" action="inc" value="1"/> </random>
  249.         <random> <counter name="tornado" action="inc" value="1"/> </random>
  250.         <random> <counter name="blizzard" action="inc" value="1"/> </random>
  251.         <random> <counter name="conflagration" action="inc" value="1"/> </random>
  252.         <random> <counter name="tractorpull" action="inc" value="1"/>   </random>
  253.         <random> <counter name="performanceenchantment" action="inc" value="1"/> </random>
  254.     </then>
  255. </trigger>
  256. <trigger id="randomMagicks_op" repeat="true" autorun="false">
  257.     <then>
  258.         <random> <counter name="proppmagick" action="inc" value="1"/> </random>
  259.         <random> <counter name="thunderb" action="inc" value="1"/> </random>
  260.    
  261.         <random> <counter name="ctd" action="inc" value="1"/> </random>
  262.         <random> <counter name="sdeath" action="inc" value="1"/> </random>
  263.         <random> <counter name="sundead" action="inc" value="1"/> </random>
  264.         <random> <counter name="selemental" action="inc" value="1"/> </random>
  265.         <random> <counter name="vortex" action="inc" value="1"/> </random>
  266.         <random> <counter name="thunders" action="inc" value="1"/> </random>
  267.         <random> <counter name="napalm" action="inc" value="1"/> </random>
  268.     </then>
  269. </trigger>
  270.  
  271.  
  272. <trigger id="randomMagicks_loop_yes" autorun="true" repeat="true">              <!-- runs if the counter has been set from within one of the magick-unlock triggers -->
  273.     <if><counter name="magickunlocked" compareMethod="equal" value="1"/></if>
  274.     <then>
  275.         <counter name="magickunlocked" action="set" value="0" delay="2"/>       <!-- needs a slight delay so that loop_no doesn't falsely execute the tierselector because of unfortunate timing -->
  276.         <executetrigger trigger="randomMagicks_tierselector" delay="60"/>       <!-- the more magicks have been unlocked, the higher the average delay before the next unlock -->
  277.     </then>
  278. </trigger>
  279.  
  280. <trigger id="randomMagicks_loop_no" autorun="false" repeat="true">                  <!-- called by the tierselector a second after unlocking a magick -->
  281.     <if><counter name="magickunlocked" compareMethod="equal" value="0"/></if>
  282.     <then>                                                                          <!-- if the counter is still 0 after a magick should have been unlocked -->
  283.         <executetrigger trigger="randomMagicks_tierselector" delay="10"/>           <!-- then execute the tierselector again -->
  284.     </then>
  285. </trigger>
  286.  
  287.  
  288. <trigger id="grease" autorun="true" repeat="true">
  289.     <if> <counter name="grease" compareMethod="equal" value="1"/> </if>     <!-- if the tierselector increased this counter by 1 for the first time, the trigger runs -->
  290.     <then>
  291.         <unlockMagick magicktype="grease"/>                         <!-- unlock the magick, obviously -->
  292.         <counter name="magickunlocked" action="set" value="1"/>     <!-- this counter is needed for the loop -->
  293.         <counter name="grease" action="inc" value="1"/>             <!-- this counter is needed so that the magick doesn't get unlocked infinitely -->
  294.         </then>
  295. </trigger>
  296. <!--<trigger id="haste" autorun="true" repeat="true">
  297.     <if> <counter name="haste" compareMethod="equal" value="1"/> </if>
  298.     <then>  <unlockMagick magicktype="haste"/> <counter name="magickunlocked" action="set" value="1"/> <counter name="haste" action="inc" value="1"/></then>
  299. </trigger>-->
  300. <trigger id="invisibility" autorun="true" repeat="true">
  301.     <if> <counter name="invisibility" compareMethod="equal" value="1"/> </if>
  302.     <then>  <unlockMagick magicktype="invisibility"/> <counter name="magickunlocked" action="set" value="1"/><counter name="invisibility" action="inc" value="1"/></then>
  303. </trigger>
  304. <trigger id="rain" autorun="true" repeat="true">
  305.     <if> <counter name="rain" compareMethod="equal" value="1"/> </if>
  306.     <then>  <unlockMagick magicktype="rain"/> <counter name="magickunlocked" action="set" value="1"/><counter name="rain" action="inc" value="1"/></then>
  307. </trigger>
  308. <trigger id="timewarp" autorun="true" repeat="true">
  309.     <if> <counter name="timewarp" compareMethod="equal" value="1"/> </if>
  310.     <then>  <unlockMagick magicktype="timewarp"/> <counter name="magickunlocked" action="set" value="1"/><counter name="timewarp" action="inc" value="1"/></then>
  311. </trigger>
  312. <trigger id="sphoenix" autorun="true" repeat="true">
  313.     <if> <counter name="sphoenix" compareMethod="equal" value="1"/> </if>
  314.     <then>  <unlockMagick magicktype="sphoenix"/> <counter name="magickunlocked" action="set" value="1"/><counter name="sphoenix" action="inc" value="1"/></then>
  315. </trigger>
  316. <trigger id="nullify" autorun="true" repeat="true">
  317.     <if> <counter name="nullify" compareMethod="equal" value="1"/> </if>
  318.     <then>  <unlockMagick magicktype="nullify"/> <counter name="magickunlocked" action="set" value="1"/><counter name="nullify" action="inc" value="1"/></then>
  319. </trigger>
  320. <trigger id="judgementspray" autorun="true" repeat="true">
  321.     <if> <counter name="judgementspray" compareMethod="equal" value="1"/> </if>
  322.     <then>  <unlockMagick magicktype="judgementspray"/> <counter name="magickunlocked" action="set" value="1"/><counter name="judgementspray" action="inc" value="1"/></then>
  323. </trigger>
  324. <trigger id="wave" autorun="true" repeat="true">
  325.     <if> <counter name="wave" compareMethod="equal" value="1"/> </if>
  326.     <then>  <unlockMagick magicktype="wave"/> <counter name="magickunlocked" action="set" value="1"/><counter name="wave" action="inc" value="1"/></then>
  327. </trigger>
  328. <trigger id="levitate" autorun="true" repeat="true">
  329.     <if> <counter name="levitate" compareMethod="equal" value="1"/> </if>
  330.     <then>  <unlockMagick magicktype="levitate"/> <counter name="magickunlocked" action="set" value="1"/><counter name="levitate" action="inc" value="1"/></then>
  331. </trigger>
  332. <trigger id="chainlightning" autorun="true" repeat="true">
  333.     <if> <counter name="chainlightning" compareMethod="equal" value="1"/> </if>
  334.     <then>  <unlockMagick magicktype="chainlightning"/> <counter name="magickunlocked" action="set" value="1"/><counter name="chainlightning" action="inc" value="1"/></then>
  335. </trigger>
  336. <trigger id="portal" autorun="true" repeat="true">
  337.     <if> <counter name="portal" compareMethod="equal" value="1"/> </if>
  338.     <then>  <unlockMagick magicktype="portal"/> <counter name="magickunlocked" action="set" value="1"/><counter name="portal" action="inc" value="1"/></then>
  339. </trigger>
  340. <trigger id="teleport" autorun="true" repeat="true">
  341.     <if> <counter name="teleport" compareMethod="equal" value="1"/> </if>
  342.     <then>  <unlockMagick magicktype="teleport"/> <counter name="magickunlocked" action="set" value="1"/><counter name="teleport" action="inc" value="1"/></then>
  343. </trigger>
  344. <trigger id="charm" autorun="true" repeat="true">
  345.     <if> <counter name="charm" compareMethod="equal" value="1"/> </if>
  346.     <then>  <unlockMagick magicktype="charm"/> <counter name="magickunlocked" action="set" value="1"/><counter name="charm" action="inc" value="1"/></then>
  347. </trigger>
  348. <trigger id="meteors" autorun="true" repeat="true">
  349.     <if> <counter name="meteors" compareMethod="equal" value="1"/> </if>
  350.     <then>  <unlockMagick magicktype="meteors"/> <counter name="magickunlocked" action="set" value="1"/><counter name="meteors" action="inc" value="1"/></then>
  351. </trigger>
  352. <trigger id="confuse" autorun="true" repeat="true">
  353.     <if> <counter name="confuse" compareMethod="equal" value="1"/> </if>
  354.     <then>  <unlockMagick magicktype="confuse"/> <counter name="magickunlocked" action="set" value="1"/><counter name="confuse" action="inc" value="1"/></then>
  355. </trigger>
  356. <trigger id="fear" autorun="true" repeat="true">
  357.     <if> <counter name="fear" compareMethod="equal" value="1"/> </if>
  358.     <then>  <unlockMagick magicktype="fear"/> <counter name="magickunlocked" action="set" value="1"/><counter name="fear" action="inc" value="1"/></then>
  359. </trigger>
  360. <trigger id="tornado" autorun="true" repeat="true">
  361.     <if> <counter name="tornado" compareMethod="equal" value="1"/> </if>
  362.     <then>  <unlockMagick magicktype="tornado"/> <counter name="magickunlocked" action="set" value="1"/><counter name="tornado" action="inc" value="1"/></then>
  363. </trigger>
  364. <trigger id="blizzard" autorun="true" repeat="true">
  365.     <if> <counter name="blizzard" compareMethod="equal" value="1"/> </if>
  366.     <then>  <unlockMagick magicktype="blizzard"/> <counter name="magickunlocked" action="set" value="1"/><counter name="blizzard" action="inc" value="1"/></then>
  367. </trigger>
  368. <trigger id="conflagration" autorun="true" repeat="true">
  369.     <if> <counter name="conflagration" compareMethod="equal" value="1"/> </if>
  370.     <then>  <unlockMagick magicktype="conflagration"/> <counter name="magickunlocked" action="set" value="1"/><counter name="conflagration" action="inc" value="1"/></then>
  371. </trigger>
  372. <trigger id="tractorpull" autorun="true" repeat="true">
  373.     <if> <counter name="tractorpull" compareMethod="equal" value="1"/> </if>
  374.     <then>  <unlockMagick magicktype="tractorpull"/> <counter name="magickunlocked" action="set" value="1"/><counter name="tractorpull" action="inc" value="1"/></then>
  375. </trigger>
  376. <trigger id="performanceenchantment" autorun="true" repeat="true">
  377.     <if> <counter name="performanceenchantment" compareMethod="equal" value="1"/> </if>
  378.     <then>  <unlockMagick magicktype="performanceenchantment"/> <counter name="magickunlocked" action="set" value="1"/><counter name="performanceenchantment" action="inc" value="1"/></then>
  379. </trigger>
  380. <trigger id="proppmagick" autorun="true" repeat="true">
  381.     <if> <counter name="proppmagick" compareMethod="equal" value="1"/> </if>
  382.     <then>  <unlockMagick magicktype="proppmagick"/> <counter name="magickunlocked" action="set" value="1"/><counter name="proppmagick" action="inc" value="1"/></then>
  383. </trigger>
  384. <trigger id="thunderb" autorun="true" repeat="true">
  385.     <if> <counter name="thunderb" compareMethod="equal" value="1"/> </if>
  386.     <then>  <unlockMagick magicktype="thunderb"/> <counter name="magickunlocked" action="set" value="1"/><counter name="thunderb" action="inc" value="1"/></then>
  387. </trigger>
  388. <trigger id="ctd" autorun="true" repeat="true">
  389.     <if> <counter name="ctd" compareMethod="equal" value="1"/> </if>
  390.     <then>  <unlockMagick magicktype="ctd"/> <counter name="magickunlocked" action="set" value="1"/><counter name="ctd" action="inc" value="1"/></then>
  391. </trigger>
  392. <trigger id="sdeath" autorun="true" repeat="true">
  393.     <if> <counter name="sdeath" compareMethod="equal" value="1"/> </if>
  394.     <then>  <unlockMagick magicktype="sdeath"/> <counter name="magickunlocked" action="set" value="1"/><counter name="sdeath" action="inc" value="1"/></then>
  395. </trigger>
  396. <trigger id="sundead" autorun="true" repeat="true">
  397.     <if> <counter name="sundead" compareMethod="equal" value="1"/> </if>
  398.     <then>  <unlockMagick magicktype="sundead"/> <counter name="magickunlocked" action="set" value="1"/><counter name="sundead" action="inc" value="1"/></then>
  399. </trigger>
  400. <trigger id="selemental" autorun="true" repeat="true">
  401.     <if> <counter name="selemental" compareMethod="equal" value="1"/> </if>
  402.     <then>  <unlockMagick magicktype="selemental"/> <counter name="magickunlocked" action="set" value="1"/><counter name="selemental" action="inc" value="1"/></then>
  403. </trigger>
  404. <trigger id="vortex" autorun="true" repeat="true">
  405.     <if> <counter name="vortex" compareMethod="equal" value="1"/> </if>
  406.     <then>  <unlockMagick magicktype="vortex"/> <counter name="magickunlocked" action="set" value="1"/><counter name="vortex" action="inc" value="1"/></then>
  407. </trigger>
  408. <trigger id="thunders" autorun="true" repeat="true">
  409.     <if> <counter name="thunders" compareMethod="equal" value="1"/> </if>
  410.     <then>  <unlockMagick magicktype="thunders"/> <counter name="magickunlocked" action="set" value="1"/><counter name="thunders" action="inc" value="1"/></then>
  411. </trigger>
  412. <trigger id="napalm" autorun="true" repeat="true">
  413.     <if> <counter name="napalm" compareMethod="equal" value="1"/> </if>
  414.     <then>  <unlockMagick magicktype="napalm"/> <counter name="magickunlocked" action="set" value="1"/><counter name="napalm" action="inc" value="1"/></then>
  415. </trigger>
  416.  
  417.  
  418. <!-- ############## WEATHER ############## -->
  419.  
  420. <trigger id="weather" autorun="false">
  421.     <then>
  422.         <random>
  423.             <magick magicktype="Rain"/>
  424.             <executeTrigger trigger="weather" delay="20"/>
  425.         </random>
  426.         <random>
  427.             <magick magicktype="Blizzard"/>
  428.             <executeTrigger trigger="weather" delay="15"/>
  429.         </random>
  430.         <random>
  431.             <magick magicktype="ThunderS"/>
  432.             <executeTrigger trigger="weather" delay="25"/>
  433.         </random>
  434.         <random><executeTrigger trigger="weather" delay="15"/></random>
  435.         <random><executeTrigger trigger="weather" delay="30"/></random>
  436.     </then>
  437. </trigger>
  438.  
  439.  
  440.  
  441. <!-- ############## WIZARD REINFORCEMENTS ############## -->
  442.  
  443. <trigger id="reinforcements" autorun="false">
  444.     <then>
  445.         <random>
  446.             <spawn type="wizard_hat_evil" nr="1" area="northeast" spawnAnimation="revive"/>
  447.             <spawn type="wizard_evil" nr="1" area="southeast" spawnAnimation="revive"/>
  448.             <spawn type="wizard_hat_evil" nr="1" area="southwest" spawnAnimation="revive"/>
  449.             <spawn type="wizard_evil" nr="1" area="northwest" spawnAnimation="revive"/>
  450.             <executeTrigger trigger="reinforcements" delay="240"/>
  451.             <executeTrigger trigger="reinforcements_faction" delay="0.5"/>
  452.         </random>
  453.         <random>
  454.             <spawn type="wizard_hat" nr="1" area="northeast" spawnAnimation="revive"/>
  455.             <spawn type="Wizard_Alucart" nr="1" area="southeast" spawnAnimation="revive"/>
  456.             <spawn type="wizard_hat" nr="1" area="southwest" spawnAnimation="revive"/>
  457.             <spawn type="Wizard_Alucart" nr="1" area="northwest" spawnAnimation="revive"/>
  458.             <executeTrigger trigger="reinforcements" delay="540"/>
  459.             <executeTrigger trigger="reinforcements_faction" delay="0.5"/>
  460.         </random>
  461.         <random>
  462.             <executeTrigger trigger="reinforcements" delay="120"/>
  463.         </random>
  464.     </then>
  465. </trigger>
  466. <trigger id="reinforcements_faction" autorun="false">
  467.     <then>
  468.         <random>
  469.             <setFaction area="any" type="wizard_hat_evil" action="set" faction="friendly"/>
  470.             <setFaction area="any" type="wizard_evil" action="set" faction="friendly"/>
  471.             <setHint id="#friendlywizards"/>
  472.             <removeHint delay="5"/>
  473.         </random>
  474.         <random>
  475.             <setFaction area="any" type="wizard_hat" action="set" faction="evil"/>
  476.             <setFaction area="any" type="wizard_Alucart" action="set" faction="evil"/>
  477.             <setHint id="#evilwizards"/>
  478.             <removeHint delay="5"/>
  479.         </random>
  480.     </then>
  481. </trigger>
  482.  
  483.  
  484.  
  485.  
  486. <!-- ############## CALL NEXT WAVE ############## -->
  487.  
  488.  <trigger id="nextwave" autorun="true" repeat="true">                               <!-- Trigger responsible for calling the next wave -->
  489.     <if>
  490.         <factionPresent factions="evil" compareMethod="less" nr="1" area="any" />   <!-- If there are no evil units anymore and -->
  491.         <counter name="wavecheck_started" compareMethod="equal" value="1"/>                 <!-- if the counter has been set to 1 (from inside the wave trigger) -->
  492.     </if>
  493.     <then> 
  494.         <counter name="wavecheck_started" action="set" value="0"/>      <!-- reset counter -->
  495.         <counter name="wavecheck_wavenumber" action="inc" value="1" delay="4"/> <!-- call the next wave by increasing the counter -->
  496.         <!--<executeTrigger trigger="reinforcements" delay="2"/> -->            <!-- Random wizard reinforcements every round -->
  497.     </then>
  498. </trigger>
  499.        
  500.  
  501.  
  502.  
  503.  
  504.  
  505. <!-- ############## WAVES ############## -->
  506. <!--
  507.     Wave components don't have any significant delay in unit spawning.
  508.     In a few cases the same units spawn again a few seconds later (max. 6 seconds), so if you want to have units spawned with a great delay, you have to call components with delay.
  509.    
  510.     THESE COMPONENTS CAN BE USED
  511.    
  512.         minibosses_             easy / hard / extreme       Vlad, Kahn, etc. Beware, extreme is ridiculously hard (note to self: add a normal difficulty)
  513.        
  514.         ranged_                 easy / hard / extreme       Easy is pretty easy. Hard and extreme are deadly. Harder difficulties increase quantity and quality.
  515.        
  516.         annoying_               easy / hard                 Spawns units that confuse, throw bombs or cast nullify.
  517.        
  518.         cannonfodder_           few / many                  Low damage, low health, cannonfodder. Varying speed. Includes all sorts of unit types.
  519.        
  520.         wizards_                easy / hard / extreme       These are quite hard, even on easy because of elemental damage. Not recommended in early waves.
  521.        
  522.         spellcasters_           easy / hard                 An easy component because the units are not very good. Low damage and range and mostly low health. Doesn't include wizards.
  523.                                                             Easy: 4 units. Hard: 6 units.  Hard units are also slightly stronger than in easy.
  524.        
  525.         immunity_support_       easy / hard / extreme       Not too hard alone, but with other units they're a strong addition to the wave.
  526.                                                             Harder difficulties increase quantity and mix the immunities (Fire, Physical, Cold, Ice, Water, Lightning).
  527.        
  528.         trolls_                 easy / hard / extreme       easy: 2 easy trolls, hard: 3 easy and medium trolls, extreme: 4 mostly strong trolls
  529.        
  530.         elementals_             easy / hard / extreme       easy: 2 same elementals, hard: 3 slightly mixed elementals, extreme: 4 completely mixed elementals
  531.         elementals_OneOfEach                                spawns one of each elemental at each spawn area. Not random. Very hard/annoying. (Spawns 8)
  532.        
  533.         undead_                 easy / hard                 Includes units that take damage from life. Melee and some ranged. Mostly skeletons. Easy if players know WE or QWER.
  534.                                                             Easy: spawn 6 units (1 Necromancer).  Hard: 8 units which are also stronger (2 Necro.). The Necromancers spawn a lot of zombies. Keep that in mind.
  535.        
  536.         dwarfs_                 easy / hard / extreme       Mostly melee units. Much stronger than humans and goblins. High HP and some damage resistance (but also weakness).
  537.                                                             High damage. Slow, but cast teleport.  Easy: 3 units. Hard: 5 units. Extreme: 7 units.
  538.        
  539.         orcs                    easy / hard / extreme       Mostly melee units. Orcs are somewhat better than humans and goblins. Harder difficulties spawn stronger orcs.
  540.                                                             Easy: 4 units. Hard: 6 units. Extreme: 8 units.
  541.        
  542.         goblins_                hard / extreme              Mostly melee units. Goblin units are not very strong. There is no easy difficulty because that would just be another cannonfodder_few.
  543.                                                             Hard: 5 units. Extreme: 9 units.
  544.        
  545.     TO ADD:
  546.        
  547.         melee_weak_             easy / hard / extreme       Spawn weak melee units. Use this if you want units slightly better than cannonfodder.
  548.                                                             Basically a mix of humans, goblins and other melee units. Mostly slow movement. Low HP. Low to medium damage.
  549.        
  550.         melee_strong_           easy / hard / extreme       Spawn strong melee units. Basically a mix of orcs, dwarfs and other melee units. Mostly quick movement. High HP. Medium to high damage.
  551.        
  552.         humans_                 easy / hard / extreme       Melee units. Human units are not very strong. Harder difficulties increase quantity rather than quality.
  553.        
  554.         CC_                     easy / hard / extreme       These units force player to change their protection and/or inflict status effects. Similar to annoying_
  555.                                                             These units: knock down, set on fire, chill down, poison, throw bombs.
  556.                                                             Many of these units appear in other components as well. If they can do anything of the things listed above, they're in here too.
  557.                                                            
  558.     NOTES:
  559.        
  560.        
  561.     TEMPLATES:
  562.    
  563.     <spawn type="template" nr="1" area="north" delay="0"/>      If you want to spawn certain units separately
  564.    
  565.     <executeTrigger trigger="component_" delay="0"/>            Calling wave components
  566. -->
  567.  
  568.     <!-- WAVE 1 -->
  569.  <trigger id="wave1" autorun="false" repeat="false">
  570.     <if>
  571.         <counter name="wavecheck_wavenumber" compareMethod="equal" value="1"/>
  572.     </if>
  573.     <then>
  574.     <executeTrigger trigger="goblins_hard" delay="0"/>
  575.     <executeTrigger trigger="goblins_extreme" delay="10"/>
  576.    
  577.         <counter name="wavecheck_started" action="set" value="1" delay="5656"/>
  578.     <!--     set wavecheck to 1 after spawning the units so that nextwave-trigger can call the next wave
  579.              if units spawn with a great delay, delay the counter, otherwise the next wave might start before the current one is over -->
  580.       <setDialogHint id="#wave1" delay="0" />
  581.     </then>
  582. </trigger>
  583.  
  584.  
  585.  
  586.     <!-- WAVE 2 -->
  587.  <trigger id="wave2" autorun="true" repeat="false">
  588.     <if>
  589.         <counter name="wavecheck_wavenumber" compareMethod="equal" value="2"/>
  590.     </if>
  591.     <then>
  592.         <executeTrigger trigger="minibosses_easy"/>
  593.         <executeTrigger trigger="cannonfodder_many" delay="5"/>
  594.         <executeTrigger trigger="spellcasters_easy" delay="15"/>
  595.        
  596.         <executeTrigger trigger="cannonfodder_few" delay="28"/>
  597.         <executeTrigger trigger="ranged_easy" delay="30"/>
  598.        
  599.         <counter name="wavecheck_started" action="set" value="1" delay="2"/>
  600.        
  601.       <setDialogHint id="#wave2" delay="0" />
  602.     </then>
  603. </trigger>
  604.  
  605.   <!--
  606.     <!- WAVE 3 ->
  607. <trigger id="wave3" autorun="true" repeat="false">
  608.     <if>
  609.         <counter name="wavecheck_wavenumber" compareMethod="equal" value="3"/>
  610.     </if>
  611.     <then>
  612.         <executeTrigger trigger="ranged_extreme"/>
  613.        
  614.         <counter name="wavecheck_started" action="set" value="1" delay="2"/>
  615.         <displayTitleInLevel title="#empty" fadeIn="0.5" displayTime="3" fadeOut="0.5" subtitle="#wave3" />
  616.     </then>
  617. </trigger>
  618.  
  619.  
  620.     <!- WAVE 4 ->
  621. <trigger id="wave4" autorun="true" repeat="false">
  622.     <if>
  623.         <counter name="wavecheck_wavenumber" compareMethod="equal" value="4"/>
  624.     </if>
  625.     <then>
  626.        
  627.         <counter name="wavecheck_started" action="set" value="1" delay="2"/>
  628.         <displayTitleInLevel title="#empty" fadeIn="0.5" displayTime="3" fadeOut="0.5" subtitle="#wave4" />
  629.     </then>
  630. </trigger>-->
  631.  
  632.  
  633.  
  634.  
  635. <!-- ############## SPAWNS ############## -->
  636.  
  637.  
  638.  
  639. <!--  ########################################################### CANNONFODDER UNITS -->
  640.  
  641.  <trigger id="cannonfodder_few" autorun="false" repeat="true">
  642.     <then>
  643.         <random>
  644.             <spawn type="Daemon_lesser" area="north" nr="2" /> <spawn type="Daemon_lesser" area="east" nr="2" />
  645.             <spawn type="Daemon_lesser" area="south" nr="2" /> <spawn type="Daemon_lesser" area="west" nr="2" />
  646.             <setFaction type="Daemon_lesser" action="set" faction="evil" delay="0.1" area="any"/>
  647.         </random>
  648.         <random>
  649.             <spawn type="Goblin_miner" area="north" nr="2" /> <spawn type="Goblin_miner" area="east" nr="2" />
  650.             <spawn type="Goblin_miner" area="south" nr="2" /> <spawn type="Goblin_miner" area="west" nr="2" />
  651.         </random>
  652.         <random>
  653.             <spawn type="Goblin_pirate" area="north" nr="2" /> <spawn type="Goblin_pirate" area="east" nr="2" />
  654.             <spawn type="Goblin_pirate" area="south" nr="2" /> <spawn type="Goblin_pirate" area="west" nr="2" />
  655.         </random>
  656.         <random>
  657.             <spawn type="Imp" area="north" nr="3" /> <spawn type="Imp" area="east" nr="3" />
  658.             <spawn type="Imp" area="south" nr="3" /> <spawn type="Imp" area="west" nr="3" />
  659.         </random>
  660.         <random>
  661.             <spawn type="Villager_female02_pitchfork" area="north" nr="3" />
  662.             <spawn type="Villager_female02_pitchfork" area="south" nr="3" />
  663.             <spawn type="Villager_male07_hammer" area="east" nr="3" />
  664.             <spawn type="Villager_male07_hammer" area="west" nr="3" />
  665.             <setFaction type="Villager_female02_pitchfork" action="set" faction="evil" delay="0.1" area="any"/>
  666.             <setFaction type="Villager_male07_hammer"      action="set" faction="evil" delay="0.1" area="any"/>
  667.         </random>
  668.         <random>
  669.             <spawn type="Spider_forest" area="north" nr="3" /> <spawn type="Spider_forest" area="east" nr="3" />
  670.             <spawn type="Spider_forest" area="south" nr="3" /> <spawn type="Spider_forest" area="west" nr="3" />
  671.             <setFaction type="Spider_forest" action="set" faction="evil" delay="0.1" area="any"/>
  672.         </random>
  673.         <random>
  674.             <spawn type="Zombie" area="north" nr="3" /> <spawn type="Zombie" area="east" nr="3" />
  675.             <spawn type="Zombie" area="south" nr="3" /> <spawn type="Zombie" area="west" nr="3" />
  676.             <setFaction type="Zombie" action="set" faction="evil" delay="0.1" area="any"/>
  677.         </random>
  678.         <random>
  679.             <spawn type="Wizard_Patchwork" area="north" nr="2" order="wander" reactto="attack, proximity" reaction="attack"/>
  680.             <spawn type="Wizard_Patchwork" area="east"  nr="3" order="wander" reactto="attack, proximity" reaction="attack"/>
  681.             <spawn type="Wizard_Patchwork" area="south" nr="2" order="wander" reactto="attack, proximity" reaction="attack"/>
  682.             <spawn type="Wizard_Patchwork" area="west"  nr="3" order="wander" reactto="attack, proximity" reaction="attack"/>
  683.             <setFaction type="Wizard_Patchwork" action="set" faction="evil" delay="0.1" area="any"/>
  684.             <giveOrder type="Wizard_Patchwork"  area="any" order="attack" delay="3"/>
  685.         </random>
  686.     </then>
  687. </trigger>
  688.  <trigger id="cannonfodder_many" autorun="false" repeat="true">
  689.     <then>
  690.         <random>
  691.             <spawn type="Daemon_lesser" area="north" nr="4" /> <spawn type="Daemon_lesser" area="east" nr="4" />
  692.             <spawn type="Daemon_lesser" area="south" nr="4" /> <spawn type="Daemon_lesser" area="west" nr="4" />
  693.             <setFaction type="Daemon_lesser" action="set" faction="evil" delay="0.1" area="any"/>
  694.         </random>
  695.         <random>
  696.             <spawn type="Goblin_miner" area="north" nr="4" /> <spawn type="Goblin_miner" area="east" nr="4" />
  697.             <spawn type="Goblin_miner" area="south" nr="4" /> <spawn type="Goblin_miner" area="west" nr="4" />
  698.         </random>
  699.         <random>
  700.             <spawn type="Imp" area="north" nr="6" /> <spawn type="Imp" area="east" nr="6" />
  701.             <spawn type="Imp" area="south" nr="6" /> <spawn type="Imp" area="west" nr="6" />
  702.         </random>
  703.         <random>
  704.             <spawn type="Villager_female02_pitchfork" area="north" nr="6" />
  705.             <spawn type="Villager_female02_pitchfork" area="south" nr="6" />
  706.             <spawn type="Villager_male07_hammer" area="east" nr="6" />
  707.             <spawn type="Villager_male07_hammer" area="west" nr="6" />
  708.             <setFaction type="Villager_female02_pitchfork" action="set" faction="evil" delay="0.1" area="any"/>
  709.             <setFaction type="Villager_male07_hammer"      action="set" faction="evil" delay="0.1" area="any"/>
  710.         </random>
  711.         <random>
  712.             <spawn type="Spider_forest" area="north" nr="6" /> <spawn type="Spider_forest" area="east" nr="6" />
  713.             <spawn type="Spider_forest" area="south" nr="6" /> <spawn type="Spider_forest" area="west" nr="6" />
  714.             <setFaction type="Spider_forest" action="set" faction="evil" delay="0.1" area="any"/>
  715.         </random>
  716.         <random>
  717.             <spawn type="Zombie" area="north" nr="6" /> <spawn type="Zombie" area="east" nr="6" />
  718.             <spawn type="Zombie" area="south" nr="6" /> <spawn type="Zombie" area="west" nr="6" />
  719.             <setFaction type="Zombie" action="set" faction="evil" delay="0.1" area="any"/>
  720.         </random>
  721.         <random>
  722.             <spawn type="Wizard_Patchwork" area="north" nr="4" order="wander" reactto="attack, proximity" reaction="attack"/>
  723.             <spawn type="Wizard_Patchwork" area="east"  nr="5" order="wander" reactto="attack, proximity" reaction="attack"/>
  724.             <spawn type="Wizard_Patchwork" area="south" nr="4" order="wander" reactto="attack, proximity" reaction="attack"/>
  725.             <spawn type="Wizard_Patchwork" area="west"  nr="5" order="wander" reactto="attack, proximity" reaction="attack"/>
  726.             <setFaction type="Wizard_Patchwork" action="set" faction="evil" delay="0.1" area="any"/>
  727.             <giveOrder  type="Wizard_Patchwork" area="any" order="attack" delay="3"/>
  728.         </random>
  729.     </then>
  730. </trigger>
  731.  
  732.  
  733. <!--  ########################################################### WIZARD UNITS -->
  734.  
  735.  <trigger id="wizards_easy" autorun="false" repeat="true">
  736.     <then> <!-- type="wizard" messes stuff up, do not use this wizard type. Alucart is a good substitude -->
  737.         <random>
  738.             <spawn type="Wizard_Alucart" area="north" nr="1" />
  739.             <spawn type="Wizard_Alucart" area="south" nr="1" />
  740.             <setFaction type="Wizard_Alucart" action="set" faction="evil" delay="0.1" area="any"/>
  741.         </random>
  742.         <random>
  743.             <spawn type="Wizard_Hat"   area="north" nr="1" />
  744.             <spawn type="Wizard_Rogue" area="south" nr="1" />
  745.             <setFaction type="Wizard_Rogue" action="set" faction="evil" delay="0.1" area="any"/>
  746.             <setFaction type="Wizard_Hat"   action="set" faction="evil" delay="0.1" area="any"/>
  747.         </random>
  748.         <random>
  749.             <spawn type="Wizard_Rogue" area="north" nr="1" />
  750.             <spawn type="Wizard_Rogue" area="south" nr="1" />
  751.             <spawn type="Wizard_Rogue" area="west" nr="1" />
  752.             <setFaction type="Wizard_Rogue" action="set" faction="evil" delay="0.1" area="any"/>
  753.         </random>
  754.     </then>
  755. </trigger>
  756.  <trigger id="wizards_hard" autorun="false" repeat="true">
  757.     <then>
  758.         <random>
  759.             <spawn type="Wizard_Alucart" area="north" nr="1" />
  760.             <spawn type="Wizard_Evil"    area="south" nr="1" />
  761.             <setFaction type="Wizard_Alucart" action="set" faction="evil" delay="0.1" area="any"/>
  762.         </random>
  763.         <random>
  764.             <spawn type="Wizard_Hat_Evil" area="north" nr="1" />
  765.             <spawn type="Wizard_Rogue"    area="south" nr="1" />
  766.             <setFaction type="Wizard_Rogue" action="set" faction="evil" delay="0.1" area="any"/>
  767.         </random>
  768.         <random>
  769.             <spawn type="Wizard_Rogue" area="north" nr="1" />
  770.             <spawn type="Wizard_Rogue" area="east" nr="2" />
  771.             <spawn type="Wizard_Rogue" area="south" nr="1" />
  772.             <spawn type="Wizard_Rogue" area="west" nr="1" />
  773.         </random>
  774.     </then>
  775. </trigger>
  776.  
  777.  <trigger id="wizards_extreme" autorun="false" repeat="true">
  778.     <then>
  779.         <random>
  780.             <spawn type="Wizard_Alucart"  area="north" nr="1" order="attack"/>
  781.             <spawn type="Wizard_Evil"     area="east" nr="1"  order="attack"/>
  782.             <spawn type="Wizard_Hat"      area="west" nr="1"  order="attack"/>
  783.             <spawn type="Wizard_Support"  area="east" nr="1"  order="attack"/>
  784.             <setFaction type="Wizard_Alucart" action="set" faction="evil" delay="0.1" area="any"/>
  785.             <setFaction type="Wizard_Hat"     action="set" faction="evil" delay="0.1" area="any"/>
  786.             <setFaction type="Wizard_Evil"    action="set" faction="evil" delay="0.1" area="any"/>
  787.             <setFaction type="Wizard_Support" action="set" faction="evil" delay="0.1" area="any"/>
  788.     </random>
  789.     <random>
  790.             <spawn type="Wizard_Hat_Evil" area="north" nr="1"  order="attack"/>
  791.             <spawn type="Wizard_Hat_Evil" area="south" nr="1"  order="attack"/>
  792.             <spawn type="Wizard_Evil"     area="east"  nr="1"  order="attack"/>
  793.             <spawn type="Wizard_Support"  area="south" nr="1"  order="attack"/>
  794.             <setFaction type="Wizard_Support" action="set" faction="evil" delay="0.1" area="any"/>
  795.         </random>
  796.     </then>
  797. </trigger>
  798.    
  799.  
  800. <!--  ########################################################### SPELLCASTER UNITS
  801.         spellcasters_easy/hard (units like warlocks, goblin mages, goblin aristocrats, ...; no wizards) -->
  802.         <!-- Boss_Cult_Cold/Fire/Lightning/Nature
  803.              Dwarf_mage             Warlock                         Dwarf_smith
  804.              Goblin_shaman          Warlock_Ice
  805.              Goblin_warlock         woot_Enraged_Goblin_warlock
  806.              Necromancer            Boss_Machine_Warlock -->
  807.  <trigger id="spellcasters_easy" autorun="false" repeat="true">
  808.     <then>
  809.         <random>
  810.             <spawn type="Boss_Cult_Cold" area="north" nr="1" />
  811.             <spawn type="Boss_Cult_Fire" area="east" nr="1" />
  812.             <spawn type="Boss_Cult_Nature"    area="south" nr="1" />
  813.             <spawn type="Boss_Cult_Lightning" area="west" nr="1" />
  814.         </random>
  815.         <random>
  816.             <spawn type="Boss_Machine_Warlock" area="north" nr="1" />
  817.             <spawn type="Warlock" area="south" nr="1" />
  818.             <spawn type="Dwarf_smith" area="south" nr="1" />
  819.             <spawn type="Boss_Cult_Lightning" area="west" nr="1" />
  820.         </random>
  821.         <random>
  822.             <spawn type="Dwarf_smith" area="north" nr="1" />
  823.             <spawn type="Warlock_Ice"    area="north" nr="1" />
  824.             <spawn type="Goblin_warlock" area="south" nr="1" />
  825.             <spawn type="Boss_Cult_Lightning" area="west" nr="1" />
  826.         </random>
  827.     </then>
  828. </trigger>
  829.  <trigger id="spellcasters_hard" autorun="false" repeat="true">
  830.     <then>
  831.         <random>
  832.             <spawn type="Boss_Cult_Cold" area="north" nr="2" />
  833.             <spawn type="Boss_Cult_Fire" area="east" nr="2" />
  834.             <spawn type="Boss_Cult_Nature"    area="south" nr="2" />
  835.         </random>  
  836.         <random>
  837.             <spawn type="Boss_Machine_Warlock" area="north" nr="1" />
  838.             <spawn type="Boss_Cult_Cold" area="north" nr="1" />
  839.             <spawn type="Warlock" area="south" nr="1" />
  840.             <spawn type="Warlock_Ice"   area="east" nr="1" />
  841.             <spawn type="Goblin_shaman" area="east" nr="1" />
  842.             <spawn type="Dwarf_smith"   area="west" nr="1" />
  843.         </random><!-- The next one is certainly the hardest -->
  844.         <random>
  845.             <spawn type="Druid" area="north" nr="1" />
  846.             <spawn type="woot_Enraged_Goblin_warlock" area="north" nr="1" health="0.7"/>
  847.             <spawn type="Necromancer" area="south" nr="1" />
  848.             <spawn type="Dwarf_smith" area="south" nr="1" />
  849.             <spawn type="Boss_Machine_Warlock" area="west" nr="1" />
  850.             <spawn type="Dwarf_mage"  area="west" nr="1" health="0.7"/>
  851.         </random>
  852.     </then>
  853. </trigger>
  854.  
  855.  
  856. <!--  ########################################################### ELEMENTAL UNITS -->
  857.  
  858.  <trigger id="elementals_easy" autorun="false" repeat="true">
  859.     <then>
  860.         <random> <spawn type="Elemental_Arcane" area="north" nr="2" /> </random>
  861.         <random> <spawn type="Elemental_Cold"   area="north" nr="2" /> </random>
  862.         <random> <spawn type="Elemental_Fire"   area="north" nr="2" /> </random>
  863.         <random> <spawn type="Elemental_Life"   area="north" nr="2" /> </random>
  864.         <random> <spawn type="Elemental_Lightning" area="north" nr="2" /> </random>
  865.         <random> <spawn type="Elemental_Poison" area="north" nr="2" /> </random>
  866.         <random> <spawn type="Elemental_Steam"  area="north" nr="2" /> </random>
  867.         <random> <spawn type="Elemental_Water"  area="north" nr="2" /> </random>
  868.     </then>
  869. </trigger>
  870.  <trigger id="elementals_hard" autorun="false" repeat="true">
  871.     <then>
  872.         <random>
  873.             <spawn type="Elemental_Arcane" area="north" nr="2" />
  874.             <spawn type="Elemental_Poison" area="northwest" nr="1" />
  875.         </random>
  876.         <random>
  877.             <spawn type="Elemental_Cold"   area="south" nr="1" />
  878.             <spawn type="Elemental_Water"  area="north" nr="2" />
  879.         </random>
  880.         <random>
  881.             <spawn type="Elemental_Fire"   area="north" nr="2" />
  882.             <spawn type="Elemental_Steam"  area="west" nr="1" />
  883.         </random>
  884.         <random>
  885.             <spawn type="Elemental_Life" area="north" nr="2" />
  886.             <spawn type="Elemental_Lightning" area="south" nr="1" />
  887.         </random>
  888.         <random>
  889.             <spawn type="Elemental_Lightning" area="north" nr="1" />
  890.             <spawn type="Elemental_Fire" area="south" nr="2" />
  891.         </random>
  892.         <random>
  893.             <spawn type="Elemental_Poison" area="north" nr="1" />
  894.             <spawn type="Elemental_Cold"   area="west" nr="2" />
  895.         </random>
  896.         <random>
  897.             <spawn type="Elemental_Steam"  area="southeast" nr="1" />
  898.             <spawn type="Elemental_Life"   area="north" nr="2" />
  899.         </random>
  900.         <random>
  901.             <spawn type="Elemental_Water"  area="north" nr="2" />
  902.             <spawn type="Elemental_Arcane" area="southwest" nr="1" />
  903.         </random>
  904.     </then>
  905. </trigger>
  906.  
  907.  <trigger id="elementals_extreme" autorun="false" repeat="true">
  908.     <then>
  909.         <random>
  910.             <spawn type="Elemental_Arcane" area="north" nr="1" />
  911.             <spawn type="Elemental_Cold" area="east" nr="1" />
  912.             <spawn type="Elemental_Fire" area="south" nr="1" />
  913.             <spawn type="Elemental_Life" area="west" nr="1" />
  914.         </random>
  915.         <random>
  916.             <spawn type="Elemental_Lightning" area="north" nr="1" />
  917.             <spawn type="Elemental_Water"  area="east" nr="1" />
  918.             <spawn type="Elemental_Fire"   area="south" nr="1" />
  919.             <spawn type="Elemental_Poison" area="west" nr="1" />
  920.         </random>
  921.         <random>
  922.             <spawn type="Elemental_Poison" area="north" nr="1" />
  923.             <spawn type="Elemental_Steam"  area="east" nr="1" />
  924.             <spawn type="Elemental_Cold"   area="south" nr="1" />
  925.             <spawn type="Elemental_Life"   area="west" nr="1" />
  926.         </random>
  927.         <random>
  928.             <spawn type="Elemental_Water"  area="north" nr="1" />
  929.             <spawn type="Elemental_Arcane" area="east" nr="1" />
  930.             <spawn type="Elemental_Cold"   area="south" nr="1" />
  931.             <spawn type="Elemental_Lightning" area="west" nr="1" />
  932.         </random>
  933.         <random>
  934.             <spawn type="Elemental_Life"  area="north" nr="1" />
  935.             <spawn type="Elemental_Fire"  area="east" nr="1" />
  936.             <spawn type="Elemental_Steam" area="south" nr="1" />
  937.             <spawn type="Elemental_Lightning" area="west" nr="1" />
  938.         </random>
  939.     </then>
  940. </trigger>
  941.  
  942.  <trigger id="elementals_OneOfEach" autorun="false" repeat="true">
  943.     <then>
  944.         <spawn type="Elemental_Arcane" area="north" nr="1" />
  945.         <spawn type="Elemental_Cold"   area="east"  nr="1" />
  946.         <spawn type="Elemental_Fire"   area="south" nr="1" />
  947.         <spawn type="Elemental_Life"   area="west"  nr="1" />
  948.         <spawn type="Elemental_Lightning" area="northeast" nr="1" />
  949.         <spawn type="Elemental_Poison" area="southeast" nr="1" />
  950.         <spawn type="Elemental_Steam"  area="southwest" nr="1" />
  951.         <spawn type="Elemental_Water"  area="northwest" nr="1" />
  952.     </then>
  953. </trigger>
  954.  
  955. <!--  ########################################################### UNDEAD UNITS -->
  956.   <!-- Necromancer, Skeleton_... -->
  957.  <trigger id="undead_easy" autorun="false" repeat="true">
  958.     <then>
  959.         <random>
  960.             <spawn type="skeleton_swordsman" area="north" nr="2"/>
  961.             <spawn type="skeleton_noob" area="north" nr="2"/>
  962.             <spawn type="Necromancer"   area="north" nr="1" delay="4"/>
  963.             <spawn type="Skeleton_darksoul_lightning" area="south" nr="1" delay="5"/>
  964.         </random>
  965.         <random>
  966.             <spawn type="skeleton_swordsman" area="south" nr="2"/>
  967.             <spawn type="skeleton_archer" area="south" nr="2"/>
  968.             <spawn type="Necromancer" area="south" nr="1" delay="4"/>
  969.             <spawn type="Skeleton_darksoul_arcane" area="north" nr="1" delay="5"/>
  970.         </random>
  971.         <random>
  972.             <spawn type="skeleton_swordsman" area="east" nr="1"/>
  973.             <spawn type="skeleton_archer" area="east" nr="1"/>
  974.             <spawn type="skeleton_noob"  area="east" nr="1"/>
  975.             <spawn type="skeleton_elite" area="east" nr="1"/>
  976.             <spawn type="Necromancer"    area="east" nr="1" delay="4"/>
  977.             <spawn type="Skeleton_darksoul_arcane" area="west" nr="1" delay="5"/>
  978.         </random><!-- The next one only spawns 4 units, but they're stronger than the others -->
  979.         <random>
  980.             <spawn type="skeleton_wight" area="west" nr="1"/>
  981.             <spawn type="skeleton_elite" area="west" nr="1"/>
  982.             <spawn type="Necromancer"    area="west" nr="1" delay="4"/>
  983.             <spawn type="Skeleton_darksoul_poison" area="east" nr="1" delay="5"/>
  984.         </random>
  985.     </then>
  986. </trigger>
  987.  <trigger id="undead_hard" autorun="false" repeat="true">
  988.     <then>
  989.         <random>
  990.             <spawn type="skeleton_swordsman" area="north" nr="2"/>
  991.             <spawn type="skeleton_elite" area="north" nr="2"/>
  992.             <spawn type="Necromancer"    area="north" nr="2" delay="4"/>
  993.             <spawn type="Skeleton_darksoul_lightning" area="south" nr="2" delay="5"/>
  994.         </random>
  995.         <random>
  996.             <spawn type="skeleton_wight" area="south" nr="2"/>
  997.             <spawn type="skeleton_darksoul_elite" area="south" nr="2"/>
  998.             <spawn type="Necromancer" area="south" nr="2" delay="4"/>
  999.             <spawn type="Skeleton_darksoul_frost" area="north" nr="2" delay="5"/>
  1000.         </random><!-- The next one spawns 10 units, but they're weaker than the others -->
  1001.         <random>
  1002.             <spawn type="skeleton_swordsman" area="east" nr="1"/>
  1003.             <spawn type="skeleton_archer" area="east" nr="2"/>
  1004.             <spawn type="skeleton_noob"  area="east" nr="1"/>
  1005.             <spawn type="skeleton_elite" area="east" nr="2"/>
  1006.             <spawn type="Necromancer"    area="east" nr="2" delay="4"/>
  1007.             <spawn type="Skeleton_darksoul_arcane" area="west" nr="1" delay="5"/>
  1008.             <spawn type="Skeleton_darksoul_poison" area="west" nr="1" delay="5"/>
  1009.         </random>
  1010.         <random>
  1011.             <spawn type="skeleton_wight" area="west" nr="2"/>
  1012.             <spawn type="skeleton_elite" area="west" nr="2"/>
  1013.             <spawn type="Necromancer"    area="west" nr="2" delay="4"/>
  1014.             <spawn type="Skeleton_darksoul_frost" area="east" nr="2" delay="5"/>
  1015.             <spawn type="Skeleton_darksoul_elite" area="northeast" nr="1" delay="5"/>
  1016.             <spawn type="Skeleton_darksoul_lightning" area="southeast" nr="1" delay="5"/>
  1017.         </random>
  1018.     </then>
  1019. </trigger>
  1020.  
  1021.  
  1022. <!--  ########################################################### DWARF UNITS -->
  1023.  
  1024.  <trigger id="dwarfs_easy" autorun="false" repeat="true">
  1025.     <then>
  1026.         <random>
  1027.             <spawn type="Dwarf_Diplomat" area="north" nr="1" />
  1028.             <spawn type="Dwarf_warrior"  area="northwest" nr="1" />
  1029.             <spawn type="Dwarf_warrior"  area="northeast" nr="1" />
  1030.         </random>
  1031.         <random>
  1032.             <spawn type="Dwarf_captain_noshield" area="south" nr="1" />
  1033.             <spawn type="Dwarf_warrior"  area="southwest" nr="1" />
  1034.             <spawn type="Dwarf_warrior_noshield" area="southeast" nr="1" />
  1035.         </random>
  1036.         <random>
  1037.             <spawn type="Dwarf_Engineer" area="east" nr="1" />
  1038.             <spawn type="Dwarf_warrior"  area="northeast" nr="1" />
  1039.             <spawn type="Dwarf_warrior"  area="southeast" nr="1" />
  1040.         </random>
  1041.         <random>
  1042.             <spawn type="Dwarf_Smith"    area="east" nr="1" />
  1043.             <spawn type="Dwarf_Rifleman" area="northeast" nr="1" />
  1044.             <spawn type="Dwarf_warrior"  area="southeast" nr="1" />
  1045.         </random>
  1046.     </then>
  1047. </trigger>
  1048.  <trigger id="dwarfs_hard" autorun="false" repeat="true">
  1049.     <then>
  1050.         <random>
  1051.             <spawn type="Dwarf_Diplomat" area="north" nr="1" />
  1052.             <spawn type="Dwarf_Engineer" area="north" nr="1" />
  1053.             <spawn type="Dwarf_warrior"  area="northwest" nr="1" />
  1054.             <spawn type="Dwarf_warrior"  area="northeast" nr="1" />
  1055.             <spawn type="Dwarf_Rifleman" area="south" nr="1" />
  1056.         </random>
  1057.         <random>
  1058.             <spawn type="Dwarf_Diplomat" area="west" nr="1" />
  1059.             <spawn type="Dwarf_Engineer" area="west" nr="1" />
  1060.             <spawn type="Dwarf_Rifleman" area="northwest" nr="1" />
  1061.             <spawn type="Dwarf_Rifleman" area="southwest" nr="1" />
  1062.             <spawn type="Dwarf_captain"  area="south" nr="1" />
  1063.         </random>
  1064.         <random>
  1065.             <spawn type="Dwarf_warrior" area="south" nr="2" />
  1066.             <spawn type="Dwarf_smith"   area="southeast" nr="1" />
  1067.             <spawn type="Dwarf_smith"   area="southwest" nr="1" />
  1068.             <spawn type="Dwarf_captain" area="north" nr="1" />
  1069.         </random>
  1070.     </then>
  1071. </trigger>
  1072.  <trigger id="dwarfs_extreme" autorun="false" repeat="true">
  1073.     <then>
  1074.         <random>
  1075.             <spawn type="Dwarf_Diplomat" area="north" nr="1" />
  1076.             <spawn type="Dwarf_Engineer" area="north" nr="1" />
  1077.             <spawn type="Dwarf_warrior"  area="northwest" nr="1" />
  1078.             <spawn type="Dwarf_warrior"  area="northeast" nr="1" />
  1079.             <spawn type="Dwarf_Rifleman" area="south" nr="2" />
  1080.             <spawn type="Dwarf_captain_noshield" area="south" nr="1" />
  1081.         </random>
  1082.         <random>
  1083.             <spawn type="Dwarf_Diplomat" area="west" nr="1" />
  1084.             <spawn type="Dwarf_Engineer" area="west" nr="1" />
  1085.             <spawn type="Dwarf_Rifleman" area="northwest" nr="1" order="wander"/>
  1086.             <spawn type="Dwarf_Rifleman" area="southwest" nr="1" order="wander"/>
  1087.             <spawn type="Dwarf_captain"  area="south" nr="2" />
  1088.             <spawn type="Dwarf_smith"    area="south" nr="1" />
  1089.         </random>
  1090.         <random>
  1091.             <spawn type="Dwarf_warrior"  area="south" nr="3" />
  1092.             <spawn type="Dwarf_captain"  area="north" nr="2" />
  1093.             <spawn type="Dwarf_Rifleman" area="northeast" nr="1" order="wander"/>
  1094.             <spawn type="Dwarf_Rifleman" area="northwest" nr="1" order="wander"/>
  1095.         </random>
  1096.     </then>
  1097. </trigger>
  1098.  
  1099.  
  1100. <!--  ########################################################### ORC UNITS -->
  1101.  
  1102.  <trigger id="orcs_easy" autorun="false" repeat="true">
  1103.     <then>
  1104.         <random>
  1105.             <spawn type="orc_regular" area="north" nr="2" />
  1106.             <spawn type="orc_regular" area="south" nr="2" />
  1107.         </random>
  1108.         <random>
  1109.             <spawn type="orc_warrior_noarmour" area="east" nr="1" />
  1110.             <spawn type="orc_regular" area="west" nr="3" />
  1111.         </random>
  1112.         <random>
  1113.             <spawn type="Orc_captain_noarmour" area="west" nr="1" />
  1114.             <spawn type="orc_regular"       area="east" nr="2" />
  1115.             <spawn type="orc_light_armored" area="north" nr="1" />
  1116.         </random>
  1117.     </then>
  1118. </trigger>
  1119.  
  1120.  <trigger id="orcs_hard" autorun="false" repeat="true">
  1121.     <then>
  1122.         <random>
  1123.             <spawn type="orc_warrior_noarmour" area="north" nr="2" />
  1124.             <spawn type="orc_berserk"       area="north" nr="1" />
  1125.             <spawn type="orc_regular"       area="south" nr="2" />
  1126.             <spawn type="orc_light_armored" area="south" nr="1" />
  1127.         </random>
  1128.         <random>
  1129.             <spawn type="orc_warrior_noshield" area="east" nr="1" />
  1130.             <spawn type="orc_regular"          area="east" nr="2" delay="3" />
  1131.             <spawn type="orc_warrior_noshield" area="west" nr="1" />
  1132.             <spawn type="orc_regular"          area="west" nr="2" delay="3" />
  1133.         </random>
  1134.         <random>
  1135.             <spawn type="orc_light_armored" area="east" nr="1" />
  1136.             <spawn type="orc_regular_axe"   area="east" nr="2" />
  1137.             <spawn type="Orc_captain_noshield" area="west" nr="1" />
  1138.             <spawn type="orc_regular"       area="west" nr="2" delay="3"/>
  1139.         </random>
  1140.     </then>
  1141. </trigger>
  1142.  
  1143.  <trigger id="orcs_extreme" autorun="false" repeat="true">
  1144.     <then>
  1145.         <random>
  1146.             <spawn type="orc_light_armored" area="north" nr="1" />
  1147.             <spawn type="orc_berserk"       area="north" nr="1" />
  1148.             <spawn type="orc_captain"       area="east"  nr="1" />
  1149.             <spawn type="orc_warrior"       area="east"  nr="3"  delay="3"/>           
  1150.             <spawn type="orc_infested"      area="south" nr="1" />
  1151.             <spawn type="Orc_vietcong_rpd"  area="south" nr="1" />
  1152.         </random>
  1153.         <random>
  1154.             <spawn type="orc_captain"  area="north" nr="1" />
  1155.             <spawn type="orc_warrior"  area="north" nr="2" delay="3" />
  1156.             <spawn type="orc_captain"  area="south" nr="1" />
  1157.             <spawn type="orc_warrior"  area="south" nr="2" delay="3" />
  1158.             <spawn type="orc_infested" area="east"  nr="1" delay="1" />
  1159.             <spawn type="orc_infested" area="west"  nr="1" delay="1" />
  1160.         </random>
  1161.         <random>
  1162.             <spawn type="Orc_vietcong_rpd"  area="north" nr="1" />
  1163.             <spawn type="orc_captain"  area="east" nr="2" />
  1164.             <spawn type="orc_warrior"  area="east" nr="3" delay="3" />
  1165.             <spawn type="orc_infested" area="west" nr="1" delay="3" />
  1166.             <spawn type="orc_light_armored" area="south" nr="1" />
  1167.         </random>
  1168.     </then>
  1169. </trigger>
  1170.  
  1171.  
  1172. <!--  ########################################################### GOBLIN UNITS -->
  1173. <!-- no goblins_easy because goblins are very weak and this would just be another cannonfodder_few. -->
  1174.  
  1175.  <trigger id="goblins_hard" autorun="false" repeat="true">
  1176.     <then>
  1177.         <random>
  1178.             <spawn type="goblin_warrior_captain"  area="north" nr="1" />
  1179.             <spawn type="goblin_warrior"  area="north" nr="3" delay="2" />
  1180.             <spawn type="goblin_warrior_archer" area="north" nr="1" delay="4" />
  1181.         </random><!-- The next one is not very well thought through as captains freeze and fallen goblins set on fire. -->
  1182.         <random>
  1183.             <spawn type="goblin_warrior_captain" area="east" nr="1" />
  1184.             <spawn type="goblin_fallen"  area="east" nr="2" />
  1185.             <spawn type="goblin_warrior_captain" area="west" nr="1" />
  1186.             <spawn type="goblin_fallen"  area="west" nr="2" />
  1187.         </random>
  1188.         <random>
  1189.             <spawn type="goblin_warrior_captain" area="north" nr="1" />
  1190.             <spawn type="goblin_fallen"  area="east"  nr="2" />
  1191.             <spawn type="goblin_warrior" area="west"  nr="2" />
  1192.         </random>
  1193.         <random>
  1194.             <spawn type="Goblin_shaman"  area="south" nr="1" />
  1195.             <spawn type="goblin_bomber"  area="south" nr="3" delay="3"/>
  1196.             <spawn type="goblin_warrior" area="north" nr="1" />
  1197.         </random>
  1198.     </then>
  1199. </trigger>
  1200.  <trigger id="goblins_extreme" autorun="false" repeat="true">
  1201.     <then>
  1202.         <random>
  1203.             <spawn type="goblin_warrior_captain"  area="north" nr="1" />
  1204.             <spawn type="goblin_warrior"  area="north" nr="3"     delay="2" />
  1205.             <spawn type="goblin_commando" area="southeast" nr="1" delay="3" />
  1206.             <spawn type="goblin_commando" area="southwest" nr="1" delay="3" />
  1207.         </random>
  1208.         <random>
  1209.             <spawn type="goblin_warrior_captain" area="north" nr="1" />
  1210.             <spawn type="goblin_warrior" area="north" nr="2"/>
  1211.             <spawn type="goblin_warrior_captain" area="east"  nr="1" />
  1212.             <spawn type="goblin_warrior" area="east"  nr="2" />
  1213.             <spawn type="goblin_warrior_captain" area="west"  nr="1" />
  1214.             <spawn type="goblin_warrior" area="west"  nr="2" />
  1215.         </random>
  1216.         <random>
  1217.             <spawn type="goblin_fallen"  area="north" nr="1" />
  1218.             <spawn type="goblin_warrior" area="north" nr="1" />
  1219.             <spawn type="goblin_warrior_archer" area="north" nr="1" delay="1" />
  1220.             <spawn type="goblin_fallen"  area="east"  nr="1" />
  1221.             <spawn type="goblin_warrior" area="east"  nr="1" />
  1222.             <spawn type="goblin_fallen"  area="south" nr="1" />
  1223.             <spawn type="goblin_warrior" area="south" nr="1" />
  1224.             <spawn type="goblin_fallen"  area="west"  nr="1" />
  1225.             <spawn type="goblin_warrior" area="west"  nr="1" />
  1226.         </random>
  1227.         <random>
  1228.             <spawn type="Goblin_shaman"  area="south" nr="1" />
  1229.             <spawn type="goblin_bomber"  area="south" nr="3" delay="2"/>
  1230.             <spawn type="goblin_bomber"  area="south" nr="2" delay="4"/>
  1231.             <spawn type="goblin_warrior" area="north" nr="1" />
  1232.             <spawn type="goblin_warrior_archer" area="southeast" nr="1" delay="3" />
  1233.             <spawn type="goblin_warrior_archer" area="southwest" nr="1" delay="3" />
  1234.         </random>
  1235.     </then>
  1236. </trigger>
  1237.  
  1238.  
  1239.  
  1240. <!--  ########################################################### ???? UNITS
  1241.  
  1242. <trigger id="spiders" autorun="false" repeat="true">
  1243.     <then>
  1244.         <random>
  1245.             <spawn type="InsertUnitType" area="north" nr="1" />
  1246.         </random>
  1247.     </then>
  1248. </trigger> -->
  1249.  
  1250.  
  1251. <!--  ########################################################### TROLL UNITS -->
  1252.  
  1253.  <trigger id="trolls_easy" autorun="false" repeat="true">
  1254.     <then>
  1255.         <random>
  1256.             <spawn type="troll_forest" area="north" nr="1"/>
  1257.             <spawn type="troll_forest_unarmed" area="east" nr="1"/>
  1258.         </random>
  1259.         <random>
  1260.             <spawn type="troll_forest_hook" area="north" nr="1"/>
  1261.             <spawn type="troll_forest" area="west" nr="1"/>
  1262.         </random>
  1263.         <random>
  1264.             <spawn type="troll_war_hook" area="north" nr="1"/>
  1265.             <spawn type="Troll_stone_unarmed" area="south" nr="1"/>
  1266.         </random>
  1267.         <random>
  1268.             <spawn type="troll_war" area="north" nr="1"/>
  1269.             <spawn type="troll_war_hook" area="east" nr="1"/>
  1270.         </random>
  1271.     </then>
  1272. </trigger>
  1273.  <trigger id="trolls_hard" autorun="false" repeat="true">
  1274.     <then>
  1275.         <random>
  1276.             <spawn type="troll_forest" area="north" nr="1"/>
  1277.             <spawn type="troll_forest_unarmed" area="south" nr="1"/>
  1278.             <spawn type="Troll_stone_unarmed"  area="east" nr="1"/>
  1279.         </random>
  1280.         <random>
  1281.             <spawn type="troll_forest_hook" area="north" nr="1"/>
  1282.             <spawn type="troll_forest" area="south" nr="1"/>
  1283.             <spawn type="Troll_stone"  area="west" nr="1"/>
  1284.         </random>
  1285.         <random>
  1286.             <spawn type="troll_war_hook" area="north" nr="1"/>
  1287.             <spawn type="Troll_stone_unarmed" area="east" nr="1"/>
  1288.             <spawn type="Troll_zombie" area="west" nr="1"/>
  1289.         </random>
  1290.         <random>
  1291.             <spawn type="troll_war" area="north" nr="1"/>
  1292.             <spawn type="troll_war_hook" area="south" nr="1"/>
  1293.             <spawn type="Troll_stone" area="west" nr="1"/>
  1294.         </random>
  1295.     </then>
  1296. </trigger>
  1297.  <trigger id="trolls_extreme" autorun="false" repeat="true">
  1298.     <then>
  1299.         <random>
  1300.             <spawn type="troll_forest" area="north" nr="1"/>
  1301.             <spawn type="Troll_stone"  area="east" nr="1"/>
  1302.             <spawn type="Troll_snow"   area="south" nr="1"/>
  1303.             <spawn type="Troll_zombie" area="west" nr="1"/>
  1304.         </random>
  1305.         <random>
  1306.             <spawn type="troll_snow" area="north" nr="1"/>
  1307.             <spawn type="Troll_war"  area="east" nr="1"/>
  1308.             <spawn type="Troll_stone"  area="south" nr="1"/>
  1309.             <spawn type="Troll_zombie" area="west" nr="1"/>
  1310.         </random>
  1311.         <random>
  1312.             <spawn type="Troll_zombie_snow" area="north" nr="1"/>
  1313.             <spawn type="Troll_war"   area="east" nr="1"/>
  1314.             <spawn type="Troll_stone" area="south" nr="1"/>
  1315.             <spawn type="Troll_snow"  area="west" nr="1"/>
  1316.         </random>
  1317.         <random>
  1318.             <spawn type="Troll_zombie_snow" area="north" nr="1"/>
  1319.             <spawn type="Troll_zombie_club" area="east" nr="1"/>
  1320.             <spawn type="Troll_stone" area="south" nr="1"/>
  1321.             <spawn type="Troll_snow"  area="west" nr="1"/>
  1322.         </random>
  1323.         <random>
  1324.             <spawn type="Troll_zombie_snow" area="north" nr="1"/>
  1325.             <spawn type="Troll_zombie_club" area="east" nr="1"/>
  1326.             <spawn type="Troll_stone" area="south" nr="1"/>
  1327.             <spawn type="Troll_snow"  area="west" nr="1"/>
  1328.         </random>
  1329.     </then>
  1330. </trigger>
  1331.  
  1332.  
  1333. <!--  ########################################################### IMMUNITY AURA SUPPORT UNITS -->
  1334. <!-- Beastman_brute_earth   Physical        Beastman_brute_fire         Fire
  1335.      Beastman_chieftain     Lightning       Beastman_raider_lightning   Lightning
  1336.      Beastman_raider_water  Water           Wizard_Support              Fire, sometimes Arcane
  1337.      Warlock_Ice            Cold, Ice-->
  1338.  
  1339. <trigger id="immunity_support_easy" autorun="false" repeat="true">
  1340.     <then>
  1341.         <random>
  1342.             <spawn type="Beastman_brute_earth" area="east" nr="1" />
  1343.             <spawn type="Beastman_raider_lightning" area="west" nr="1" />
  1344.         </random>
  1345.         <random>
  1346.             <spawn type="Beastman_brute_fire" area="northeast" nr="1" />
  1347.             <spawn type="Beastman_raider_water" area="southeast" nr="1" />
  1348.         </random>
  1349.         <random>
  1350.             <spawn type="Beastman_raider_lightning" area="southeast" nr="1" />
  1351.             <spawn type="Beastman_raider_water" area="northwest" nr="1" />
  1352.         </random>
  1353.         <random>
  1354.             <spawn type="Beastman_brute_fire" area="north" nr="1" />
  1355.             <spawn type="Beastman_raider_lightning" area="south" nr="1" />
  1356.         </random>
  1357.     </then>
  1358. </trigger>
  1359.  
  1360. <trigger id="immunity_support_hard" autorun="false" repeat="true">
  1361.     <then>
  1362.         <random>
  1363.             <spawn type="Beastman_brute_earth" area="east" nr="1" />
  1364.             <spawn type="Beastman_raider_lightning" area="northeast" nr="1" />
  1365.             <spawn type="Beastman_brute_fire"  area="north" nr="1" />
  1366.         </random>
  1367.         <random>
  1368.             <spawn type="Beastman_brute_fire" area="west" nr="1" />
  1369.             <spawn type="Beastman_raider_water" area="southwest" nr="1" />
  1370.             <spawn type="Beastman_chieftain"  area="south" nr="1" health="0.7"/>
  1371.         </random>
  1372.         <random>
  1373.             <spawn type="Beastman_brute_fire"   area="east" nr="1" />
  1374.             <spawn type="Beastman_brute_earth"  area="north" nr="1" />
  1375.             <spawn type="Beastman_raider_water" area="northwest" nr="1" />
  1376.         </random>
  1377.         <random>
  1378.             <spawn type="Warlock_Ice" area="east" nr="1" />
  1379.             <spawn type="Beastman_raider_lightning" area="northeast" nr="1" />
  1380.             <spawn type="Beastman_brute_earth"  area="north" nr="1" />
  1381.             <spawn type="Beastman_raider_water" area="northwest" nr="1" />
  1382.         </random>
  1383.     </then>
  1384. </trigger>
  1385.  
  1386. <trigger id="immunity_support_extreme" autorun="false" repeat="true">
  1387.     <then>
  1388.         <random>
  1389.             <spawn type="Beastman_brute_fire"  area="west" nr="1" />
  1390.             <spawn type="Beastman_brute_earth" area="west" nr="1" />
  1391.             <spawn type="Beastman_raider_lightning" area="northwest" nr="2" />
  1392.             <spawn type="Beastman_raider_water" area="northwest" nr="2" />
  1393.             <spawn type="Beastman_chieftain"    area="north" nr="1" />
  1394.             <spawn type="Warlock_Ice" area="south" nr="1" />
  1395.         </random>
  1396.         <random>
  1397.             <spawn type="Beastman_raider_water" area="south" nr="2" />
  1398.             <spawn type="Beastman_raider_lightning" area="south" nr="2" />
  1399.             <spawn type="Beastman_brute_fire"   area="west" nr="2" />
  1400.             <spawn type="Beastman_brute_earth"  area="west" nr="2" />
  1401.             <spawn type="Warlock_Ice" area="east" nr="1" />
  1402.         </random>
  1403.         <random>
  1404.             <spawn type="Beastman_chieftain"   area="west"  nr="1" health="0.8"/>
  1405.             <spawn type="Beastman_chieftain"   area="east"  nr="1" health="0.8"/>
  1406.             <spawn type="Beastman_brute_fire"  area="south" nr="1" />
  1407.             <spawn type="Beastman_brute_earth" area="south" nr="1" />
  1408.            
  1409.             <spawn type="Beastman_raider_lightning" area="northeast" nr="1" />
  1410.             <spawn type="Beastman_raider_lightning" area="southwest" nr="1" />
  1411.             <spawn type="Beastman_raider_water" area="northwest" nr="1" />
  1412.             <spawn type="Beastman_raider_water" area="southeast" nr="1" />
  1413.         </random>
  1414.         <random>
  1415.             <spawn type="Beastman_raider_water"     area="south" nr="1" />
  1416.             <spawn type="Beastman_raider_lightning" area="south" nr="1" />
  1417.             <spawn type="Beastman_brute_fire"  area="west" nr="1" />
  1418.             <spawn type="Beastman_brute_earth" area="west" nr="1" />
  1419.             <spawn type="Warlock_Ice" area="east"  nr="1" />
  1420.             <spawn type="Warlock_Ice" area="north" nr="1" />
  1421.             <spawn type="Warlock_Ice" area="southwest" nr="1" />
  1422.         </random>
  1423.     </then>
  1424. </trigger>
  1425.  
  1426.  
  1427.  
  1428. <!--  ########################################################### RANGED UNITS -->
  1429.  
  1430.  <trigger id="ranged_easy" autorun="false" repeat="true">
  1431.     <then>
  1432.         <random>
  1433.             <spawn type="Skeleton_archer"  area="north" nr="1" />
  1434.             <spawn type="Orc_vietcong_rpd" area="east" nr="1" />
  1435.             <spawn type="Goblin_warrior_archer" area="south" nr="1" />
  1436.             <spawn type="orc_light_armored"     area="west" nr="1" />
  1437.         </random>
  1438.         <random>
  1439.             <spawn type="Daemon_greater" area="northeast" nr="1"  order="wander" reactto="attack, proximity" reaction="attack"/>
  1440.             <spawn type="Daemon_greater" area="southeast" nr="1"  order="wander" reactto="attack, proximity" reaction="attack"/>
  1441.             <spawn type="Daemon_greater" area="southwest" nr="1"  order="wander" reactto="attack, proximity" reaction="attack"/>
  1442.             <spawn type="Daemon_greater" area="northwest" nr="1"  order="wander" reactto="attack, proximity" reaction="attack"/>
  1443.             <giveOrder type="Daemon_greater" area="any" order="attack" delay="5"/>
  1444.         </random>
  1445.         <random>
  1446.             <spawn type="Goblin_commando" area="northeast" nr="1" />
  1447.             <spawn type="Goblin_commando" area="southeast" nr="1" />
  1448.             <spawn type="Goblin_commando" area="southwest" nr="1" />
  1449.             <spawn type="Goblin_commando" area="northwest" nr="1" />
  1450.         </random>
  1451.         <random>
  1452.             <spawn type="Cultist" area="northeast" nr="1" />
  1453.             <spawn type="Skeleton_archer" area="southeast" nr="1" />
  1454.             <spawn type="Cultist" area="southwest" nr="1" />
  1455.             <spawn type="Cultist" area="northwest" nr="1" />
  1456.         </random>
  1457.         <random>
  1458.             <spawn type="Beholder_benign" area="north" nr="1" />
  1459.             <spawn type="Beholder_benign" area="south" nr="1" />
  1460.             <spawn type="Goblin_warrior_archer" area="east" nr="1" />
  1461.             <spawn type="Goblin_warrior_archer" area="west" nr="1" />
  1462.         </random>
  1463.     </then>
  1464. </trigger>
  1465.  
  1466.  <trigger id="ranged_hard" autorun="false" repeat="true">
  1467.     <then>
  1468.         <random>
  1469.             <spawn type="Troll_war_arbalest" area="west" nr="1" />
  1470.             <spawn type="orc_light_armored"  area="north" nr="1" />
  1471.             <spawn type="orc_light_armored"  area="south" nr="1" />
  1472.            
  1473.             <spawn type="Goblin_ranger" area="northeast" nr="1" />
  1474.             <spawn type="Goblin_ranger" area="southwest" nr="1" />
  1475.         </random>
  1476.         <random>
  1477.             <spawn type="skeleton_archer" area="northeast" nr="1" />
  1478.             <spawn type="Goblin_vietnam_soldier_rpg7" area="southeast" nr="1" />
  1479.             <spawn type="skeleton_archer" area="southwest" nr="1" />
  1480.             <spawn type="Goblin_vietnam_soldier_rpg7" area="northwest" nr="1" />
  1481.         </random>
  1482.         <random>
  1483.             <spawn type="Beholder_malign" area="east" nr="1" />
  1484.             <spawn type="skeleton_elite" area="south" nr="1" />
  1485.             <spawn type="Beholder_benign" area="east" nr="1" />
  1486.             <spawn type="Beholder_benign" area="west" nr="1" />
  1487.         </random>
  1488.         <random>
  1489.             <spawn type="Goblin_vietnam_soldier_mortar" area="north" nr="1" />
  1490.             <spawn type="Goblin_vietnam_soldier_mortar" area="southeast" nr="1" />
  1491.             <spawn type="Goblin_vietnam_soldier_mortar" area="southwest" nr="1" />
  1492.         </random>
  1493.     </then>
  1494. </trigger>
  1495.  
  1496.  <trigger id="ranged_extreme" autorun="false" repeat="true">
  1497.     <then>
  1498.         <random>
  1499.             <spawn type="Troll_war_arbalest" area="east" nr="1" />
  1500.             <spawn type="Troll_war_arbalest" area="west" nr="1" />
  1501.             <spawn type="Goblin_ranger" area="northeast" nr="1" />  <spawn type="Goblin_ranger" area="southeast" nr="1" />
  1502.             <spawn type="Goblin_ranger" area="southwest" nr="1" />  <spawn type="Goblin_ranger" area="northwest" nr="1" />
  1503.             <spawn type="skeleton_elite" area="north" nr="1" delay="3"/>
  1504.             <spawn type="skeleton_elite" area="south" nr="1"  delay="3"/>
  1505.         </random>
  1506.         <random>
  1507.             <spawn type="Goblin_vietnam_soldier_rpg7" area="north" nr="1" />
  1508.             <spawn type="Goblin_vietnam_soldier_rpg7" area="south" nr="1" />
  1509.             <spawn type="Goblin_vietnam_soldier_rpg7" area="northeast" nr="1"/>
  1510.             <spawn type="Goblin_vietnam_soldier_rpg7" area="southeast" nr="1"/>
  1511.             <spawn type="Goblin_vietnam_soldier_rpg7" area="southwest" nr="1"/>
  1512.             <spawn type="Goblin_vietnam_soldier_rpg7" area="northwest" nr="1"/>
  1513.         </random>
  1514.         <random>
  1515.             <spawn type="Beholder_malign" area="north" nr="1" />
  1516.             <spawn type="Beholder_malign" area="east" nr="1" />
  1517.             <spawn type="Beholder_malign" area="south" nr="1" />
  1518.             <spawn type="Beholder_malign" area="west" nr="1" />
  1519.         </random>
  1520.         <random>
  1521.             <spawn type="Dwarf_mage" area="north" nr="1" />
  1522.             <spawn type="Dwarf_mage" area="east" nr="1" />
  1523.             <spawn type="Dwarf_mage" area="west" nr="1" />
  1524.             <spawn type="Dwarf_mage" area="southeast" nr="1" />
  1525.             <spawn type="Dwarf_mage" area="southwest" nr="1" />
  1526.         </random>
  1527.         <random>
  1528.             <spawn type="Troll_vietcong_machinegun" area="north" nr="1" />
  1529.             <spawn type="troll_vietcong_machinegun" area="east" nr="1" />
  1530.             <spawn type="troll_vietcong_machinegun" area="south" nr="1" />
  1531.             <spawn type="troll_vietcong_machinegun" area="west" nr="1" />
  1532.         </random>
  1533.         <random>
  1534.             <spawn type="Goblin_vietnam_soldier_mortar" area="north" nr="1" />
  1535.             <spawn type="Goblin_vietnam_soldier_mortar" area="east" nr="1" />
  1536.             <spawn type="Goblin_vietnam_soldier_mortar" area="west" nr="1" />
  1537.             <spawn type="Goblin_vietnam_soldier_mortar" area="southeast" nr="1" />
  1538.             <spawn type="Goblin_vietnam_soldier_mortar" area="southwest" nr="1" />
  1539.         </random>
  1540.     </then>
  1541. </trigger>
  1542.  
  1543.  
  1544. <!--  ########################################################### MINIBOSSES -->
  1545.  
  1546.  <trigger id="minibosses_easy" autorun="false" repeat="true">
  1547.     <then>
  1548.         <random>   
  1549.             <spawn type="Beastman_chieftain" area="east" nr="1" /> 
  1550.         </random>
  1551.         <random>
  1552.             <spawn type="Daemon_lord" area="east" nr="1" id="daemonboss" order="wander" reactto="attack, proximity" reaction="attack"/>
  1553.             <executeTrigger trigger="boost_daemonboss" delay="5"/>
  1554.         </random>
  1555.         <random>
  1556.             <spawn type="boss_warlord" area="east" nr="1" />   
  1557.         </random>
  1558.     </then>
  1559. </trigger>
  1560.  
  1561.  <trigger id="minibosses_hard" autorun="false" repeat="true">
  1562.     <then>
  1563.         <random>
  1564.             <spawn type="Starspawn" area="east" nr="1" />  
  1565.         </random>
  1566.         <random>
  1567.         <spawn type="Dungeons_wurstmacher" area="east" nr="1"/>
  1568.         </random>
  1569.         <random>
  1570.             <spawn type="Daemon_lord" area="east" nr="1" />
  1571.             <spawn type="Daemon_lord" area="west" nr="1" />
  1572.             <spawn type="Beastman_chieftain" area="south" nr="1"/>
  1573.             <setFaction type="Daemon_lord" action="set" faction="evil" delay="0.1" area="any"/>
  1574.         </random>
  1575.         <random>
  1576.             <spawn type="boss_warlord" area="east" nr="1" />
  1577.             <spawn type="boss_warlord" area="west" nr="1" />
  1578.         </random>
  1579.     </then>
  1580. </trigger>
  1581.  
  1582.  <trigger id="minibosses_extreme" autorun="false" repeat="true">
  1583.     <then>
  1584.         <random>
  1585.             <spawn type="Starspawn" area="east" nr="1" />
  1586.             <spawn type="Starspawn" area="west" nr="1" />
  1587.         </random>
  1588.         <random>
  1589.             <spawn type="grimnirs_starspawn" area="east" nr="1" />
  1590.             <spawn type="grimnirs_starspawn" area="west" nr="1" />
  1591.         </random>
  1592.         <random>
  1593.             <spawn type="Starspawn" area="east" nr="1" />
  1594.             <spawn type="grimnirs_starspawn" area="west" nr="1" />
  1595.         </random>
  1596.         <random>
  1597.             <spawn type="Dungeons_wurstmacher" area="north" nr="1" health="0.6"/>
  1598.             <spawn type="Dungeons_wurstmacher" area="south" nr="1"  health="0.6"/>
  1599.         </random>
  1600.         <random>
  1601.             <spawn type="boss_warlord" area="north" nr="1" />
  1602.             <spawn type="boss_warlord" area="east" nr="1" />
  1603.             <spawn type="boss_warlord" area="south" nr="1" />
  1604.             <spawn type="boss_warlord" area="west" nr="1" />
  1605.         </random>
  1606.     </then>
  1607. </trigger>
  1608.  
  1609.  
  1610.  
  1611. <!--  ########################################################### ANNOYING ENEMIES -->
  1612.  
  1613.  <trigger id="annoying_easy" autorun="false" repeat="true">
  1614.     <then>
  1615.         <random>
  1616.             <spawn type="Elder_thing" area="east" nr="1" />
  1617.             <spawn type="Elder_thing" area="east" nr="1" delay="25"/>
  1618.         </random>
  1619.         <random>
  1620.             <spawn type="woot_Enraged_Goblin_warlock" area="east" nr="1" />
  1621.             <spawn type="woot_enraged_goblin_warlock" area="east" nr="1" delay="25"/>
  1622.         </random>
  1623.         <random>
  1624.             <spawn type="boss_warlord" area="east" nr="1" />
  1625.         </random>
  1626.         <random>
  1627.             <spawn type="Goblin_bomber" area="north" nr="1" />
  1628.             <spawn type="Goblin_bomber" area="east" nr="1" />
  1629.             <spawn type="Goblin_bomber" area="south" nr="1" />
  1630.             <spawn type="Goblin_bomber" area="west" nr="1" />
  1631.         </random>
  1632.     </then>
  1633. </trigger>
  1634.  
  1635.  <trigger id="annoying_hard" autorun="false" repeat="true">
  1636.     <then>
  1637.         <random>
  1638.             <spawn type="Elder_thing" area="east" nr="1" />
  1639.             <spawn type="Elder_thing" area="east" nr="1" delay="10"/>
  1640.             <spawn type="Elder_thing" area="east" nr="1" delay="25"/>
  1641.             <spawn type="Elder_thing" area="east" nr="1" delay="40"/>
  1642.         </random>
  1643.     <random>
  1644.             <spawn type="woot_enraged_goblin_warlock" area="east" nr="1" />
  1645.             <spawn type="woot_enraged_goblin_warlock" area="east" nr="1" delay="10"/>
  1646.             <spawn type="woot_enraged_goblin_warlock" area="east" nr="1" delay="25"/>
  1647.             <spawn type="woot_enraged_goblin_warlock" area="east" nr="1" delay="40"/>
  1648.         </random>
  1649.     <random>
  1650.             <spawn type="boss_warlord" area="east" nr="1" />
  1651.             <spawn type="Druid" area="east" nr="1" />
  1652.             <spawn type="woot_enraged_goblin_warlock" area="east" nr="1" />
  1653.             <spawn type="Elder_thing"  area="east" nr="1" />
  1654.         </random>
  1655.         <random>
  1656.             <spawn type="Goblin_bomber" area="south" nr="1" />
  1657.             <spawn type="Goblin_bomber" area="north" nr="1" />
  1658.             <spawn type="Goblin_bomber" area="northeast" nr="1" />
  1659.             <spawn type="Goblin_bomber" area="southeast" nr="1" />
  1660.             <spawn type="Goblin_bomber" area="southwest" nr="1" />
  1661.             <spawn type="Goblin_bomber" area="northwest" nr="1" />
  1662.         </random>
  1663.     </then>
  1664. </trigger>
  1665.  
  1666. <!--  ########################################################### TRIGGERS TO SUPPORT SPAWNED UNITS. E.G. CAST MAGICKS OR AUTO HEAL -->
  1667.  
  1668.     <!-- perhaps there's a use for  <magick id="someID" magicktype="etherealize"/>  -->
  1669.    
  1670. <trigger id="boost_daemonboss" autorun="false" repeat="true">
  1671.     <if>
  1672.         <idPresent id="daemonboss" area="any" />
  1673.     </if>
  1674.     <then>
  1675.         <magick id="daemonboss" magicktype="grow"/>
  1676.         <magick id="daemonboss" magicktype="performanceenchantment"/>
  1677.         <executeTrigger trigger="boost_daemonboss" delay="5"/>
  1678.     </then>
  1679. </trigger>
  1680. <trigger id="boost_daemonboss2" autorun="true" repeat="5">
  1681.     <if>
  1682.         <idPresent id="daemonboss" area="any" />
  1683.         <characterhealth id="daemonboss" compareMethod="less" health="1"/>
  1684.     </if>
  1685.     <then>
  1686.         <damage id="daemonboss" ignoreShields="false">
  1687.             <damage attackProperty="damage" element="physical" magnitude="1" amount="-151" />
  1688.         </damage>
  1689.     </then>
  1690. </trigger>
  1691.  
  1692. </Scene>
Advertisement
Add Comment
Please, Sign In to add comment