Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014
Formal Request Thread
Moderator: CCGHQ Admins
Re: Formal Request Thread
by 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>
Re: Formal Request Thread
by j6m6w6 » 09 Aug 2013, 19:22
thanks! do i need to use the fireminds web generator for the rest of the code?
Re: Formal Request Thread
by East Bay » 09 Aug 2013, 19:57
Yeahj6m6w6 wrote:thanks! do i need to use the fireminds web generator for the rest of the code?
Re: Formal Request Thread
by Fero » 09 Aug 2013, 20:01
Another Request:
Glimpse the Unthinkable
This card is needed to have a good deck against decks. =P
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
by sumomole » 09 Aug 2013, 20:36
It's the same as Tome Scour that BloodReyvyn has coded for you, just need to change the mill number, maybe you can try.Fero wrote:Another Request:
Glimpse the Unthinkable
This card is needed to have a good deck against decks. =P
-

sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Formal Request Thread
by Xander9009 » 09 Aug 2013, 22:27
You should check the rest of this thread. Urza's lands have already been done (by me, so I'm certain).Foren wrote:I'll just bump my request if you don't mind. Seems like everyone forgot about it while trying to code more interesting cards.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!
PS. Have the Plague Myr now.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-

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
by BloodReyvyn » 10 Aug 2013, 01:04
heh, I guess if you haveFero wrote:Another Request:
Glimpse the Unthinkable
This card is needed to have a good deck against decks. =P
, 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
. "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."
-

BloodReyvyn - Posts: 421
- Joined: 19 May 2013, 13:29
- Has thanked: 53 times
- Been thanked: 40 times
Re: Formal Request Thread
by drleg3nd » 10 Aug 2013, 01:11
guess add me to list with similar deck ideas..just need some help with some cards ...
Re: Formal Request Thread
by 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."
-

BloodReyvyn - Posts: 421
- Joined: 19 May 2013, 13:29
- Has thanked: 53 times
- Been thanked: 40 times
Re: Formal Request Thread
by drleg3nd » 10 Aug 2013, 03:39
Few pages back..when I get to my desktop I'll repost
Re: Formal Request Thread
by 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
by 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.
Not all cards can be coded in this game, sad but true.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-

thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Formal Request Thread
by 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
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>
Re: Formal Request Thread
by 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.
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...
Currently busy with life...
-

thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Who is online
Users browsing this forum: No registered users and 10 guests