Advertisement
Guest User

Untitled

a guest
Sep 16th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.26 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <CARD_V2 ExportVersion="1">
  3.   <FILENAME text="SELVALA_HEART_OF_THE_WILDS_CW_416827" />
  4.   <CARDNAME text="SELVALA_HEART_OF_THE_WILDS" />
  5.   <TITLE>
  6.     <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  7.     <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  8.     <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  9.     <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  10.     <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  11.     <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[野生の心、セルヴァラ]]></LOCALISED_TEXT>
  12.     <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  13.     <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  14.     <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  15.     <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[荒野之心塞瓦拉]]></LOCALISED_TEXT>
  16.     <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Selvala, Heart of the Wilds]]></LOCALISED_TEXT>
  17.   </TITLE>
  18.   <MULTIVERSEID value="416827" />
  19.   <ARTID value="SELVALA_HEART_OF_THE_WILDS" />
  20.   <ARTIST name="Tyler Jacobson" />
  21.   <CASTING_COST cost="{1}{G}{G}" />
  22.   <SUPERTYPE metaname="Legendary" />
  23.   <TYPE metaname="Creature" />
  24.   <SUB_TYPE metaname="Elf" />
  25.   <SUB_TYPE metaname="Scout" />
  26.   <EXPANSION value="CN2" />
  27.   <RARITY metaname="M" />
  28.   <POWER value="2" />
  29.   <TOUGHNESS value="3" />
  30.   <TRIGGERED_ABILITY>
  31.     <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  32.     <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  33.     <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  34.     <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  35.     <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  36.     <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[他のクリーチャーが1体戦場に出るたび、そのパワーがそれ以外の各クリーチャーのパワーよりも大きいなら、それのコントローラーはカードを1枚引いてもよい。]]></LOCALISED_TEXT>
  37.     <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  38.     <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  39.     <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  40.     <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[每当另一个生物进战场时,如果其力量比每个其他生物都大,则其操控者可以抓一张牌。]]></LOCALISED_TEXT>
  41.     <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature’s power.]]></LOCALISED_TEXT>
  42.     <TRIGGER value="ZONECHANGE_END" simple_qualifier="another" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY">
  43.         return TriggerObject():GetCardType():Test( CARD_TYPE_CREATURE )
  44.     </TRIGGER>
  45.     <RESOLUTION_TIME_ACTION>
  46.         if TriggerObject() ~= nil then
  47.             local testedPower = TriggerObject():GetCurrentCharacteristics():Power_Get()
  48.             local max_power = 0
  49.             local filter = ClearFilter()
  50.             filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
  51.             local filter_count = filter:EvaluateObjects()
  52.             if filter_count &gt; 0 then
  53.                 for i=0,filter_count-1 do
  54.                     local creature = filter:GetNthEvaluatedObject(i)
  55.                     if creature ~= nil then
  56.                         local power = creature:GetCurrentCharacteristics():Power_Get()
  57.                         if power &gt; max_power then
  58.                             max_power = power
  59.                         end
  60.                     end
  61.                 end
  62.             end
  63.             if testedPower > max_power then
  64.                 local Player = TriggerObject():GetController()
  65.                 Player:BeginNewMultipleChoice()
  66.                     Player:AddMultipleChoiceAnswer("CARD_QUERY_SELVALA_HEART_OF_THE_WILDS_OPTION_DRAW")
  67.                     Player:AddMultipleChoiceAnswer("CARD_QUERY_SELVALA_HEART_OF_THE_WILDS_OPTION_DONT_DRAW")
  68.                 Player:AskMultipleChoiceQuestion("CARD_QUERY_SELVALA_HEART_OF_THE_WILDS", EffectSource())
  69.             else
  70.             end
  71.         end
  72.     </RESOLUTION_TIME_ACTION>
  73.     <RESOLUTION_TIME_ACTION>
  74.         local Card = TriggerObject()
  75.         if Card ~= nil then
  76.             local Player = Card:GetController()
  77.             if Player ~= nil and ( Player:GetMultipleChoiceResult() == 0 or ( Player:IsAI() and Player:Library_Count() &gt;= 10 ) ) then
  78.                 Player:DrawCards(1)
  79.             end
  80.         end
  81.     </RESOLUTION_TIME_ACTION>
  82.   </TRIGGERED_ABILITY>
  83.   <ACTIVATED_ABILITY forced_skip="1">
  84.     <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  85.     <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  86.     <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  87.     <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  88.     <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  89.     <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{G}, {T}:あなたのマナ・プールに、望む色の組み合わせのマナX点を加える。Xはあなたがコントロールするクリーチャーの中の最大のパワーの値に等しい。]]></LOCALISED_TEXT>
  90.     <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  91.     <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  92.     <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  93.     <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[{G},{T}:加X点法术力到你的法术力池中,其颜色组合可任意选择,X为由你操控的生物中力量最大者的数值。]]></LOCALISED_TEXT>
  94.     <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[{G}, {T}: Add X mana in any combination of colors to your mana pool, where X is the greatest power among creatures you control.]]></LOCALISED_TEXT>
  95.     <COST mana_cost="{G}" type="Mana" />
  96.     <COST type="TapSelf" />
  97.     <PLAY_TIME_ACTION>
  98.         RSN_MarkManaAbilityStart()
  99.         local max_power = 0
  100.         local filter = ClearFilter()
  101.         filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
  102.         filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
  103.         local filter_count = filter:EvaluateObjects()
  104.         if filter_count &gt; 0 then
  105.             for i=0,filter_count-1 do
  106.                 local creature = filter:GetNthEvaluatedObject(i)
  107.                 if creature ~= nil then
  108.                     local power = creature:GetCurrentCharacteristics():Power_Get()
  109.                     if power &gt; max_power then
  110.                         max_power = power
  111.                     end
  112.                 end
  113.             end
  114.         end
  115.         EffectDC():Int_Set( 0, max_power )
  116.     </PLAY_TIME_ACTION>
  117.     <RESOLUTION_TIME_ACTION repeating="1">
  118.         local nRep = MTG():GetActionRepCount()
  119.         local nParity = nRep % 2
  120.         local nCount = EffectDC():Int_Get( 0 )
  121.         if (nRep &lt; (nCount * 2)) then
  122.             if (nParity == 0) then
  123.                 local oPlayer = EffectController()
  124.                 local oCard = EffectSource()
  125.                 if (oPlayer ~= nil) then
  126.                     oPlayer:BeginNewMultipleChoice()
  127.                         oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_W" )
  128.                         oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_U" )
  129.                         oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_B" )
  130.                         oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_R" )
  131.                         oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_G" )
  132.                     oPlayer:AskMultipleChoiceQuestion( "MODE_CHOOSE_ONE", oCard )
  133.                 end
  134.                 return true
  135.             else
  136.                 local nColour = EffectController():GetMultipleChoiceResult() + 1
  137.                 if (nColour == COLOUR_BLACK) then
  138.                     RSN_ProduceNoTrigger( "{B}", 1 )
  139.                 elseif (nColour == COLOUR_BLUE) then
  140.                     RSN_ProduceNoTrigger( "{U}", 1 )
  141.                 elseif (nColour == COLOUR_GREEN) then
  142.                     RSN_ProduceNoTrigger( "{G}", 1 )
  143.                 elseif (nColour == COLOUR_RED) then
  144.                     RSN_ProduceNoTrigger( "{R}", 1 )
  145.                 elseif (nColour == COLOUR_WHITE) then
  146.                     RSN_ProduceNoTrigger( "{W}", 1 )
  147.                 end
  148.                 return true
  149.             end
  150.         else
  151.             RSN_FireManaTrigger()
  152.             return false
  153.         end
  154.     </RESOLUTION_TIME_ACTION>
  155.     <RESOLUTION_TIME_ACTION>
  156.         RSN_EliminateExtraManaTokens()
  157.         S_DisplayManaPool(EffectController())
  158.         RSN_MarkManaAbilityEnd()
  159.     </RESOLUTION_TIME_ACTION>
  160.   <RESOLUTION_TIME_ACTION>
  161.      RSN_ObjectDC():Int_Inc(1)
  162.   </RESOLUTION_TIME_ACTION>
  163.   <AUTO_SKIP>
  164.      return RSN_ObjectDC():Get_Int(1) &gt;= 2
  165.   </AUTO_SKIP>
  166.     <AI_AVAILABILITY window_step="upkeep" type="window" />
  167.     <AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
  168.     <AI_AVAILABILITY window_step="begin_combat" window_turn="their_turn" type="window" />
  169.     <AI_AVAILABILITY window_step="declare_attackers" window_turn="their_turn" type="window" />
  170.     <AI_AVAILABILITY window_step="declare_blockers" type="window" />
  171.     <AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
  172.     <AI_AVAILABILITY window_step="end_of_turn" type="window" />
  173.     <AI_AVAILABILITY window_step="end_of_turn" window_turn="their_turn" type="window" />
  174.     <AI_AVAILABILITY type="in_response" response_source="1" response_target="1" />
  175.     <AI_AVAILABILITY type="in_response" response_source="1" />
  176.     <AI_AVAILABILITY type="in_response" response_target="1" />
  177.     </ACTIVATED_ABILITY>
  178.     <STATIC_ABILITY>
  179.         <CONTINUOUS_ACTION layer="0">
  180.             RSN_ClearCanProduceMana()
  181.             RSN_MarkCanProduceMana( "{B}{G}{R}{U}{W}" )
  182.         </CONTINUOUS_ACTION>
  183.     </STATIC_ABILITY>
  184.     <TRIGGERED_ABILITY forced_skip="1" replacement_effect="1">
  185.         <TRIGGER value="BEGINNING_OF_STEP" pre_trigger="1" />
  186.         <RESOLUTION_TIME_ACTION>
  187.             RSN_ClearProducedMana()
  188.         </RESOLUTION_TIME_ACTION>
  189.     </TRIGGERED_ABILITY>
  190.        <TRIGGERED_ABILITY>
  191.       <TRIGGER value="END_OF_STEP">
  192.          return MTG():GetStep() == STEP_END_OF_TURN
  193.       </TRIGGER>
  194.       <RESOLUTION_TIME_ACTION>
  195.          RSN_ObjectDC():Set_Int(1, 0)
  196.       </RESOLUTION_TIME_ACTION>
  197.    </TRIGGERED_ABILITY>
  198.     <TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_B" />
  199.     <TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_G" />
  200.     <TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_R" />
  201.     <TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_U" />
  202.     <TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_W" />
  203.   <SFX text="COMBAT_BLUNT_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
  204.   <SFX text="COMBAT_BLUNT_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
  205.     <AUTHOR><![CDATA[Splinterverse]]></AUTHOR>
  206.     <EDITORS><![CDATA[Splinterverse]]></EDITORS>
  207.     <DATE><![CDATA[16-09-16]]></DATE>
  208. </CARD_V2>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement