It is currently 20 Jul 2025, 17:03
   
Text Size

Formal Request Thread

Moderator: CCGHQ Admins

Re: Formal Request Thread

Postby killuminati1984 » 30 Oct 2013, 08:13

I would like to point out a problem with "Loam Lion" in the "Data_Core_972" wad. It does not trigger. Could someone help me out with this and fix it, im still a noob at coding and its the only card in my deck that doesnt trigger properly or in this case doesnt trigger at all. It doesnt seem to recognize basic lands, nor dual lands. I would really appreciate it if someone could fix it. Hope this is the right section.
killuminati1984
 
Posts: 11
Joined: 27 Aug 2013, 15:09
Has thanked: 3 times
Been thanked: 0 time

Re: Formal Request Thread

Postby thefiremind » 30 Oct 2013, 09:56

killuminati1984 wrote:I would like to point out a problem with "Loam Lion" in the "Data_Core_972" wad. It does not trigger.
The best thing to do would be to discover whose WAD it is, and then report in the right mod's topic. Anyway, this thread should (hopefully) be followed by everyone, so you'll probably get an answer sooner or later.

On a different note, I wanted to warn everyone that Commander 2013 is now on Gatherer. I coded a card that seemed very interesting to me and should be a fine addition for any Merfolk deck. It's untested, but it should work, since it's not very different from Voice of All.
True-Name Nemesis (untested) | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="TRUENAME_NEMESIS_376562" />
  <CARDNAME text="TRUENAME_NEMESIS" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[True-Name Nemesis]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Némésis de l’identité]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Némesis de nombre verdadero]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Nemesis des wahren Namens]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Nemesi del Vero Nome]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[真の名の宿敵]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[True-Name Nemesis]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[True-Name Nemesis]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[True-Name Nemesis]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="376562" />
  <ARTID value="376562" />
  <ARTIST name="Zack Stella" />
  <CASTING_COST cost="{1}{U}{U}" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Merfolk" />
  <SUB_TYPE metaname="Rogue" />
  <EXPANSION value="C13" />
  <RARITY metaname="R" />
  <POWER value="3" />
  <TOUGHNESS value="1" />
  <TRIGGERED_ABILITY linked_ability_group="1" replacement_query="1" active_zone="ZONE_TRANSITION">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[As True-Name Nemesis enters the battlefield, choose a player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au moment où la Némésis de l’identité arrive sur le champ de bataille, choisissez un joueur.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[En cuanto la Némesis de nombre verdadero entre al campo de batalla, elige un jugador.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Sowie die Nemesis des wahren Namens ins Spiel kommt, bestimme einen Spieler.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Mentre la Nemesi del Vero Nome entra nel campo di battaglia, scegli un giocatore.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[真の名の宿敵が戦場に出るに際し、プレイヤーを1人選ぶ。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[As True-Name Nemesis enters the battlefield, choose a player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[As True-Name Nemesis enters the battlefield, choose a player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[As True-Name Nemesis enters the battlefield, choose a player.]]></LOCALISED_TEXT>
    <TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
    <RESOLUTION_TIME_ACTION>
    local filter = ClearFilter()
    filter:SetFilterType(FILTER_TYPE_PLAYERS)
    EffectController():ChooseItem( "CARD_QUERY_CHOOSE_PLAYER", EffectDC():Make_Targets(0) )
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    LinkedDC():Set_PlayerPtr( 0, EffectDC():Get_Targets(0):Get_PlayerPtr(0) )
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <STATIC_ABILITY linked_ability_group="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[True-Name Nemesis has protection from the chosen player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[La Némésis de l’identité a la protection contre le joueur choisi.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[La Némesis de nombre verdadero tiene protección contra el jugador elegido.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Die Nemesis des wahren Namens hat Schutz vor dem bestimmten Spieler.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[La Nemesi del Vero Nome ha protezione dal giocatore scelto.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[真の名の宿敵はプロテクション(選ばれたプレイヤー)を持つ。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[True-Name Nemesis has protection from the chosen player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[True-Name Nemesis has protection from the chosen player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[True-Name Nemesis has protection from the chosen player.]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION layer="0">
    if EffectSource() ~= nil then
       local player = LinkedDC():Get_PlayerPtr(0)
       if player ~= nil then
          local filter = ClearFilter()
          filter:Add(FE_CONTROLLER, OP_IS, player)
          EffectSource():Protection()
       end
    end
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <HELP title="MORE_INFO_TITLE_PROTECTION" body="MORE_INFO_BODY_PROTECTION" 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="300" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
Attachments
TRUENAME_NEMESIS_376562.zip
Unprefixed, untested, illustration included
(107.27 KiB) Downloaded 274 times
< 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: Formal Request Thread

Postby drleg3nd » 30 Oct 2013, 21:42

thefiremind wrote:
killuminati1984 wrote:I would like to point out a problem with "Loam Lion" in the "Data_Core_972" wad. It does not trigger.
The best thing to do would be to discover whose WAD it is, and then report in the right mod's topic. Anyway, this thread should (hopefully) be followed by everyone, so you'll probably get an answer sooner or later.

On a different note, I wanted to warn everyone that Commander 2013 is now on Gatherer. I coded a card that seemed very interesting to me and should be a fine addition for any Merfolk deck. It's untested, but it should work, since it's not very different from Voice of All.
True-Name Nemesis (untested) | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="TRUENAME_NEMESIS_376562" />
  <CARDNAME text="TRUENAME_NEMESIS" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[True-Name Nemesis]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Némésis de l’identité]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Némesis de nombre verdadero]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Nemesis des wahren Namens]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Nemesi del Vero Nome]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[真の名の宿敵]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[True-Name Nemesis]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[True-Name Nemesis]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[True-Name Nemesis]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="376562" />
  <ARTID value="376562" />
  <ARTIST name="Zack Stella" />
  <CASTING_COST cost="{1}{U}{U}" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Merfolk" />
  <SUB_TYPE metaname="Rogue" />
  <EXPANSION value="C13" />
  <RARITY metaname="R" />
  <POWER value="3" />
  <TOUGHNESS value="1" />
  <TRIGGERED_ABILITY linked_ability_group="1" replacement_query="1" active_zone="ZONE_TRANSITION">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[As True-Name Nemesis enters the battlefield, choose a player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au moment où la Némésis de l’identité arrive sur le champ de bataille, choisissez un joueur.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[En cuanto la Némesis de nombre verdadero entre al campo de batalla, elige un jugador.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Sowie die Nemesis des wahren Namens ins Spiel kommt, bestimme einen Spieler.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Mentre la Nemesi del Vero Nome entra nel campo di battaglia, scegli un giocatore.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[真の名の宿敵が戦場に出るに際し、プレイヤーを1人選ぶ。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[As True-Name Nemesis enters the battlefield, choose a player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[As True-Name Nemesis enters the battlefield, choose a player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[As True-Name Nemesis enters the battlefield, choose a player.]]></LOCALISED_TEXT>
    <TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
    <RESOLUTION_TIME_ACTION>
    local filter = ClearFilter()
    filter:SetFilterType(FILTER_TYPE_PLAYERS)
    EffectController():ChooseItem( "CARD_QUERY_CHOOSE_PLAYER", EffectDC():Make_Targets(0) )
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    LinkedDC():Set_PlayerPtr( 0, EffectDC():Get_Targets(0):Get_PlayerPtr(0) )
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <STATIC_ABILITY linked_ability_group="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[True-Name Nemesis has protection from the chosen player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[La Némésis de l’identité a la protection contre le joueur choisi.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[La Némesis de nombre verdadero tiene protección contra el jugador elegido.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Die Nemesis des wahren Namens hat Schutz vor dem bestimmten Spieler.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[La Nemesi del Vero Nome ha protezione dal giocatore scelto.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[真の名の宿敵はプロテクション(選ばれたプレイヤー)を持つ。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[True-Name Nemesis has protection from the chosen player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[True-Name Nemesis has protection from the chosen player.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[True-Name Nemesis has protection from the chosen player.]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION layer="0">
    if EffectSource() ~= nil then
       local player = LinkedDC():Get_PlayerPtr(0)
       if player ~= nil then
          local filter = ClearFilter()
          filter:Add(FE_CONTROLLER, OP_IS, player)
          EffectSource():Protection()
       end
    end
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <HELP title="MORE_INFO_TITLE_PROTECTION" body="MORE_INFO_BODY_PROTECTION" 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="300" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
thx for the card TFM I was looking at that card and the doubling season one..
drleg3nd
 
Posts: 528
Joined: 14 May 2012, 20:05
Has thanked: 5 times
Been thanked: 30 times

Re: Formal Request Thread

Postby drleg3nd » 30 Oct 2013, 23:20

hey can someone chk out this card ?
Domestication | Open
Code: Select all
<STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Enchant creature]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Enchanter : créatureVous contrôlez la créature enchantée.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Encantar criatura.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Verzaubert eine KreaturDu kontrollierst die verzauberte Kreatur.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Incanta creatura]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[エンチャント(クリーチャー)あなたはエンチャントされているクリーチャーをコントロールする。あなたの終了ステップの開始時に、エンチャントされているクリーチャーのパワーが4以上である場合、家畜化を生け贄に捧げる。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[생물에게 부여당신이 부여된 생물을 조종한다.당신의 종료단 시작에, 부여된 생물의 공격력이 4 이상이라면, 길들이기를 희생한다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Зачаровать существоВы контролируете зачарованное существо.В начале вашего заключительного шага, если сила зачарованного существа равна 4 или больше, пожертвуйте Одомашнивание.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Encantar criaturaVocê controla a criatura encantada.]]></LOCALISED_TEXT>
    <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
    </TARGET_DEFINITION>
    <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if (target ~= nil and EffectSource() ~= nil) then
       EffectSource():Attach( target )
    end
    </RESOLUTION_TIME_ACTION>
    <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
  </STATIC_ABILITY>
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[You control enchanted creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre étape de fin, si la force de la créature enchantée est supérieure ou égale à 4, sacrifiez la Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Tú controlas la criatura encantada.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Falls zu Beginn deines Endsegments die Stärke der verzauberten Kreatur 4 oder höher ist, opfere die Domestizierung.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Controlli la creatura incantata.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[You control enchanted creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[You control enchanted creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[You control enchanted creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua etapa final, se o poder da criatura encantada for maior ou igual a 4, sacrifique Domesticação.]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION layer="2">
    local parent = EffectSource():GetParent()
    if parent ~= nil then
        parent:SetController(EffectController())
    end
    </CONTINUOUS_ACTION>
   </STATIC_ABILITY>
  <TRIGGERED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu paso final, si la fuerza de la criatura encantada es 4 o más, sacrifica la Domesticación.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio della tua sottofase finale, se la forza della creatura incantata è pari o superiore a 4, sacrifica Addomesticare.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller" to_zone="ZONE_ANY" from_zone="ZONE_ANY">
      return MTG():GetStep() == STEP_END_OF_TURN
    </TRIGGER>
    <INTERVENING_IF>
      local filter = ClearFilter()
      filter:Add( FE_CONTROLLER, OP_IS, EffectController())
      filter:Add(FE_POWER, OP_GREATER_THAN, 3)
      local total = filter:Count()
      if total &gt; 0 then
       return true
      else
       return false
      end
    </INTERVENING_IF>
    <RESOLUTION_TIME_ACTION>
    if EffectSource() ~= nil then
       EffectController():Sacrifice( EffectSource() )
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
</CARD_V2>
drleg3nd
 
Posts: 528
Joined: 14 May 2012, 20:05
Has thanked: 5 times
Been thanked: 30 times

Re: Formal Request Thread

Postby thefiremind » 30 Oct 2013, 23:29

drleg3nd wrote:hey can someone chk out this card ?
Your "intervening if" says "if you control a creature with power 4 or greater". What you need is:
Code: Select all
    <INTERVENING_IF>
    return EffectSourceLKI():GetParent():GetCurrentCharacteristics():Power_Get() &gt; 3
    </INTERVENING_IF>
< 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: Formal Request Thread

Postby RiiakShiNal » 30 Oct 2013, 23:37

drleg3nd wrote:hey can someone chk out this card ?
Domestication | Open
Code: Select all
<STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Enchant creature]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Enchanter : créatureVous contrôlez la créature enchantée.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Encantar criatura.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Verzaubert eine KreaturDu kontrollierst die verzauberte Kreatur.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Incanta creatura]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[エンチャント(クリーチャー)あなたはエンチャントされているクリーチャーをコントロールする。あなたの終了ステップの開始時に、エンチャントされているクリーチャーのパワーが4以上である場合、家畜化を生け贄に捧げる。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[생물에게 부여당신이 부여된 생물을 조종한다.당신의 종료단 시작에, 부여된 생물의 공격력이 4 이상이라면, 길들이기를 희생한다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Зачаровать существоВы контролируете зачарованное существо.В начале вашего заключительного шага, если сила зачарованного существа равна 4 или больше, пожертвуйте Одомашнивание.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Encantar criaturaVocê controla a criatura encantada.]]></LOCALISED_TEXT>
    <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
    </TARGET_DEFINITION>
    <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if (target ~= nil and EffectSource() ~= nil) then
       EffectSource():Attach( target )
    end
    </RESOLUTION_TIME_ACTION>
    <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
  </STATIC_ABILITY>
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[You control enchanted creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre étape de fin, si la force de la créature enchantée est supérieure ou égale à 4, sacrifiez la Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Tú controlas la criatura encantada.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Falls zu Beginn deines Endsegments die Stärke der verzauberten Kreatur 4 oder höher ist, opfere die Domestizierung.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Controlli la creatura incantata.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[You control enchanted creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[You control enchanted creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[You control enchanted creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua etapa final, se o poder da criatura encantada for maior ou igual a 4, sacrifique Domesticação.]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION layer="2">
    local parent = EffectSource():GetParent()
    if parent ~= nil then
        parent:SetController(EffectController())
    end
    </CONTINUOUS_ACTION>
   </STATIC_ABILITY>
  <TRIGGERED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu paso final, si la fuerza de la criatura encantada es 4 o más, sacrifica la Domesticación.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio della tua sottofase finale, se la forza della creatura incantata è pari o superiore a 4, sacrifica Addomesticare.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your end step, if enchanted creature’s power is 4 or greater, sacrifice Domestication.]]></LOCALISED_TEXT>
    <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller" to_zone="ZONE_ANY" from_zone="ZONE_ANY">
      return MTG():GetStep() == STEP_END_OF_TURN
    </TRIGGER>
    <INTERVENING_IF>
      local filter = ClearFilter()
      filter:Add( FE_CONTROLLER, OP_IS, EffectController())
      filter:Add(FE_POWER, OP_GREATER_THAN, 3)
      local total = filter:Count()
      if total &gt; 0 then
       return true
      else
       return false
      end
    </INTERVENING_IF>
    <RESOLUTION_TIME_ACTION>
    if EffectSource() ~= nil then
       EffectController():Sacrifice( EffectSource() )
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
</CARD_V2>
Here's what I'm seeing after a casual glance:
  • The enchant ability should be a SPELL_ABILITY instead of a STATIC_ABILITY and it is missing an attach_definition attribute.
  • Enchant ability is missing a TARGET block (you can't enchant something if you don't target it).
  • In the TRIGGERED_ABILITY you have to_zone and from_zone attributes even though they are pointless here.
  • The INTERVENING_IF should be looking at the enchanted creature's (parent's) power not if you control any creature with a power 4 or greater.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Formal Request Thread

Postby drleg3nd » 31 Oct 2013, 03:56

thx guys for the help
drleg3nd
 
Posts: 528
Joined: 14 May 2012, 20:05
Has thanked: 5 times
Been thanked: 30 times

Re: Formal Request Thread

Postby thefiremind » 31 Oct 2013, 09:59

drleg3nd wrote:and the doubling season one..
Here it is. I can't find a HQ picture of it, though.
Primal Vigor (untested) | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="PRIMAL_VIGOR_376457" />
  <CARDNAME text="PRIMAL_VIGOR" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Primal Vigor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Vigueur primordiale]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Vigor primitivo]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Urkraft des Lebens]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Vigore Primordiale]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[野生の活力]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Primal Vigor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Primal Vigor]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Primal Vigor]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="376457" />
  <ARTID value="376457" />
  <ARTIST name="Matt Stewart" />
  <CASTING_COST cost="{4}{G}" />
  <TYPE metaname="Enchantment" />
  <EXPANSION value="C13" />
  <RARITY metaname="R" />
  <TRIGGERED_ABILITY replacement_effect="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[If one or more tokens would be put onto the battlefield, twice that many of those tokens are put onto the battlefield instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Si au moins un jeton devait être mis sur le champ de bataille, mettez deux fois ce nombre de jetons sur le champ de bataille à la place.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Si fueran a ponerse una o más fichas en el campo de batalla, en vez de eso, se pone en el campo de batalla el doble de esas fichas.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Falls ein oder mehrere Spielsteine ins Spiel gebracht würden, werden stattdessen doppelt so viele dieser Spielsteine ins Spiel gebracht.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Se una o più pedine stanno per essere messe sul campo di battaglia, invece ne vengono messe il doppio.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[1個以上のトークンが戦場に出る場合、代わりにその2倍の数のトークンを戦場に出す。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[If one or more tokens would be put onto the battlefield, twice that many of those tokens are put onto the battlefield instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[If one or more tokens would be put onto the battlefield, twice that many of those tokens are put onto the battlefield instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[If one or more tokens would be put onto the battlefield, twice that many of those tokens are put onto the battlefield instead.]]></LOCALISED_TEXT>
    <TRIGGER value="PLAYER_PUT_TOKENS_INTO_PLAY" pre_trigger="1">
    return GetAmount() &gt; 0 and ( TriggerObject() == nil or TriggerObject():GetCardType():IsPermanent() )
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    SetAmount( GetAmount() * 2 )
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <TRIGGERED_ABILITY replacement_effect="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[If one or more +1/+1 counters would be placed on a creature, twice that many +1/+1 counters are placed on that creature instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Si au moins un marqueur +1/+1 devait être placé sur une créature, placez deux fois ce nombre de marqueurs +1/+1 sur cette créature à la place.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Si fueran a ponerse uno o más contadores +1/+1 sobre una criatura, en vez de eso, se pone el doble de esa cantidad de contadores +1/+1 sobre esa criatura.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Falls eine oder mehrere +1/+1-Marken auf eine Kreatur gelegt würden, werden stattdessen doppelt so viele +1/+1-Marken auf sie gelegt.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Se uno o più segnalini +1/+1 stanno per essere messi su una creatura, invece ne vengono messi il doppio.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[クリーチャーの上に+1/+1カウンターが1個以上置かれる場合、代わりにその2倍の数の+1/+1カウンターをそのクリーチャーの上に置く。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[If one or more +1/+1 counters would be placed on a creature, twice that many +1/+1 counters are placed on that creature instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[If one or more +1/+1 counters would be placed on a creature, twice that many +1/+1 counters are placed on that creature instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[If one or more +1/+1 counters would be placed on a creature, twice that many +1/+1 counters are placed on that creature instead.]]></LOCALISED_TEXT>
    <TRIGGER value="COUNTERS_CHANGED" pre_trigger="1">
    return GetAmount() &gt; 0 and CounterTypeIndex() == MTG():PlusOnePlusOneCounters() and TriggerObject():GetCardType():Test(CARD_TYPE_CREATURE)
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    SetAmount( GetAmount() * 2 )
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <AI_BASE_SCORE score="900" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
For those who are wondering why I have put that strange TriggerObject check on the first ability (I used the same one on Doubling Season as well), it's because I'd like to check if the token has a permanent type, so that I can avoid duplicating invisible tokens. But I don't know if that trigger brings TriggerObject information and I have been too lazy to check, so I added the "TriggerObject() == nil" alternative: if there's no TriggerObject in that trigger, that's a pity, but the card works anyway. :mrgreen:
< 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: Formal Request Thread

