It is currently 26 Apr 2024, 20:11
   
Text Size

I need help with these cards.

Moderator: CCGHQ Admins

I need help with these cards.

Postby alexandreonly » 11 Aug 2012, 18:04

The game started to crash after their inclusion, and only when i select the deck where they are in to play.

Code: Select all
<?xml version='1.0'?>
<CARD_V2>
  <FILENAME text="RAZORTOOTH_RATS_83418" />
  <CARDNAME text="RAZORTOOTH_RATS" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Razortooth Rats]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="83418" />
  <ARTID value="83418" />
  <ARTIST name="Carl Critchlow" />
  <CASTING_COST cost="{2}{B}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Men and rats both hunger: we for our playthings; they, for us.”
Crovax, ascendant evincar]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Rat" />
  <EXPANSION value="DPG" />
  <RARITY metaname="C" />
  <POWER value="2" />
  <TOUGHNESS value="1" />
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Fear]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Peur]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Inspirar temor.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Verursacht Furcht]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Paura]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[畏怖]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[공포]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Страх]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Amedrontar]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION>
         RSN_Fear( Object() )
      </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <HELP title="MORE_INFO_BADGE_TITLE_15" body="MORE_INFO_BADGE_BODY_15" zone="ZONE_ANY" />
</CARD_V2>
Code: Select all
<?xml version='1.0'?>
<CARD_V2>
  <FILENAME text="DIABOLIC_TUTOR_83056" />
  <CARDNAME text="DIABOLIC_TUTOR" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Diabolic Tutor]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="83056" />
  <ARTID value="83056" />
  <ARTIST name="Rick Farrell" />
  <CASTING_COST cost="{2}{B}{B}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[The best ideas often come from the worst minds.]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <TYPE metaname="Sorcery" />
  <EXPANSION value="DPG" />
  <RARITY metaname="U" />
  <SPELL_ABILITY filter_zone="ZONE_IN_PLAY">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Search your library for a card and put that card into your hand. Then shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Cherchez une carte dans votre bibliothèque et mettez cette carte dans votre main. Mélangez ensuite votre bibliothèque.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Busca una carta de tu biblioteca y pon esa carta en tu mano. Luego baraja tu biblioteca.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Durchsuche deine Bibliothek nach einer Karte und nimm diese Karte auf deine Hand. Mische danach deine Bibliothek.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Passa in rassegna il tuo grimorio per una carta e aggiungi quella carta alla tua mano. Poi rimescola il tuo grimorio.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのライブラリーからカードを1枚探し、そのカードをあなたの手札に加える。 その後あなたのライブラリーを切り直す。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[당신의 서고에서 원하는 카드 한 장을 찾아 당신의 손으로 가져간다. 그러고 나서 당신의 서고를 섞는다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Найдите в вашей библиотеке карту и положите ту карту в вашу руку. Затем перетасуйте вашу библиотеку.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Procure um card em seu grimório e coloque aquele card em sua mão. Depois, embaralhe seu grimório.]]></LOCALISED_TEXT>
    <RESOLUTION_TIME_ACTION>
    local filter = Object():GetFilter()
    local effectController = EffectController()
    effectController:MarkSearchedLibrary()
    filter:Clear()
    filter:NotTargetted()
    filter:SetZone( ZONE_LIBRARY )
    filter:SetPlayer( effectController )
    effectController:ChooseTarget( NO_VALIDATION, "CARD_QUERY_CHOOSE_CARD_TO_PUT_INTO_HAND", EffectDC():Make_Targets(0) )
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    if EffectDC() ~= nil then
       local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
       if  target ~= nil then
          target:PutInHand()
       end
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    EffectController():ShuffleLibrary()
    </RESOLUTION_TIME_ACTION>
  </SPELL_ABILITY>
</CARD_V2>
Code: Select all
<?xml version='1.0'?>
<CARD_V2>
  <FILENAME text="CRYPT_RATS_25637" />
  <CARDNAME text="CRYPT_RATS" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Crypt Rats]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="25637" />
  <ARTID value="25637" />
  <ARTIST name="Matt Cavotta" />
  <CASTING_COST cost="{2}{B}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Beware anything born among the dead.
—Tolarian saying]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Rat" />
  <EXPANSION value="DPG" />
  <RARITY metaname="U" />
  <POWER value="1" />
  <TOUGHNESS value="1" />
  <ACTIVATED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.]]></LOCALISED_TEXT>
    <FILTER>
    return (FilteredCard() ~= nil and
    FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
    (FilteredCard():GetZone() == ZONE_IN_PLAY)) or
    (FilteredPlayer() ~= nil)
    </FILTER>
   <PLAY_TIME_ACTION>
    local player = EffectController()
    local max_mana = GetTotalManaOfColour(player, COLOUR_BLACK)       
    player:BeginNewNumericalChoice()
    player:AddNumericalChoiceAnswer(max_mana)
    player:AskNumericalChoiceQuestion("NUM_LANDS")
    </PLAY_TIME_ACTION>
    <PLAY_TIME_ACTION>
    EffectDC():Set_Int( 1, Object():GetNumericalChoiceResult() )
    </PLAY_TIME_ACTION>
    <PLAY_TIME_ACTION>
    local damage = EffectDC():Get_Int(1)
    local mana_string = ManaString(COLOUR_BLACK, damage)
    local player = EffectController()
    if player:CanAfford(mana_string) then
       player:TapLand(mana_string)
    end
    </PLAY_TIME_ACTION>
   <RESOLUTION_TIME_ACTION>
   local damage = EffectDC():Get_Int(1)
    local source = EffectSource()
    if source == nil then
      source = Object()
    end
    if (FilteredPlayer() ~= nil) then   
       FilteredPlayer():DealDamage( damage , source) 
    elseif (FilteredCard() ~= nil) then   
       FilteredCard():DealDamage( damage , source ) 
    end
    </RESOLUTION_TIME_ACTION>
    <AI_AVAILABILITY type="in_response" />
    <AI_AVAILABILITY step="begin_combat" turn="their_turn" />
    <AI_AVAILABILITY step="main_1" turn="my_turn" />
    <AI_AVAILABILITY step="declare_attackers" turn="their_turn" />
    <AI_AVAILABILITY step="declare_blockers" />
    <AI_AVAILABILITY step="end_of_turn" turn="their_turn" />
    <SFX text="TARGET_FIREBALL_PLAY" />
  </ACTIVATED_ABILITY>
</CARD_V2>
Code: Select all
<?xml version='1.0'?>
<CARD_V2>
  <FILENAME text="RATCATCHER_107273" />
  <CARDNAME text="RATCATCHER" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Ratcatcher]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="107273" />
  <ARTID value="107273" />
  <ARTIST name="Dan Scott" />
  <CASTING_COST cost="{4}{B}{B}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[An ogre’s poisonous stench is like fine Kashkaval cheese to the noses lowest to the ground.]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Ogre" order_de-DE="0" order_es-ES="1" order_fr-FR="0" order_it-IT="1" order_jp-JA="0" order_ko-KR="0" order_pt-BR="0" order_ru-RU="0" />
  <SUB_TYPE metaname="Rogue" order_de-DE="1" order_es-ES="0" order_fr-FR="1" order_it-IT="0" order_jp-JA="1" order_ko-KR="1" order_pt-BR="1" order_ru-RU="1" />
  <EXPANSION value="DPG" />
  <RARITY metaname="R" />
  <POWER value="4" />
  <TOUGHNESS value="4" />
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Fear |(This creature can’t be blocked except by artifact creatures and/or black creatures.)|]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION>
      RSN_Fear( Object() )
   </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <TRIGGERED_ABILITY filter_zone="ZONE_IN_PLAY">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.]]></LOCALISED_TEXT>
    <TRIGGER value="BEGINNING_OF_STEP" simple_qualifier="controller">
    return ( EffectController():MyTurn() ~= 0 ) and ( MTG():GetStep() == STEP_UPKEEP )
    </TRIGGER>
   <TARGET_DEFINITION id="0">
         local filter = Object():GetFilter()
         filter:Clear()
         filter:SetZone( ZONE_LIBRARY )
         filter:AddCardType( CARD_TYPE_CREATURE )
         filter:AddSubType( CREATURE_TYPE_RAT )
         filter:SetPlayer( EffectController() )
         filter:SetHint( HINT_ALLIED_ONLY, EffectController() )
         filter:May()
      </TARGET_DEFINITION>
    <TARGET_DETERMINATION>
         return AtLeastOneTargetFromDefinition(0)
      </TARGET_DETERMINATION>
    <PLAY_TIME_ACTION target_choosing="1">
         EffectController():ChooseTarget( 0, "CARD_QUERY_CHOOSE_ENCHANTMENT_TO_PUT_ONTO_BATTLEFIELD", EffectDC():Make_Targets(0) )
      </PLAY_TIME_ACTION>
      <RESOLUTION_TIME_ACTION>
         local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
         if ( target ~= nil ) then
            target:GuidedReveal( ZONE_LIBRARY, ZONE_HAND )
            target:PutInHand()
            EffectController():ShuffleLibrary()
         end
      </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <HELP title="MORE_INFO_BADGE_TITLE_15" body="MORE_INFO_BADGE_BODY_15" zone="ZONE_ANY" />
  <SFX text="COMBAT_BLUNT_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_BLUNT_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
I can't find where is the error.
alexandreonly
 
Posts: 145
Joined: 04 Jul 2011, 17:27
Has thanked: 0 time
Been thanked: 8 times

Re: I need help with these cards.

Postby RiiakShiNal » 11 Aug 2012, 19:44

I am only really seeing a couple of things right off the bat: Crypt Rats is missing a cost for the activated ability and is missing the proper filter_zone="ZONE_IN_PLAY_AND_PLAYERS".

I'll try the cards locally to see if there are any problems that I haven't seen just looking through them.

By the way, how are you liking my functions? Do they make coding the cards any easier? Are there any new functions you think would be useful?
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: I need help with these cards.

Postby alexandreonly » 11 Aug 2012, 19:57

RiiakShiNal wrote:I am only really seeing a couple of things right off the bat: Crypt Rats is missing a cost for the activated ability and is missing the proper filter_zone="ZONE_IN_PLAY_AND_PLAYERS".

I'll try the cards locally to see if there are any problems that I haven't seen just looking through them.

By the way, how are you liking my functions? Do they make coding the cards any easier? Are there any new functions you think would be useful?
The crash was solved, and was not being caused by cards. I tested all of them, and the only card with problem now is Crypt Rats, also, Ratcatcher has a little problem, because i didn't added a option to not activate the ability, i just have the option to not choose a card.
And your functions are great. There's a way to implement snow mana, to make cards like Rimebound Dead, as a example, that has a ability that require snow mana?
alexandreonly
 
Posts: 145
Joined: 04 Jul 2011, 17:27
Has thanked: 0 time
Been thanked: 8 times

Re: I need help with these cards.

Postby RiiakShiNal » 11 Aug 2012, 20:12

alexandreonly wrote:The crash was solved, and was not being caused by cards. I tested all of them, and the only card with problem now is Crypt Rats, also, Ratcatcher has a little problem, because i didn't added a option to not activate the ability, i just have the option to not choose a card.
Well, I'm glad to hear you solved your problem. I had just finished testing Razortooth Rats and of course found no problem with it (I was going to post an update here then go back to test the next one). So out of curiosity what did the problem turn out to be (in case someone else runs across the same problem)?
alexandreonly wrote:And your functions are great.
Thanks, I'm glad people are getting some use out of them.
alexandreonly wrote:There's a way to implement snow mana, to make cards like Rimebound Dead, as a example, that has a ability that require snow mana?
I don't know, I'll do some poking around and get back to you.
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: I need help with these cards.

Postby thefiremind » 11 Aug 2012, 20:58

Forget snow mana, I tried it and it's not fully implemented: trying to pay snow mana for an ability makes it activate for free.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: I need help with these cards.

Postby RiiakShiNal » 11 Aug 2012, 22:05

As for snow mana, I can't even find the symbol for it (in the game).
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: I need help with these cards.

Postby alexandreonly » 11 Aug 2012, 23:24

Crypt Rats is fixed now, but Ratcatcher still always activate his ability at the beggining of my upkeep, the May() just let me finish without choosing a card, but i want to make that ability optional, or else i will leave this way, like lots of cards in the standard game (yes, some of them don't let you choose between activate or not even if the card text say).
alexandreonly
 
Posts: 145
Joined: 04 Jul 2011, 17:27
Has thanked: 0 time
Been thanked: 8 times

Re: I need help with these cards.

Postby thefiremind » 11 Aug 2012, 23:33

alexandreonly wrote:Crypt Rats is fixed now, but Ratcatcher still always activate his ability at the beggining of my upkeep, the May() just let me finish without choosing a card, but i want to make that ability optional, or else i will leave this way, like lots of cards in the standard game (yes, some of them don't let you choose between activate or not even if the card text say).
That's your choice... if you want to do the other way, you'll have to add a query, you can take example from Garruk's Packleader. The annoying thing is that you have to invent a new question for the query and define its localised text in the TEXT_PERMANENT directory.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 36 guests


Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 36 guests

Login Form