It is currently 04 Aug 2025, 10:47
   
Text Size

Card Creation Request Thread

User-made mods in DLC (Downloadable Content) form.
Get MTG cards here for your DotP that aren't available anywhere else!

Moderator: CCGHQ Admins

Re: Card Creation Request Thread

Postby thefiremind » 12 Apr 2013, 08:41

Blue Ghost wrote:I'm not really clear on how to use mana tokens. I've looked at some of the codes for cards that use mana tokens, and they seem really complicated. How would one implement an ability like Forbidden Orchard's with mana tokens?
The code behind them may be complicated, but using them generally isn't: both my implementation and nabeshin's offer functions that "mask" the complications.
The real question is: are you willing to live with the drawbacks? The mana ability would need to be an activated ability. This means that, while all the other lands auto-tap, you'll need to activate this one manually (if you share your deck, this can confuse players, I have the proof of that :lol:). Being an activated ability instead of a mana ability means that it could be "blocked" by cards like Linvala, Keeper of Silence (well, we're talking about a land but you know what I mean) and could trigger cards like Burning-Tree Shaman.
If your answer is "yes", then make an activated ability that lets you choose a color, then it produces a mana token of the chosen color. Remember to include all the possible cases as TOKEN_REGISTRATIONs.

Atlas wrote:hi guys i would like to request a couple of cards
[...]
please please help iv tried making a couple myself but they have failed horribly i just dont have enough experience at this:(
Those are transform cards. I was the inventor of the code for transform cards in DotP2012, but for DotP2013 the most functional code has been invented by BlindWillow and I can't understand his code deeply enough to adapt it to other cards, so I can't help you with those.
< 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: 722 times

Re: Card Creation Request Thread

Postby tenshirockdu69 » 13 Apr 2013, 14:15

hey i wanted to play with "liliana's caress" in a deck ut the card don't do the right effect.
the opponent loose 2 life if i discard a card but the right effect is "Whenever an opponent discards a card, that player loses 2 life." so i took some code line of the "megrim" one and it still don't work. Can some one help me to make this one work in the good way ?

Code: Select all
<?xml version='1.0'?>
<CARD_V2>
   <FILENAME text="LILIANAS_CARESS_888205035" />
   <CARDNAME text="LILIANAS_CARESS" />
   <TITLE>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Liliana’s Caress]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Carezza di Liliana]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Lilianas Umarmung]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Caresse de Liliana]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Caricia de Liliana]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[リリアナの愛撫]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Liliana’s Caress]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Ласка Лилианы]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Carícia de Liliana]]></LOCALISED_TEXT>
   </TITLE>
   <MULTIVERSEID value="888205035" />
   <ARTID value="888205035" />
   <ARTIST name="Steve Argyle" />
   <CASTING_COST cost="{1}{B}" />
   <FLAVOURTEXT>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“This might hurt less if you don’t fight so hard. But I doubt it.”]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Potrebbe essere meno doloroso se la smetti di ribellarti. Ma ne dubito.”]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Es tut vielleicht nicht ganz so weh, wenn du dich nicht wehrst. Aber ich bezweifele das.”]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Cela vous ferait peut-être moins mal si vous vous débattiez moins. Mais j’en doute. »]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Esto podría doler menos si no lucharas tanto. Pero lo dudo.”]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「必死に抗わなければそんなに痛くはないかもよ。どうだかわからないけどね。」]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“This might hurt less if you don’t fight so hard. But I doubt it.”]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[«Может, будет не так больно, если вы прекратите так отчаянно отбиваться. Хотя я сомневаюсь».]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Talvez doa menos se você não resistir, mas duvido muito disso.”]]></LOCALISED_TEXT>
   </FLAVOURTEXT>
   <TYPE metaname="Enchantment" />
   <EXPANSION value="M10" />
   <RARITY metaname="U" />
   <TRIGGERED_ABILITY filter_zone="ZONE_IN_PLAY">
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever an opponent discards a card, that player loses 2 life.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta un avversario scarta una carta, quel giocatore perde 2 punti vita.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn ein Gegner eine Karte aus der Hand abwirft, verliert dieser Spieler 2 Lebenspunkte.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[À chaque fois qu’un adversaire se défausse d’une carte, ce joueur perd 2 points de vie.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Siempre que un oponente descarte una carta, ese jugador pierde 2 vidas.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[いずれかの対戦相手がカードを1枚捨てるたび、そのプレイヤーは2点のライフを失う。]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever an opponent discards a card, that player loses 2 life.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Каждый раз когда оппонент сбрасывает карту, он теряет 2 жизни.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Toda vez que um oponente descarta um card, aquele jogador perde 2 pontos de vida.]]></LOCALISED_TEXT>
      <TRIGGER value="DISCARD">
         return TriggerObject():GetPlayer():GetTeam() ~= Object():GetController():GetTeam()
      </TRIGGER>
      <RESOLUTION_TIME_ACTION>
         local oPlayer = TriggerObject():GetPlayer()
         if (oPlayer ~= nil) then
            oPlayer:DealDamage( 2, Object() )
         end
      </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>
