splinterverse

Untitled

Sep 18th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.59 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <CARD_V2 ExportVersion="1">
  3.   <FILENAME text="WILD_MAMMOTH_CW_21376" />
  4.   <CARDNAME text="WILD_MAMMOTH" />
  5.   <TITLE>
  6.     <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  7.     <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  8.     <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  9.     <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  10.     <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  11.     <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  12.     <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  13.     <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  14.     <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  15.     <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  16.     <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Wild Mammoth]]></LOCALISED_TEXT>
  17.   </TITLE>
  18.   <MULTIVERSEID value="21376" />
  19.   <ARTID value="WILD_MAMMOTH" />
  20.   <ARTIST name="Bradley Williams" />
  21.   <CASTING_COST cost="{2}{G}" />
  22.   <FLAVOURTEXT>
  23.     <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  24.     <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  25.     <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  26.     <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  27.     <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  28.     <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  29.     <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  30.     <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  31.     <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  32.     <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  33.     <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[“Sit. Heel Down HELP”]]></LOCALISED_TEXT>
  34.   </FLAVOURTEXT>
  35.   <TYPE metaname="Creature" />
  36.   <SUB_TYPE metaname="Elephant" />
  37.   <EXPANSION value="NE" />
  38.   <RARITY metaname="U" />
  39.   <POWER value="3" />
  40.   <TOUGHNESS value="4" />
  41.   <TRIGGERED_ABILITY>
  42.     <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  43.     <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  44.     <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  45.     <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  46.     <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  47.     <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  48.     <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  49.     <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  50.     <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  51.     <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  52.     <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[At the beginning of your upkeep, if a player controls more creatures than each other player, the player who controls the most creatures gains control of Wild Mammoth.]]></LOCALISED_TEXT>
  53.     <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" >
  54.         return MTG():GetStep() == STEP_UPKEEP and TriggerPlayer() == Object():GetOwner()
  55.     </TRIGGER>
  56.     <RESOLUTION_TIME_ACTION>
  57.         local creature_countA = 0
  58.         local creature_countB = 0
  59.         local creature_countC = 0
  60.         local creature_countD = 0
  61.         for i=0,MTG():GetNumberOfPlayers()-1 do
  62.             local nthPlayer = MTG():GetNthPlayer(i)
  63.             if i == 0 and nthPlayer ~= nil then
  64.                 filter:Clear()
  65.                 filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
  66.                 filter:Add(FE_CONTROLLER, OP_IS, nthPlayer)
  67.                 creature_countA = filter:Count()
  68.             elseif i == 1 and nthPlayer ~= nil then
  69.                 filter:Clear()
  70.                 filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
  71.                 filter:Add(FE_CONTROLLER, OP_IS, nthPlayer)
  72.                 creature_countB = filter:Count()
  73.             elseif i == 2 and nthPlayer ~= nil then
  74.                 filter:Clear()
  75.                 filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
  76.                 filter:Add(FE_CONTROLLER, OP_IS, nthPlayer)
  77.                 creature_countC = filter:Count()
  78.             elseif i == 3 and nthPlayer ~= nil then
  79.                 filter:Clear()
  80.                 filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
  81.                 filter:Add(FE_CONTROLLER, OP_IS, nthPlayer)
  82.                 creature_countD = filter:Count()
  83.             end
  84.         end
  85.         if (creature_countA &gt; creature_countB) and (creature_countA &gt; creature_countC) and (creature_countA &gt; creature_countD) then
  86.             local nthPlayer = MTG():GetNthPlayer(0)
  87.             if nthPlayer ~= nil then
  88.                 Object():SetBaseController(nthPlayer)
  89.             end
  90.         elseif (creature_countB &gt; creature_countA) and (creature_countB &gt; creature_countC) and (creature_countB &gt; creature_countD) then
  91.             local nthPlayer = MTG():GetNthPlayer(1)
  92.             if nthPlayer ~= nil then
  93.                 Object():SetBaseController(nthPlayer)
  94.             end
  95.         elseif (creature_countC &gt; creature_countA) and (creature_countC &gt; creature_countB) and (creature_countC &gt; creature_countD) then
  96.             local nthPlayer = MTG():GetNthPlayer(2)
  97.             if nthPlayer ~= nil then
  98.                 Object():SetBaseController(nthPlayer)
  99.             end
  100.         elseif (creature_countD &gt; creature_countA) and (creature_countD &gt; creature_countC) and (creature_countD &gt; creature_countB) then
  101.             local nthPlayer = MTG():GetNthPlayer(3)
  102.             if nthPlayer ~= nil then
  103.                 Object():SetBaseController(nthPlayer)
  104.             end
  105.         end
  106.     </RESOLUTION_TIME_ACTION>
  107.   </TRIGGERED_ABILITY>
  108.   <SFX text="COMBAT_BLUNT_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
  109.   <SFX text="COMBAT_BLUNT_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
  110.     <AUTHOR><![CDATA[Splinterverse]]></AUTHOR>
  111.     <EDITORS><![CDATA[Splinterverse]]></EDITORS>
  112.     <DATE><![CDATA[2016-09-18]]></DATE>
  113. </CARD_V2>
Add Comment
Please, Sign In to add comment