Postby NEMESiS » 31 Oct 2013, 17:29

Can I get Ruhan of the Fomori, not sure how to make attack player at random...
User avatar
NEMESiS
 
Posts: 460
Joined: 03 Jan 2013, 04:02
Location: Pools of Becoming
Has thanked: 70 times
Been thanked: 21 times

Re: Formal Request Thread

Postby thefiremind » 31 Oct 2013, 17:41

NEMESiS wrote:Can I get Ruhan of the Fomori, not sure how to make attack player at random...
The problem is similar to "creature A blocks creature B this turn if able": if the chosen opponent has a Form of the Dragon, for example, the restriction should be lifted, and Ruhan should be able to attack whoever you want or not attack at all... unless Ruhan gains flying somehow. What I mean is that Ruhan should take all the scenarios where he's not allowed to attack a player into account, and some of them may be impossible to check.
< 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: Formal Request Thread

Postby RiiakShiNal » 31 Oct 2013, 17:43

You can force a creature to attack if able, but I don't think you can force it to attack a particular player if able. The problem is similar to trying to make a creature block a particular creature in that if Ruhan of the Fomori is not able to attack that particular player (due to an effect) then it should be able to either not attack or attack a different player of the controller's choosing. Getting a random opponent at the beginning of your combat is easy, the rest not so much.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Formal Request Thread

Postby NEMESiS » 01 Nov 2013, 16:57

I would take an "attempt" at its restrictions of the card if any of you wants to offer your time. I don't think I can come close to coding the restrictions. :?
User avatar
NEMESiS
 
Posts: 460
Joined: 03 Jan 2013, 04:02
Location: Pools of Becoming
Has thanked: 70 times
Been thanked: 21 times

Re: Formal Request Thread

Postby thefiremind » 01 Nov 2013, 17:42

NEMESiS wrote:I would take an "attempt" at its restrictions of the card if any of you wants to offer your time. I don't think I can come close to coding the restrictions. :?
Start from this:
Ruhan of the Fomori (incomplete) | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="RUHAN_OF_THE_FOMORI_991236477" />
  <CARDNAME text="RUHAN_OF_THE_FOMORI" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Ruhan of the Fomori]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Ruhan des Fomori]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Ruhan de los Fomori]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Ruhan von den Fomori]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ruhan dei Fomori]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[フォモーリのルーハン]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Ruhan of the Fomori]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Ruhan of the Fomori]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Ruhan of the Fomori]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="991236477" />
  <ARTID value="991236477" />
  <ARTIST name="Raymond Swanland" />
  <CASTING_COST cost="{1}{R}{W}{U}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Unfettered by allegiance, driven by war.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Libre de toute allégeance, motivé par la guerre.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Libre de lealtades, impulsado por la guerra.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Der Krieg treibt ihn an, egal wohin.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Libero da qualsiasi fedeltà, spinto dalla guerra.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[忠義により自由となり、戦争により突き動かされる。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Unfettered by allegiance, driven by war.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Unfettered by allegiance, driven by war.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Unfettered by allegiance, driven by war.]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <SUPERTYPE metaname="Legendary" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Giant" />
  <SUB_TYPE metaname="Warrior" />
  <EXPANSION value="CMD" />
  <RARITY metaname="M" />
  <POWER value="7" />
  <TOUGHNESS value="7" />
  <STATIC_ABILITY linked_ability_group="1">
    <CONTINUOUS_ACTION layer="8">
    -- If Ruhan can't attack the chosen opponent, set state to 0 in this action.

    local source = EffectSource()
    if source ~= nil then
       local filter = ClearFilter()
       local opponent = LinkedDC():Get_PlayerPtr(0)
       local state = 1

       -- 1. No chosen opponent
       if opponent == nil then
          state = 0
       end

       -- 2. Opponent controls a Form of the Dragon and Ruhan can't fly
       filter:Clear()
       filter:Add(FE_CONTROLLER, OP_IS, opponent)
       filter:Add(FE_CARD_NAME, OP_IS, "FORM_OF_THE_DRAGON")
       if filter:CountStopAt(1) == 1 and source:GetCurrentCharacteristics():Bool_Get(CHARACTERISTIC_FLYING) == false then
          state = 0
       end

       LinkedDC():Set_Int(1, state)
    end
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <TRIGGERED_ABILITY linked_ability_group="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of combat on your turn, choose an opponent at random. Ruhan of the Fomori attacks that player this combat if able.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début du combat pendant votre tour, choisissez un adversaire au hasard. Ruhan des Fomori attaque ce joueur pendant ce combat si possible.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo del combate en tu turno, elige un oponente al azar. Ruhan de los Fomori ataca a ese jugador este combate si puede.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bestimme zu Beginn des Kampfes in deinem Zug einen Gegner zufällig. Ruhan von den Fomori greift diesen Spieler in diesem Kampf an, falls möglich.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del combattimento nel tuo turno, scegli un avversario a caso. Ruhan dei Fomori attacca quel giocatore in questo combattimento, se può farlo.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのターンの戦闘の開始時に、対戦相手1人を無作為に選ぶ。 フォモーリのルーハンは可能ならそのプレイヤーを攻撃する。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of combat on your turn, choose an opponent at random. Ruhan of the Fomori attacks that player this combat if able.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of combat on your turn, choose an opponent at random. Ruhan of the Fomori attacks that player this combat if able.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of combat on your turn, choose an opponent at random. Ruhan of the Fomori attacks that player this combat if able.]]></LOCALISED_TEXT>
    <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
    return MTG():GetStep() == STEP_BEGIN_COMBAT
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    local filter = ClearFilter()
    filter:SetFilterType(FILTER_TYPE_PLAYERS)
    filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam() )
    local count = filter:EvaluatePlayers()
    local index = MTG():RandomNumberBetween(0, count-1)
    local opponent = filter:GetNthEvaluatedPlayer(index)
    LinkedDC():Set_PlayerPtr(0, opponent)
    MTG():CreateDelayedTrigger(1, nil)
    </RESOLUTION_TIME_ACTION>
    <AUTO_SKIP no_effect_source="1" />
  </TRIGGERED_ABILITY>
  <TRIGGERED_ABILITY resource_id="1" linked_ability_group="1" replacement_effect="1">
    <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
    return MTG():GetStep() == STEP_END_OF_COMBAT
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    LinkedDC():Free_Compartment(0)
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <STATIC_ABILITY linked_ability_group="1">
    <CONTINUOUS_ACTION layer="8">
    if LinkedDC():Get_Int(1) == 1 then
       if EffectSource() ~= nil then
          EffectSource():GetCurrentCharacteristics():Bool_Set(CHARACTERISTIC_MUST_ATTACK, 1)
       end
    end
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <TRIGGERED_ABILITY linked_ability_group="1" replacement_effect="1">
    <TRIGGER value="CANT_ATTACK_PLAYER_TEST" simple_qualifier="self" pre_trigger="1">
    if LinkedDC():Get_Int(1) == 1 then
       return TriggerPlayer() ~= LinkedDC():Get_PlayerPtr(0)
    end
    return false
    </TRIGGER>
  </TRIGGERED_ABILITY>
  <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" />
  <AI_BASE_SCORE score="-150" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
Everytime you come up with a scenario where Ruhan isn't allowed to attack a player, add the conditions to the first ability as I did for Form of the Dragon. At least, it's a start. :)
< 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: Formal Request Thread

Postby DrakkenMT » 01 Nov 2013, 17:56

Been trying to code unsuccessfully Feed The Pack, so far I can get it to Sac the creature but it does not drop any Tokens:(
here is what I have so Far
Code: Select all
<COST_DEFINITION id="0">
      local filter = ClearFilter()
      filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
      filter:Add( FE_IS_TOKEN, false )
    </COST_DEFINITION>
   <RESOLUTION_TIME_ACTION>
      local target = EffectDC():Get_Targets(1):Get_CardPtr(0)
      if target ~= nil then
       EffectDC():Set_Int( 1, target:GetCurrentCharacteristics():Toughness_Get() )
      end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
      local numTokens = EffectDC():Get_Int( 1 )
      if numTokens ~= 0 then
       MTG():PutTokensOntoBattlefield( "TOKEN_WOLF_2_2_G_350765", numTokens, EffectController() )
      end
    </RESOLUTION_TIME_ACTION>
   <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ALLIED" />
Also was trying <AVAILABILITY> to force it to only be available durring the end step like the card is supposed to do but still seems to want to allow it to be activated at any time....
Any advice?
DrakkenMT
 
Posts: 14
Joined: 04 Oct 2013, 14:34
Has thanked: 2 times
Been thanked: 0 time

Re: Formal Request Thread

Postby thefiremind » 01 Nov 2013, 19:13

DrakkenMT wrote:Been trying to code unsuccessfully Feed The Pack, so far I can get it to Sac the creature but it does not drop any Tokens:(

Also was trying <AVAILABILITY> to force it to only be available durring the end step like the card is supposed to do but still seems to want to allow it to be activated at any time....
You are using register #1 twice. Aside from that, you should change approach totally... you are trying to code an activated ability, but Feed the Pack has a triggered ability. If you look at Goblin Razerunners, you can see an example of "At the beginning of your end step" trigger, then you can look at Shadowborn Demon and see how you can sacrifice a creature without using a cost. If you want to be fancy, you can use LKIShield_CardPtr so that the pointer to the creature you are about to sacrifice keeps its last known information, this way its toughness will still be accessible after the sacrifice. Saving the toughness before the sacrifice is OK as well, but learning alternative ways to do the same thing may be useful for some other cards. :wink:
Feed the Pack (untested) | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="FEED_THE_PACK_262857" />
  <CARDNAME text="FEED_THE_PACK" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Feed the Pack]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Nourrir la meute]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Alimentar a la manada]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Das Rudel füttern]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Nutrire il Branco]]></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[Alimentar a Alcateia]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="262857" />
  <ARTID value="262857" />
  <ARTIST name="Steve Prescott" />
  <CASTING_COST cost="{5}{G}" />
  <TYPE metaname="Enchantment" />
  <EXPANSION value="DKA" />
  <RARITY metaname="R" />
  <TRIGGERED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your end step, you may sacrifice a nontoken creature. If you do, put X 2/2 green Wolf creature tokens onto the battlefield, where X is the sacrificed creature’s toughness.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre étape de fin, vous pouvez sacrifier une créature non-jeton. Si vous faites ainsi, mettez X jetons de créature 2/2 verte Loup sur le champ de bataille, X étant l’endurance de la créature sacrifiée.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu paso final, puedes sacrificar una criatura que no sea ficha. Si lo haces, pon en el campo de batalla X fichas de criatura Lobo verde 2/2, donde X es la resistencia de la criatura sacrificada.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Endsegments kannst du eine Kreatur opfern, die kein Spielstein ist. Falls du dies tust, bringe X 2/2 grüne Wolf-Kreaturenspielsteine ins Spiel, wobei X die Widerstandskraft der geopferten Kreatur ist.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio della tua sottofase finale, puoi sacrificare una creatura non pedina. Se lo fai, metti sul campo di battaglia X pedine creatura Lupo 2/2 verdi, dove X è la costituzione della creatura sacrificata.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたの終了ステップの開始時に、あなたはトークンでないクリーチャーを1体生け贄に捧げてもよい。そうした場合、緑の2/2の狼・クリーチャー・トークンをX体戦場に出す。Xは、その生け贄に捧げられたクリーチャーのタフネスに等しい。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[당신의 종료단 시작에, 당신은 토큰이 아닌 생물 한 개를 희생할 수 있다. 그렇게 한다면, 2/2 녹색 늑대 토큰 X개를 전장에 놓는다. X는 희생된 생물의 방어력이다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[В начале вашего заключительного шага вы можете пожертвовать не являющееся фишкой существо. Если вы это делаете, положите на поле битвы X фишек существа 2/2 зеленый Волк, где X — выносливость пожертвованного существа.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua etapa final, você pode sacrificar uma criatura que não seja uma ficha. Se fizer isso, coloque no campo de batalha X fichas de criatura verdes 2/2 do tipo Lobo, sendo X igual à resistência da criatura sacrificada.]]></LOCALISED_TEXT>
    <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
    return MTG():GetStep() == STEP_END_OF_TURN
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    local filter = ClearFilter()
    filter:Add(FE_IS_TOKEN, false)
    filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
    filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
    EffectController():ChooseItem( "CARD_QUERY_CHOOSE_CREATURE_TO_SACRIFICE", EffectDC():Make_Targets(0), QUERY_FLAG_MAY )
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local creature = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
    if creature ~= nil then
       EffectDC():Get_Targets(0):LKIShield_CardPtr(0)
       EffectController():Sacrifice(creature)
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local creature = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
    if creature ~= nil then
       local toughness = creature:GetCurrentCharacteristics():Toughness_Get()
       MTG():PutTokensOntoBattlefield( "TOKEN_WOLF_2_2_G_350765", toughness, EffectController() )
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <TOKEN_REGISTRATION reservation="1" type="TOKEN_WOLF_2_2_G_350765" />
  <AI_BASE_SCORE score="750" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
< 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

PreviousNext

Return to 2014

Who is online

Users browsing this forum: No registered users and 7 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 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 7 guests

Login Form