</CARD_V2>
Last edited by tenshirockdu69 on 13 Apr 2013, 16:10, edited 1 time in total.
tenshirockdu69
 
Posts: 6
Joined: 16 Mar 2013, 08:24
Has thanked: 0 time
Been thanked: 0 time

Re: Card Creation Request Thread

Postby AriesKiki » 13 Apr 2013, 16:06

Hi mates, I'm needing help coding a proper version of Bloodline Keeper. I have a code from the Sanguine Feast mod deck, but it doesn't even transform and the bonus +2/+2 remains after this creature dies. I'm using things from Huntmaster of the Fells from BlindWillow's mod, but the transform code seems too complicated. Thanks!

Code: Select all
<?xml version='1.0'?>
<CARD_V2>
  <FILENAME text="BLOODLINE_KEEPER_227061" />
  <CARDNAME text="BLOODLINE_KEEPER" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Bloodline Keeper]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="227061" />
  <ARTID value="227061" />
  <ARTIST name="Jason Chan" />
  <CASTING_COST cost="{2}{B}{B}" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Vampire" order_de-DE="0" order_es-ES="0" order_fr-FR="0" order_it-IT="0" order_jp-JA="0" order_ko-KR="0" order_pt-BR="0" order_ru-RU="0" />
  <EXPANSION value="DPG" />
  <RARITY metaname="R" />
  <POWER value="3" />
  <TOUGHNESS value="3" />
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Flying]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION>
      local characteristics = Object():GetCurrentCharacteristics()
      characteristics:Characteristic_Set( CHARACTERISTIC_FLYING, 1 )
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <ACTIVATED_ABILITY auto_skip="1" filter_zone="ZONE_IN_PLAY">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
    <COST type="TapSelf" />
    <RESOLUTION_TIME_ACTION>
      MTG():PutTokensIntoPlay( "TOKEN_VAMPIRE_2_2_227061001", 1, EffectController() )
    </RESOLUTION_TIME_ACTION>
    <AI_AVAILABILITY step="end_of_turn" turn="their_turn" />
    <AI_AVAILABILITY step="declare_attackers" turn="their_turn" />
    <AI_AVAILABILITY type="in_response_dangerous" />
    <AI_AVAILABILITY step="declare_blockers" blocking_or_blocked="1" />
  </ACTIVATED_ABILITY>
  <ACTIVATED_ABILITY auto_skip="1" filter_zone="ZONE_IN_PLAY">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires. Becomes 5/5 and other vampires get +2/+2.]]></LOCALISED_TEXT>
    <AVAILABILITY>
      local chest = ObjectDC():Get_Chest(1)
      if chest == nil then
        local filter = Object():GetFilter()
        filter:Clear()
        filter:SetZone( ZONE_IN_PLAY )
        filter:AddSubType( CREATURE_TYPE_VAMPIRE )
        filter:SetController( EffectController() )
        filter:NotTargetted()
        return filter:CountStopAt( 5 ) == 5
      else       
        return false
      end
    </AVAILABILITY>
    <COST type="Mana" cost="{B}" />
    <CONTINUOUS_ACTION layer="7B">
       local characteristics = Object:GetCurrentCharacteristics()
       characteristics:Power_Set( 5 )
       characteristics:Toughness_Set( 5 )
    </CONTINUOUS_ACTION>
    <FILTER>
      return  FilteredCard() ~= nil and
              FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
              FilteredCard():GetSubType():Test( CREATURE_TYPE_VAMPIRE ) ~= 0 and
              FilteredCard():GetZone() == ZONE_IN_PLAY and 
              FilteredCard():GetPlayer() == Object():GetPlayer()
    </FILTER>
    <CONTINUOUS_ACTION layer="7C">
      if FilteredCard() ~= nil then
         local characteristics = FilteredCard():GetCurrentCharacteristics()
         if characteristics ~= nil then
            characteristics:Power_Add( 2 )
            characteristics:Toughness_Add( 2 )
         end
      end
    </CONTINUOUS_ACTION>
    <RESOLUTION_TIME_ACTION>
      local chest = ObjectDC():Make_Chest(1)
    </RESOLUTION_TIME_ACTION>
    <AI_AVAILABILITY step="end_of_turn" turn="their_turn" />
    <AI_AVAILABILITY step="declare_attackers" turn="their_turn" />
    <AI_AVAILABILITY type="in_response_dangerous" />
    <AI_AVAILABILITY step="declare_blockers" blocking_or_blocked="1" />
  </ACTIVATED_ABILITY>
  <AI_BASE_SCORE score="1000" zone="ZONE_IN_PLAY" />
  <SFX text="COMBAT_CLAW_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
  <SFX text="COMBAT_CLAW_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
User avatar
AriesKiki
 
Posts: 53
Joined: 05 Mar 2013, 17:46
Has thanked: 15 times
Been thanked: 3 times

Re: Card Creation Request Thread

Postby thefiremind » 13 Apr 2013, 16:17

I'll just repeat what I said 3 posts ago:
thefiremind wrote:I was the inventor of the code for transform cards in DotP2012, but for DotP2013 the most functional code has been invented by BlindWillow and I can't understand his code deeply enough to adapt it to other cards
and to be honest I really don't feel like going to mess with that code again. Maybe DotP2014 will make it easier to implement (or maybe it will become totally impossible :lol:).

tenshirockdu69 wrote:hey i wanted to play with "liliana's caress" in a deck ut the card don't do the right effect.
My mod contains Liliana's Caress and, as far as I know, my version works.
< 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: 722 times

Re: Card Creation Request Thread

Postby Scion of Darkness » 13 Apr 2013, 16:46

can someone help me with grapeshot? Thanks
User avatar
Scion of Darkness
 
Posts: 235
Joined: 27 Aug 2012, 13:14
Has thanked: 17 times
Been thanked: 23 times

Re: Card Creation Request Thread

Postby sumomole » 13 Apr 2013, 16:47

AriesKiki wrote:Hi mates, I'm needing help coding a proper version of Bloodline Keeper. I have a code from the Sanguine Feast mod deck, but it doesn't even transform and the bonus +2/+2 remains after this creature dies. I'm using things from Huntmaster of the Fells from BlindWillow's mod, but the transform code seems too complicated. Thanks!
It seems to work fine, of course I've never used it, I guess it's code by thefiremind.

Bloodline Keeper.zip
(4.36 KiB) Downloaded 273 times
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 234 times

Re: Card Creation Request Thread

Postby sumomole » 13 Apr 2013, 16:59

tenshirockdu69 wrote:hey i wanted to play with "liliana's caress" in a deck ut the card don't do the right effect.
the opponent loose 2 life if i discard a card but the right effect is "Whenever an opponent discards a card, that player loses 2 life." so i took some code line of the "megrim" one and it still don't work. Can some one help me to make this one work in the good way ?
I test your code and it seems to work fine.
Megrim use oPlayer:DealDamage( 2, Object() ), but Liliana's Caress should use oPlayer:LoseLife(2).
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 234 times

Re: Card Creation Request Thread

Postby sumomole » 13 Apr 2013, 17:01

Scion of Darkness wrote:can someone help me with grapeshot? Thanks
Grapeshot.zip
(111.4 KiB) Downloaded 287 times
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 234 times

Re: Card Creation Request Thread

Postby tenshirockdu69 » 13 Apr 2013, 17:47

thank you, i will check that in game
tenshirockdu69
 
Posts: 6
Joined: 16 Mar 2013, 08:24
Has thanked: 0 time
Been thanked: 0 time

Re: Card Creation Request Thread

Postby AriesKiki » 13 Apr 2013, 18:28

Thank you sumomole, i'll test it. Do you have some proper code for Bloodlord of Vaasgoth?, I have one but the vampires that I cast after don't gain bloodthirst...

Code: Select all
<?xml version='1.0'?>
<CARD_V2>
  <FILENAME text="BLOODLORD_OF_VAASGOTH_220306" />
  <CARDNAME text="BLOODLORD_OF_VAASGOTH" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Bloodlord of Vaasgoth]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="220306" />
  <ARTID value="220306" />
  <ARTIST name="Greg Staples" />
  <CASTING_COST cost="{3}{B}{B}" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Vampire" order_de-DE="0" order_es-ES="0" order_fr-FR="0" order_it-IT="0" order_jp-JA="0" order_ko-KR="0" order_pt-BR="0" order_ru-RU="0" />
  <SUB_TYPE metaname="Warrior" order_de-DE="1" order_es-ES="1" order_fr-FR="1" order_it-IT="1" order_jp-JA="1" order_ko-KR="1" order_pt-BR="1" order_ru-RU="1" />
  <EXPANSION value="DPG" />
  <RARITY metaname="M" />
  <POWER value="3" />
  <TOUGHNESS value="3" />
  <TRIGGERED_ABILITY internal="1" pre_trigger="1" filter_zone="ZONE_IN_PLAY" active_zone="ZONE_TRANSITION">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Bloodthirst 3]]></LOCALISED_TEXT>
    <TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_IN_PLAY" from_zone="ZONE_ANY" />
    <RESOLUTION_TIME_ACTION>
      local bloodthirst_condition = 0
      local num_players = MTG():GetNumberOfStartingPlayers()
      local controllingTeam = EffectController():GetTeam()
      for i=0,num_players-1 do
        local player = MTG():GetNthStartingPlayer(i)
        if player ~= nil and player:GetTeam() ~= controllingTeam then
          if player:PlayerDataChest():Get_Int( PLAYER_UTILITY_COMPARTMENT_ID_PLAYER_DAMAGE_TAKEN_THIS_TURN ) &gt; 0 then
           bloodthirst_condition = 1
         end
        end
      end
         
      if bloodthirst_condition == 1 then
          Object():AddCounters( MTG():PlusOnePlusOneCounters(), 3 )
      end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Flying]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION>
      local characteristics = Object():GetCurrentCharacteristics()
      characteristics:Characteristic_Set( CHARACTERISTIC_FLYING, 1 )
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <TRIGGERED_ABILITY internal="1" pre_trigger="1" filter_zone="ZONE_IN_PLAY" active_zone="ZONE_TRANSITION">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Whenever you cast a Vampire creature spell, it gains bloodthirst 3.]]></LOCALISED_TEXT>
    <TRIGGER value="SPELL_PLAYED" simple_qualifier="objectyoucontrol">
      return  TriggerObject():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
              TriggerObject():GetSubType():Test( CREATURE_TYPE_VAMPIRE ) ~= 0
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
      local bloodthirst_condition = 0
      local num_players = MTG():GetNumberOfStartingPlayers()
      local controllingTeam = EffectController():GetTeam()
      for i=0,num_players-1 do
        local player = MTG():GetNthStartingPlayer(i)
        if player ~= nil and player:GetTeam() ~= controllingTeam then
          if player:PlayerDataChest():Get_Int( PLAYER_UTILITY_COMPARTMENT_ID_PLAYER_DAMAGE_TAKEN_THIS_TURN ) &gt; 0 then
             bloodthirst_condition = 1
           end
        end
      end
         
      if bloodthirst_condition == 1 then
          TriggerObject():AddCounters( MTG():PlusOnePlusOneCounters(), 3 )
      end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <HELP title="MORE_INFO_BADGE_TITLE_10" body="MORE_INFO_BADGE_BODY_10" zone="ZONE_ANY" />
  <HELP title="MORE_INFO_TITLE_BLOODTHIRST" body="MORE_INFO_BODY_BLOODTHIRST" zone="ZONE_ANY" />
  <SFX text="COMBAT_BLADE_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
  <SFX text="COMBAT_BLADE_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
  <AI_BASE_SCORE score="1000" zone="ZONE_IN_PLAY" />
</CARD_V2>
User avatar
AriesKiki
 
Posts: 53
Joined: 05 Mar 2013, 17:46
Has thanked: 15 times
Been thanked: 3 times

Re: Card Creation Request Thread

Postby sumomole » 13 Apr 2013, 18:39

AriesKiki wrote:Thank you sumomole, i'll test it. Do you have some proper code for Bloodlord of Vaasgoth?, I have one but the vampires that I cast after don't gain bloodthirst...
I can't promise it has no bug, because it was made in June 2012, since then I have never used it. :mrgreen:

Bloodlord of Vaasgoth.zip
(108.13 KiB) Downloaded 268 times
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 234 times

Re: Card Creation Request Thread

Postby gorem2k » 14 Apr 2013, 06:03

I've just finished a couple of new cards this evening.

2 world enchantments: Gravity Sphere, Concordant Crossroads.

1 enchantment: Darkest Hour

1 aura: Instill Energy.

1 creature: Rofellos Llanowar Emissary. (based on Elvish Archdruid, so 10 forests maximum)

and finally, 1 equipment: Pariah's Shield.

They're all working (for now) but I can't find out how to restrict Instill Energy's ability for only one use during upkeep. If anyone has already made this card, I'd like to see how it's properly done.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby thefiremind » 14 Apr 2013, 07:47

gorem2k wrote:They're all working (for now) but I can't find out how to restrict Instill Energy's ability for only one use during upkeep. If anyone has already made this card, I'd like to see how it's properly done.
Instill Energy says "Activate this ability only during your turn and only once each turn", it doesn't say anything about upkeep. For those 2 conditions, you just need 2 tags on the activated ability:
Code: Select all
during_your_turn="1" per_turn_limit="1"
(RiiakShiNal said that per_turn_limit can give problems but it never happened to me so it must be a rare scenario.)

If we want to be really precise, Instill Energy can't be properly coded because there's nothing like "as though it had haste", you can only give haste. But there aren't cards that care about a creature having haste (by the way, I always wondered why), so the approximation is absolutely legitimate.
< 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: 722 times

Re: Card Creation Request Thread

Postby gorem2k » 14 Apr 2013, 10:26

thefiremind wrote:
gorem2k wrote:They're all working (for now) but I can't find out how to restrict Instill Energy's ability for only one use during upkeep. If anyone has already made this card, I'd like to see how it's properly done.
Instill Energy says "Activate this ability only during your turn and only once each turn", it doesn't say anything about upkeep. For those 2 conditions, you just need 2 tags on the activated ability:
Code: Select all
during_your_turn="1" per_turn_limit="1"
(RiiakShiNal said that per_turn_limit can give problems but it never happened to me so it must be a rare scenario.)

If we want to be really precise, Instill Energy can't be properly coded because there's nothing like "as though it had haste", you can only give haste. But there aren't cards that care about a creature having haste (by the way, I always wondered why), so the approximation is absolutely legitimate.
YES! It works.

I should move to the programming section tho... :roll:

and yeah, it's quite surprising how "haste" cards aren't targeted by anything (yet). there ought to be an artifact called "Heart Attack" - 'Creatures with haste gets -1/-1 wither counter on each turn.' or a curse, "Enchanted player lose 1 life for each creature with haste he/she controls".. #-o
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby sumomole » 14 Apr 2013, 11:19

thefiremind wrote:If we want to be really precise, Instill Energy can't be properly coded because there's nothing like "as though it had haste", you can only give haste. But there aren't cards that care about a creature having haste (by the way, I always wondered why), so the approximation is absolutely legitimate.
I think Instill Energy just make creature can attack as though it had haste.

There is another card Thousand-Year Elixir. Thousand-Year Elixir doesn't actually grant haste to creatures you control, nor does it let you attack with them as though they had haste.
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 234 times

PreviousNext

Return to New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)

Who is online

Users browsing this forum: No registered users and 2 guests

cron

Main Menu

User Menu

Our Partners


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 2 guests

Login Form