It is currently 10 Nov 2025, 15:10
   
Text Size

Formal Request Thread

Moderator: CCGHQ Admins

Re: Formal Request Thread

Postby j6m6w6 » 09 Aug 2013, 18:27

would anyone be able to code

Pulse Tracker
User avatar
j6m6w6
 
Posts: 86
Joined: 09 Apr 2013, 22:51
Has thanked: 3 times
Been thanked: 10 times

Re: Formal Request Thread

Postby East Bay » 09 Aug 2013, 19:10

j6m6w6 wrote:would anyone be able to code

Pulse Tracker
Code: Select all
<TRIGGERED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever Pulse Tracker attacks, each opponent loses 1 life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[À chaque fois que le Traqueur de pouls attaque, chaque adversaire perd 1 point de vie.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Siempre que el Rastreador de pulso ataque, cada oponente pierde 1 vida.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn der Pulssucher angreift, verliert jeder Gegner 1 Lebenspunkt.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta il Cacciatore di Battiti attacca, ogni avversario perde 1 punto vita.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[鼓動の追跡者が攻撃するたび、各対戦相手は1点のライフを失う。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever Pulse Tracker attacks, each opponent loses 1 life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Каждый раз когда Охотник за Пульсом атакует, каждый оппонент теряет 1 жизнь.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Toda vez que Rastreador de Pulso ataca, cada oponente perde 1 ponto de vida.]]></LOCALISED_TEXT>
    <TRIGGER value="ATTACKING" simple_qualifier="self" />
    <RESOLUTION_TIME_ACTION>
    local num_players = MTG():GetNumberOfPlayers()
    local myTeam = EffectController():GetTeam()
    for i=0,num_players-1 do
       local player = MTG():GetNthPlayer(i)
       if myTeam ~= player:GetTeam() then
          player:LoseLife(1)
       end
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
User avatar
East Bay
 
Posts: 85
Joined: 17 Mar 2013, 02:05
Has thanked: 33 times
Been thanked: 30 times

Re: Formal Request Thread

Postby j6m6w6 » 09 Aug 2013, 19:22

thanks! do i need to use the fireminds web generator for the rest of the code?
User avatar
j6m6w6
 
Posts: 86
Joined: 09 Apr 2013, 22:51
Has thanked: 3 times
Been thanked: 10 times

Re: Formal Request Thread

Postby East Bay » 09 Aug 2013, 19:57

j6m6w6 wrote:thanks! do i need to use the fireminds web generator for the rest of the code?
Yeah
User avatar
East Bay
 
Posts: 85
Joined: 17 Mar 2013, 02:05
Has thanked: 33 times
Been thanked: 30 times

Re: Formal Request Thread

Postby Fero » 09 Aug 2013, 20:01

Another Request:
Glimpse the Unthinkable
This card is needed to have a good deck against decks. =P
Fero
 
Posts: 15
Joined: 13 Jul 2013, 06:07
Has thanked: 0 time
Been thanked: 0 time

Re: Formal Request Thread

Postby sumomole » 09 Aug 2013, 20:36

Fero wrote:Another Request:
Glimpse the Unthinkable
This card is needed to have a good deck against decks. =P
It's the same as Tome Scour that BloodReyvyn has coded for you, just need to change the mill number, maybe you can try. :wink:
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 234 times

Re: Formal Request Thread

Postby Xander9009 » 09 Aug 2013, 22:27

Foren wrote:
Foren wrote:Hi! can I request the following cards
- Coretapper
- Plague Myr (i know BloodReyvyn coded it but I don't know how to work with raw coding without the actual XML file)
- Sundering Titan
- Everflowing Chalice
- Welding Jar
- Culling Dais
- Lux Cannon
- Dread Statuary
- Urza's Mine
- Urza's Tower
- Urza's Power-Plant
Cheers!
I'll just bump my request if you don't mind. Seems like everyone forgot about it while trying to code more interesting cards. :D
PS. Have the Plague Myr now.
You should check the rest of this thread. Urza's lands have already been done (by me, so I'm certain).
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby BloodReyvyn » 10 Aug 2013, 01:04

Fero wrote:Another Request:
Glimpse the Unthinkable
This card is needed to have a good deck against decks. =P
heh, I guess if you have {U} {B}, I find it ironic you started requesting those cards right as I started making a deck with a couple of them anyway for my new deck, except mine is {W} {U}. :lol:
"There's an experience worse than blindness - it's the certainty that your vision is perfect and the horror that there's no world around you to see."
User avatar
BloodReyvyn
 
Posts: 421
Joined: 19 May 2013, 13:29
Has thanked: 53 times
Been thanked: 40 times

Re: Formal Request Thread

Postby drleg3nd » 10 Aug 2013, 01:11

guess add me to list with similar deck ideas..just need some help with some cards ...
drleg3nd
 
Posts: 528
Joined: 14 May 2012, 20:05
Has thanked: 5 times
Been thanked: 30 times

Re: Formal Request Thread

Postby BloodReyvyn » 10 Aug 2013, 02:52

Anything in particular?
"There's an experience worse than blindness - it's the certainty that your vision is perfect and the horror that there's no world around you to see."
User avatar
BloodReyvyn
 
Posts: 421
Joined: 19 May 2013, 13:29
Has thanked: 53 times
Been thanked: 40 times

Re: Formal Request Thread

Postby drleg3nd » 10 Aug 2013, 03:39

Few pages back..when I get to my desktop I'll repost
drleg3nd
 
Posts: 528
Joined: 14 May 2012, 20:05
Has thanked: 5 times
Been thanked: 30 times

Re: Formal Request Thread

Postby natfernat » 11 Aug 2013, 10:09

Very good thank you for the cards, i need help with this work works almost well except that not allows you to lock in more than one creature in that turn when the card has said that unable to lock more than one creature to that letter, I'm sorry for my english ALPHA AUTHORITY
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="ALPHA_AUTHORITY_666366325" />
  <CARDNAME text="ALPHA_AUTHORITY" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Alpha Authority]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Autorité de l’alpha]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Autoridad del alfa]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Macht des Alphatiers]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Autorità Alfa]]></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[Autoridade de Alfa]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="666366325" />
  <ARTID value="666366325" />
  <ARTIST name="Dave Kendall" />
  <CASTING_COST cost="{1}{G}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Even the bitterest enemies of the Burning-Tree Clan respect the strength of Borborygmos’s rule.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Même les ennemis les plus résolus du clan Brûle-Arbre respectent la puissance du règne de Borborygmos.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Hasta los enemigos más acérrimos del clan Árbol Ardiente respetan la fuerza del gobierno de Borborygmos.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Selbst die erbittertsten Feinde des Brandbaum-Clans respektieren die Macht von Borborygmos’ Herrschaft.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Anche i nemici più implacabili del Clan Brucia-Albero rispettano l’autorità di Borborygmos.]]></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[Mesmo os inimigos mais ferrenhos do Clã da Árvore Flamejante respeitam a força do governo de Borborigmo.]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <TYPE metaname="Enchantment" />
  <SUB_TYPE metaname="Aura" />
  <EXPANSION value="GTC" />
  <RARITY metaname="U" />
  <SPELL_ABILITY attach_definition="0">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Enchant creature]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Enchanter : créature]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Encantar criatura.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Verzaubert eine Kreatur]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Incanta creatura]]></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[Encantar criatura]]></LOCALISED_TEXT>
    <TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_ENCHANT" definition="0" compartment="0" count="1" />
    <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_ALLIED_ONLY" />
  </SPELL_ABILITY>
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Enchanted creature has hexproof and can’t be blocked by more than one creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[La créature enchantée a la défense talismanique et ne peut pas être bloquée par plus d’une créature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[La criatura encantada tiene la habilidad de antimaleficio y no puede ser bloqueada por más de una criatura.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Die verzauberte Kreatur ist fluchsicher und kann nicht von mehr als einer Kreatur geblockt werden.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[La creatura incantata ha anti-malocchio e non può essere bloccata da più di una creatura.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Enchanted creature has hexproof and can’t be blocked by more than one creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[부여된 생물은 방호 능력을 가지며 두 개 이상의 생물로 방어할 수 없다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Зачарованное существо имеет Порчеустойчивость и не может быть заблокировано более чем одним существом.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Enchanted creature has hexproof and can’t be blocked by more than one creature.]]></LOCALISED_TEXT>
    <CONTINUOUS_ACTION layer="6">
    local parent = EffectSource():GetParent()
    if parent ~= nil then
       parent:GetCurrentCharacteristics():Bool_Set( CHARACTERISTIC_HEXPROOF, 1 )
    end
    </CONTINUOUS_ACTION>
    <CONTINUOUS_ACTION layer="8">
    MTG():GetCurrentCharacteristics():Bool_Set( DUEL_CHARACTERISTIC_MAX_ONE_BLOCKER, 1 )
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <AI_AVAILABILITY step="declare_blockers" />
  <AI_AVAILABILITY type="in_response_dangerous" />
  <HELP title="MORE_INFO_BADGE_TITLE_21" body="MORE_INFO_BADGE_BODY_21" zone="ZONE_ANY" />
  <AI_BASE_SCORE score="750" zone="ZONE_IN_PLAY" />
  <AI_BASE_SCORE score="150" zone="ZONE_HAND" />
</CARD_V2>
natfernat
 
Posts: 6
Joined: 30 Jan 2013, 10:22
Has thanked: 0 time
Been thanked: 0 time

Re: Formal Request Thread

Postby thefiremind » 11 Aug 2013, 11:06

I'm afraid you'll have to give up with Alpha Authority, there's no way you can restrict 1 creature to have a maximum of 1 blocker. DUEL_CHARACTERISTIC_MAX_ONE_BLOCKER restricts to a maximum of 1 blocker in total, which is not what you want.

Not all cards can be coded in this game, sad but true.
< 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 gorem2k » 11 Aug 2013, 12:54

Desperately needing help for Liliana of the Veil 's last ability.

I don't need anything fancy, just select some permanents to make one pile, that target player will choose to keep or not. then make him sacrifice the rest.

here's what I was hoping would work, but didn't

code | Open
Code: Select all
    <TARGET tag="CARD_QUERY_CHOOSE_PLAYER_TO_SEPARATE_PERMANENTS" definition="0" compartment="0" count="1" />
    <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    filter:SetFilterType( FILTER_TYPE_PLAYERS )
    </TARGET_DEFINITION>
    <RESOLUTION_TIME_ACTION>
    local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
    if target_player ~= nil then
       local filter = ClearFilter()
       filter:Add(FE_CONTROLLER, OP_IS, target_player )
       filter:Add(FE_IS_PERMANENT, true )
       local maxPermanents = filter:Count()
       EffectController():SetItemCount( maxPermanents-1 )
       for i = 0, (maxPermanents-1) do
          EffectController():SetItemPrompt( i, "CARD_QUERY_CHOOSE_PERMANENT" )
       end
       EffectController():ChooseItems( EffectDC():Make_Targets(1), QUERY_FLAG_UP_TO )
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local beseechDC = EffectDC():Get_Targets(1)
    if beseechDC ~= nil then
       local number = beseechDC:Count()
        MTG():ClearFilterMark()
       for i = 0, (number-1) do
          local card = beseechDC:Get_CardPtr(i)
          card:MarkForFilter()
          card:Tap() -- made this just to see if card is marked
       end
    end
    </RESOLUTION_TIME_ACTION>

    <RESOLUTION_TIME_ACTION>
    local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
    if target_player ~= nil then
        target_player:BeginNewMultipleChoice()
       target_player:AddMultipleChoiceAnswer( "CARD_QUERY_LILIANA_VEIL_KEEP_PILE" )
       target_player:AddMultipleChoiceAnswer( "CARD_QUERY_LILIANA_VEIL_SACRIFICE_PILE" )   
       target_player:AskMultipleChoiceQuestion( "CARD_QUERY_LILIANA_VEIL_QUESTION" )
    end
    </RESOLUTION_TIME_ACTION>

    <RESOLUTION_TIME_ACTION>
    local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
    if target_player ~= nil then
       local decision = target_player:GetMultipleChoiceResult()
        if decision == 0 then
          local filter = ClearFilter()
                filter:SetUnmarkedObjectsOnly()
                if FilteredCard() ~= nil then
                   target_player:Sacrifice( FilteredCard() ) --????
                end
        elseif decision == 1 then
          local filter = ClearFilter()
                filter:SetMarkedObjectsOnly()
                if FilteredCard() ~= nil then
                   target_player:Sacrifice( FilteredCard() )
                end
        end
    end
    </RESOLUTION_TIME_ACTION>
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Formal Request Thread

Postby thefiremind » 11 Aug 2013, 13:12

FilteredCard() has no meaning without a FILTER block. Anyway you forgot something: how should target player know which cards belong to the chosen pile? This is the main reason why I discourage trying to code effects that divide into piles: when you do that in paper Magic you can take your time and look at both piles at the same time, this is quite important if you want your choice to be well thought.
The only idea I had right now is to put all permanents into a data chest, then unselect those that weren't been selected (or vice versa) with QueryUnselect_CardPtr, then let target player see that chest with ChooseItemFromDC making a query that does nothing no matter what you choose, and finally ask if he wants to keep or sacrifice the selected pile.
Be aware that I don't know if the AI would be able to give the best answer.
< 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 19 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 19 guests

Login Form