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




Formal Request Thread
Moderator: CCGHQ Admins
Re: Formal Request Thread
by drleg3nd » 22 Oct 2013, 23:28
yep..its in my mod along with Dreadbore, so i'll confirm alsoZebraGum wrote:Has Hero's Downfall been made yet? Out of all the mods I have here none of that card yet, mabye it doesnt work right with the Planeswalkers?
Re: Formal Request Thread
by drleg3nd » 23 Oct 2013, 00:07
Hey TFM i'm looking at Mystic Speculation and i was a bit confused when i saw this
- Code: Select all
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution1(3)
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution2()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution3()
</RESOLUTION_TIME_ACTION>
- Code: Select all
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution1(5)
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution2()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution3()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution4()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution5()
</RESOLUTION_TIME_ACTION
Re: Formal Request Thread
by MC Brodie » 23 Oct 2013, 00:39
Where did you find thefiremind's scry functions? I must not have his latest downloaded. I'll take a guess since I think it's early morning there.
TFMs scry functions are coded over 3 resolution time blocks. In the first you choose what to put on the bottom. The 2nd it puts the chosen cards on the bottom and you choose what to put on top. In the last block it puts the remaining cards on top. Basically, he set up 3 functions to handle each of these resolution time action blocks (his cascade and discard functions are similar). So whenever you scry, you need all three. The only function that takes a parameter is the first function which is the value for how many cards to scry. So as you suspected, Scry 5 would look like this:
TFMs scry functions are coded over 3 resolution time blocks. In the first you choose what to put on the bottom. The 2nd it puts the chosen cards on the bottom and you choose what to put on top. In the last block it puts the remaining cards on top. Basically, he set up 3 functions to handle each of these resolution time action blocks (his cascade and discard functions are similar). So whenever you scry, you need all three. The only function that takes a parameter is the first function which is the value for how many cards to scry. So as you suspected, Scry 5 would look like this:
- Code: Select all
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution1(5)
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution2()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution3()
</RESOLUTION_TIME_ACTION>
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Formal Request Thread
by drleg3nd » 23 Oct 2013, 00:59
Thx for the clarification Brodie, yea i downloaded it this morning before i went to work...well off to replacing all my scry cards..MC Brodie wrote:Where did you find thefiremind's scry functions? I must not have his latest downloaded. I'll take a guess since I think it's early morning there.
TFMs scry functions are coded over 3 resolution time blocks. In the first you choose what to put on the bottom. The 2nd it puts the chosen cards on the bottom and you choose what to put on top. In the last block it puts the remaining cards on top. Basically, he set up 3 functions to handle each of these resolution time action blocks (his cascade and discard functions are similar). So whenever you scry, you need all three. The only function that takes a parameter is the first function which is the value for how many cards to scry. So as you suspected, Scry 5 would look like this:
- Code: Select all
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution1(5)
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution2()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Scry_Resolution3()
</RESOLUTION_TIME_ACTION>


btw..Awesome job on making Scry looking digestable now..so much smaller and clean looking

Re: Formal Request Thread
by drleg3nd » 23 Oct 2013, 02:35
can someone help me with this ?
- Sphinx of the Chimes | Open
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Discard two nonland cards with the same name: Draw four cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Défaussez-vous de deux cartes non-terrain ayant le même nom : Piochez quatre cartes.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Descartar dos cartas que no sean tierra con el mismo nombre: Roba cuatro cartas.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wirf zwei Karten mit gleichem Namen ab, die kein Land sind: Ziehe vier Karten.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Scarta due carte non terra con lo stesso nome: Pesca quattro carte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[同じ名前を持つ土地でないカードを2枚捨てる:カードを4枚引く。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[이름이 같고 대지가 아닌 카드 두 장을 버린다: 카드 네 장을 뽑는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Сбросьте две не являющиеся землями карты с одинаковым именем: возьмите четыре карты.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Descarte dois cards com o mesmo nome que não sejam terrenos: Compre quatro cards.]]></LOCALISED_TEXT>
</ACTIVATED_ABILITY>
Re: Formal Request Thread
by thefiremind » 23 Oct 2013, 09:07
I updated my DotP2013 version, and it seems to work perfectly. You don't need to choose both cards: you choose one, and it will automatically discard 2 with the same name as the one you chose.drleg3nd wrote:can someone help me with this ?
- Sphinx of the Chimes (tested) | Open
- Code: Select all
<?xml version='1.0'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="SPHINX_OF_THE_CHIMES_253594" />
<CARDNAME text="SPHINX_OF_THE_CHIMES" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Sphinx of the Chimes]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Sphinx des carillons]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Esfinge de las campanas]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Sphinx der Glocken]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Sfinge delle Campane]]></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[Esfinge do Carrilhão]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="253594" />
<ARTID value="253594" />
<ARTIST name="Greg Staples" />
<CASTING_COST cost="{4}{U}{U}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“I’ve dreamt of the future, Isperia. Danger is on the horizon. You must heed my warning.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« J’ai rêvé de l’avenir, Isperia. Le danger est à l’horizon. Tu dois écouter ma mise en garde. »]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“He soñado con el futuro, Isperia. Hay peligro en el horizonte. Debes escuchar mi advertencia.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Ich habe von der Zukunft geträumt, Isperia. Am Horizont lauert Gefahr. Du musst dir meine Warnung zu Herzen nehmen.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Ho visto il futuro, Isperia. Il pericolo si staglia all’orizzonte. Ricorda il mio avvertimento.”]]></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[“Sonhei com o futuro, Isperia. O perigo raia no horizonte. Você precisa dar ouvidos ao meu aviso.”]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Sphinx" />
<EXPANSION value="RTR" />
<RARITY metaname="R" />
<POWER value="5" />
<TOUGHNESS value="6" />
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Vol]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Vuela.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Fliegend]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Volare]]></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[Voar]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_FLYING" />
</STATIC_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Discard two nonland cards with the same name: Draw four cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Défaussez-vous de deux cartes non-terrain ayant le même nom : Piochez quatre cartes.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Descartar dos cartas que no sean tierra con el mismo nombre: Roba cuatro cartas.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wirf zwei Karten mit gleichem Namen ab, die kein Land sind: Ziehe vier Karten.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Scarta due carte non terra con lo stesso nome: Pesca quattro carte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[同じ名前を持つ土地でないカードを2枚捨てる:カードを4枚引く。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[이름이 같고 대지가 아닌 카드 두 장을 버린다: 카드 네 장을 뽑는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Сбросьте две не являющиеся землями карты с одинаковым именем: возьмите четыре карты.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Descarte dois cards com o mesmo nome que não sejam terrenos: Compre quatro cards.]]></LOCALISED_TEXT>
<COST type="generic">
<PREREQUISITE>
local filter = ClearFilter()
filter:SetZone( ZONE_HAND, EffectController() )
filter:Add(FE_TYPE, OP_NOT, CARD_TYPE_LAND)
local filter_count = filter:EvaluateObjects()
if filter_count > 1 then
for i=1,filter_count-1 do
for j=0,i-1 do
local card_i = filter:GetNthEvaluatedObject(i)
local card_j = filter:GetNthEvaluatedObject(j)
if card_i:GetCardName() == card_j:GetCardName() then
return true
end
end
end
end
return false
</PREREQUISITE>
<RESOLUTION_TIME_ACTION>
MTG():ClearFilterMark()
local filter = ClearFilter()
filter:SetZone( ZONE_HAND, EffectController() )
filter:Add(FE_TYPE, OP_NOT, CARD_TYPE_LAND)
local filter_count = filter:EvaluateObjects()
if filter_count > 1 then
for i=1,filter_count-1 do
for j=0,i-1 do
local card_i = filter:GetNthEvaluatedObject(i)
local card_j = filter:GetNthEvaluatedObject(j)
if card_i:GetCardName() == card_j:GetCardName() then
card_i:MarkForFilter()
card_j:MarkForFilter()
end
end
end
filter:SetMarkedObjectsOnly()
EffectController():ChooseItem( "CARD_QUERY_CHOOSE_CARD_TO_DISCARD", EffectDC():Make_Targets(0) )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local filter = ClearFilter()
filter:SetZone( ZONE_HAND, EffectController() )
filter:Add(FE_TYPE, OP_NOT, CARD_TYPE_LAND)
filter:Add(FE_CARD_NAME, OP_IS, target)
local filter_count = filter:EvaluateObjects()
if filter_count > 1 then
for i=1,0,-1 do
filter:GetNthEvaluatedObject(i):Discard()
end
end
end
</RESOLUTION_TIME_ACTION>
</COST>
<RESOLUTION_TIME_ACTION>
EffectController():DrawCards(4)
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY window_step="declare_blockers" type="window" />
<AI_AVAILABILITY type="in_response" response_source="1" />
<AI_AVAILABILITY window_step="end_of_turn" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
</ACTIVATED_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_10" body="MORE_INFO_BADGE_BODY_10" zone="ZONE_ANY" />
<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" />
<AI_BASE_SCORE score="300" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
- Attachments
-
SPHINX_OF_THE_CHIMES_253594.zip
- Unprefixed, tested, illustration included
- (101.77 KiB) Downloaded 263 times
< 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 drleg3nd » 26 Oct 2013, 15:33
hey guys, can someone chk this code and let me know if it looks good,thx
- Deathrite Shaman | Open
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{T}: Exile target land card from a graveyard. Add one mana of any color to your mana pool.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{T} : Exilez une carte de terrain ciblée d’un cimetière. Ajoutez un mana de la couleur de votre choix à votre réserve.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{T}: Exilia la carta de tierra objetivo de un cementerio. Agrega un maná de cualquier color a tu reserva de maná.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{T}: Schicke eine Land-Karte deiner Wahl aus einem Friedhof ins Exil. Erhöhe deinen Manavorrat um ein Mana einer beliebigen Farbe.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{T}: Esilia una carta terra bersaglio da un cimitero. Aggiungi un mana di un qualsiasi colore alla tua riserva di mana.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{T}:いずれかの墓地にある土地カード1枚を対象とし、それを追放する。あなたのマナ・プールに、好きな色1色のマナ1点を加える。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{T}: 무덤에 있는 대지 카드 한 장을 목표로 정한다. 그 카드를 추방한다. 당신의 마나풀에 원하는 색의 마나 한 개를 담는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{T}: изгоните целевую карту земли из кладбища. Добавьте одну ману любого цвета в ваше хранилище маны.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{T}: Exile o card de terreno alvo de um cemitério. Adicione um mana de qualquer cor à sua reserva de mana.]]></LOCALISED_TEXT>
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_LAND_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_GRAVEYARD )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Exile()
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY" />
<PLAY_TIME_ACTION>
RSN_MarkManaAbilityStart()
local oPlayer = EffectController()
local oCard = EffectSource()
if (oPlayer ~= nil) then
oPlayer:BeginNewMultipleChoice()
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_W" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_U" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_B" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_R" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_G" )
oPlayer:AskMultipleChoiceQuestion( "MODE_CHOOSE_ONE", oCard )
end
</PLAY_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local nColour = EffectController():GetMultipleChoiceResult() + 1
if (nColour == COLOUR_BLACK) then
RSN_Produce( "{B}", 1 )
elseif (nColour == COLOUR_BLUE) then
RSN_Produce( "{U}", 1 )
elseif (nColour == COLOUR_GREEN) then
RSN_Produce( "{G}", 1 )
elseif (nColour == COLOUR_RED) then
RSN_Produce( "{R}", 1 )
elseif (nColour == COLOUR_WHITE) then
RSN_Produce( "{W}", 1 )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
RSN_EliminateExtraManaTokens()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
G2K_DisplayManaPool(EffectController())
RSN_MarkManaAbilityEnd()
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY window_step="upkeep" type="window" />
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="begin_combat" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_attackers" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" />
<AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" window_turn="their_turn" type="window" />
<AI_AVAILABILITY type="in_response" response_source="1" response_target="1" />
<AI_AVAILABILITY type="in_response" response_source="1" />
<AI_AVAILABILITY type="in_response" response_target="1" />
</ACTIVATED_ABILITY>
<STATIC_ABILITY>
<CONTINUOUS_ACTION layer="0">
RSN_ClearCanProduceMana()
RSN_MarkCanProduceMana( "{W}{U}{B}{R}{G}" )
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_W" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_U" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_B" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_R" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_G" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{B}, {T}: Exile target instant or sorcery card from a graveyard. Each opponent loses 2 life.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{B}, {T} : Exilez une carte d’éphémère ou de rituel ciblée d’un cimetière. Chaque adversaire perd 2 points de vie.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{B}, {T}: Exilia la carta de instantáneo o de conjuro objetivo de un cementerio. Cada oponente pierde 2 vidas.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{B}, {T}: Schicke eine Sofortzauber- oder Hexereikarte deiner Wahl aus einem Friedhof ins Exil. Jeder Gegner verliert 2 Lebenspunkte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{B}, {T}: Esilia una carta istantaneo o stregoneria bersaglio da un cimitero. Ogni avversario perde 2 punti vita.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{B}, {T}:いずれかの墓地にあるインスタント・カード1枚かソーサリー・カード1枚を対象とし、それを追放する。各対戦相手はそれぞれ2点のライフを失う。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{B}, {T}: 무덤에 있는 순간마법 또는 집중마법 카드 한 장을 목표로 정한다. 그 카드를 추방한다. 각 상대는 생명 2점을 잃는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{B}, {T}: изгоните целевую карту мгновенного заклинания или волшебства из кладбища. Каждый оппонент теряет 2 жизни.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{B}, {T}: Exile o card de mágica instantânea ou feitiço alvo de um cemitério. Cada oponente perde 2 pontos de vida.]]></LOCALISED_TEXT>
<COST mana_cost="{B}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_INSTANT_OR_SORCERY_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_GRAVEYARD )
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_INSTANT )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_SORCERY)
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Exile()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
for i = 0, (MTG():GetNumberOfPlayers()-1) do
local player = MTG():GetNthPlayer(i)
if player:GetTeam() ~= EffectController():GetTeam() then
player:LoseLife( 2 )
end
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY" />
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{G}, {T}: Exile target creature card from a graveyard. You gain 2 life.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{G}, {T} : Exilez une carte de créature ciblée d’un cimetière. Vous gagnez 2 points de vie.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{G}, {T}: Exilia la carta de criatura objetivo de un cementerio. Ganas 2 vidas.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{G}, {T}: Schicke eine Kreaturenkarte deiner Wahl aus einem Friedhof ins Exil. Du erhältst 2 Lebenspunkte dazu.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{G}, {T}: Esilia una carta creatura bersaglio da un cimitero. Guadagni 2 punti vita.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{G}, {T}:いずれかの墓地にあるクリーチャー・カード1枚を対象とし、それを追放する。あなたは2点のライフを得る。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{G}, {T}: 무덤에 있는 생물 카드 한 장을 목표로 정한다. 그 카드를 추방한다. 당신은 생명 2점을 얻는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{G}, {T}: изгоните целевую карту существа из кладбища. Вы получаете 2 жизни.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{G}, {T}: Exile o card de criatura alvo de um cemitério. Você ganha 2 pontos de vida.]]></LOCALISED_TEXT>
<COST mana_cost="{G}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_GRAVEYARD )
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 then
target:Exile()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
EffectController():GainLife(2)
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
Re: Formal Request Thread
by thefiremind » 26 Oct 2013, 15:51
I think it's OK except for the fact that the first ability is not a mana ability, not even in real Magic, so I would use a RESOLUTION_TIME_ACTION instead of the PLAY_TIME_ACTION, and I would remove the MarkManaAbility lines (Burning-Tree Shaman has all the rights to punish you for using that abilitydrleg3nd wrote:hey guys, can someone chk this code and let me know if it looks good,thx

There's also another thing, but I'm not really sure about it. A spell or ability with no legal targets is countered by the game rules, and none of its effects should happen. When a spell with a target does more than one effect, I always check for the target not being nil for all its effects, but I don't know if it's mandatory. If it is, then the code inside all the actions will need to be surrounded by
- Code: Select all
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
...
end
< 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 drleg3nd » 26 Oct 2013, 21:13
ok I just tried Deathrite Shaman middle ability doesn't work.. didn't get to try other abilities but I had this script log..
- Errors | Open
- Code: Select all
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "Content\Functions\RSN_MANA_LEGACY.LOL"]:201: attempt to perform arithmetic on a nil value
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
[lua] [string "DEATHRITE_SHAMAN_812290529_TITLE (RESOLUTION_TIME_ACTION)~0x000..."]:10: 'end' expected (to close 'if' at line 3) near '<eof>'
- Deathrite Shaman | Open
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{T}: Exile target land card from a graveyard. Add one mana of any color to your mana pool.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{T} : Exilez une carte de terrain ciblée d’un cimetière. Ajoutez un mana de la couleur de votre choix à votre réserve.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{T}: Exilia la carta de tierra objetivo de un cementerio. Agrega un maná de cualquier color a tu reserva de maná.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{T}: Schicke eine Land-Karte deiner Wahl aus einem Friedhof ins Exil. Erhöhe deinen Manavorrat um ein Mana einer beliebigen Farbe.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{T}: Esilia una carta terra bersaglio da un cimitero. Aggiungi un mana di un qualsiasi colore alla tua riserva di mana.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{T}:いずれかの墓地にある土地カード1枚を対象とし、それを追放する。あなたのマナ・プールに、好きな色1色のマナ1点を加える。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{T}: 무덤에 있는 대지 카드 한 장을 목표로 정한다. 그 카드를 추방한다. 당신의 마나풀에 원하는 색의 마나 한 개를 담는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{T}: изгоните целевую карту земли из кладбища. Добавьте одну ману любого цвета в ваше хранилище маны.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{T}: Exile o card de terreno alvo de um cemitério. Adicione um mana de qualquer cor à sua reserva de mana.]]></LOCALISED_TEXT>
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_LAND_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_GRAVEYARD )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Exile()
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY" />
<RESOLUTION_TIME_ACTION>
local oPlayer = EffectController()
local oCard = EffectSource()
if (oPlayer ~= nil) then
oPlayer:BeginNewMultipleChoice()
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_W" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_U" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_B" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_R" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_G" )
oPlayer:AskMultipleChoiceQuestion( "MODE_CHOOSE_ONE", oCard )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local nColour = EffectController():GetMultipleChoiceResult() + 1
if (nColour == COLOUR_BLACK) then
RSN_Produce( "{B}", 1 )
elseif (nColour == COLOUR_BLUE) then
RSN_Produce( "{U}", 1 )
elseif (nColour == COLOUR_GREEN) then
RSN_Produce( "{G}", 1 )
elseif (nColour == COLOUR_RED) then
RSN_Produce( "{R}", 1 )
elseif (nColour == COLOUR_WHITE) then
RSN_Produce( "{W}", 1 )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
RSN_EliminateExtraManaTokens()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
G2K_DisplayManaPool(EffectController())
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY window_step="upkeep" type="window" />
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="begin_combat" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_attackers" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" />
<AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" window_turn="their_turn" type="window" />
<AI_AVAILABILITY type="in_response" response_source="1" response_target="1" />
<AI_AVAILABILITY type="in_response" response_source="1" />
<AI_AVAILABILITY type="in_response" response_target="1" />
</ACTIVATED_ABILITY>
<STATIC_ABILITY>
<CONTINUOUS_ACTION layer="0">
RSN_ClearCanProduceMana()
RSN_MarkCanProduceMana( "{W}{U}{B}{R}{G}" )
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_W" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_U" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_B" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_R" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_G" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{B}, {T}: Exile target instant or sorcery card from a graveyard. Each opponent loses 2 life.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{B}, {T} : Exilez une carte d’éphémère ou de rituel ciblée d’un cimetière. Chaque adversaire perd 2 points de vie.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{B}, {T}: Exilia la carta de instantáneo o de conjuro objetivo de un cementerio. Cada oponente pierde 2 vidas.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{B}, {T}: Schicke eine Sofortzauber- oder Hexereikarte deiner Wahl aus einem Friedhof ins Exil. Jeder Gegner verliert 2 Lebenspunkte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{B}, {T}: Esilia una carta istantaneo o stregoneria bersaglio da un cimitero. Ogni avversario perde 2 punti vita.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{B}, {T}:いずれかの墓地にあるインスタント・カード1枚かソーサリー・カード1枚を対象とし、それを追放する。各対戦相手はそれぞれ2点のライフを失う。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{B}, {T}: 무덤에 있는 순간마법 또는 집중마법 카드 한 장을 목표로 정한다. 그 카드를 추방한다. 각 상대는 생명 2점을 잃는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{B}, {T}: изгоните целевую карту мгновенного заклинания или волшебства из кладбища. Каждый оппонент теряет 2 жизни.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{B}, {T}: Exile o card de mágica instantânea ou feitiço alvo de um cemitério. Cada oponente perde 2 pontos de vida.]]></LOCALISED_TEXT>
<COST mana_cost="{B}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_INSTANT_OR_SORCERY_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_GRAVEYARD )
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_INSTANT )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_SORCERY)
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Exile()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
for i = 0, (MTG():GetNumberOfPlayers()-1) do
local player = MTG():GetNthPlayer(i)
if player:GetTeam() ~= EffectController():GetTeam() then
player:LoseLife( 2 )
end
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY" />
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{G}, {T}: Exile target creature card from a graveyard. You gain 2 life.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{G}, {T} : Exilez une carte de créature ciblée d’un cimetière. Vous gagnez 2 points de vie.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{G}, {T}: Exilia la carta de criatura objetivo de un cementerio. Ganas 2 vidas.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{G}, {T}: Schicke eine Kreaturenkarte deiner Wahl aus einem Friedhof ins Exil. Du erhältst 2 Lebenspunkte dazu.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{G}, {T}: Esilia una carta creatura bersaglio da un cimitero. Guadagni 2 punti vita.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{G}, {T}:いずれかの墓地にあるクリーチャー・カード1枚を対象とし、それを追放する。あなたは2点のライフを得る。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{G}, {T}: 무덤에 있는 생물 카드 한 장을 목표로 정한다. 그 카드를 추방한다. 당신은 생명 2점을 얻는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{G}, {T}: изгоните целевую карту существа из кладбища. Вы получаете 2 жизни.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{G}, {T}: Exile o card de criatura alvo de um cemitério. Você ganha 2 pontos de vida.]]></LOCALISED_TEXT>
<COST mana_cost="{G}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_GRAVEYARD )
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 then
target:Exile()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
EffectController():GainLife(2)
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
Re: Formal Request Thread
by sumomole » 27 Oct 2013, 00:54
1. you missed an "end" here, the number of "end" must be consistent with the number of "if" and "for".drleg3nd wrote:here is new code after suggestion...
- Code: Select all
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
for i = 0, (MTG():GetNumberOfPlayers()-1) do
local player = MTG():GetNthPlayer(i)
if player:GetTeam() ~= EffectController():GetTeam() then
player:LoseLife( 2 )
end
end
</RESOLUTION_TIME_ACTION>
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Formal Request Thread
by RiiakShiNal » 27 Oct 2013, 01:41
Actually, for drleg3nd to get the errors about RSN_MANA_LEGACY he would have to have that file. It is an old version of my Manual Mana Functions (whether it has been modified or not is unknown), but it does conflict with the current version of the Manual Mana Functions and will conflict with my mod.
Specifically, the error "attempt to perform arithmetic on a nil value" refers to a variable with nil (or 0 due to an issue in Lua with handling C/C++ function return values) being passed as the second parameter into RSN_Produce().
The Legacy core has old copies of functions (and cards) from several mods (Manual Mana Functions, ObjectDC Functions, sumomole's mods (including the S_DisplayManaPool() function), thefiremind's mods) which makes it incompatible with those mods and mods that depend on newer versions.
Specifically, the error "attempt to perform arithmetic on a nil value" refers to a variable with nil (or 0 due to an issue in Lua with handling C/C++ function return values) being passed as the second parameter into RSN_Produce().
The Legacy core has old copies of functions (and cards) from several mods (Manual Mana Functions, ObjectDC Functions, sumomole's mods (including the S_DisplayManaPool() function), thefiremind's mods) which makes it incompatible with those mods and mods that depend on newer versions.
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Formal Request Thread
by drleg3nd » 29 Oct 2013, 00:47
ok, i have a question and a request..first off, the request
im thinking it is like the artifact card from modern that can keep repeating spell once it have it exile, am i right ?
- Elite Arcanist | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Elite Arcanist enters the battlefield, you may exile an instant card from your hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand l’Arcaniste d’élite arrive sur le champ de bataille, vous pouvez exiler une carte d’éphémère de votre main.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando el Arcanista de élite entre al campo de batalla, puedes exiliar una carta de instantáneo de tu mano.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn der Elite-Arkanist ins Spiel kommt, kannst du eine Spontanzauberkarte aus deiner Hand ins Exil schicken.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando l’Arcanista d’Elite entra nel campo di battaglia, puoi esiliare una carta istantaneo dalla tua mano.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[精鋭秘儀術師が戦場に出たとき、あなたはあなたの手札にあるインスタント・カード1枚を追放してもよい。{X}, {T}:その追放されたカードをコピーする。あなたはそのコピーを、そのマナ・コストを支払うことなく唱えてもよい。Xはその追放されたカードの点数で見たマナ・コストに等しい。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[정예 비전술사가 전장에 들어올 때, 당신은 당신의 손에 있는 순간마법 카드 한 장을 추방할 수 있다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Когда Элитный Арканист выходит на поле битвы, вы можете изгнать карту мгновенного заклинания из вашей руки.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Quando Arcanista de Elite entra no campo de batalha, você pode exilar um card de mágica instantânea de sua mão.]]></LOCALISED_TEXT>
</TRIGGERED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{X}, {T}: Copy the exiled card. You may cast the copy without paying its mana cost. X is the converted mana cost of the exiled card.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{X}, {T} : Copiez la carte exilée. Vous pouvez lancer la copie sans payer son coût de mana. X est le coût converti de mana de la carte exilée.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{X}, {T}: Copia la carta exiliada. Puedes lanzar la copia sin pagar su coste de maná. X es el coste de maná convertido de la carta exiliada.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{X}, {T}: Kopiere die ins Exil geschickte Karte. Du kannst die Kopie wirken, ohne ihre Manakosten zu bezahlen. X sind die umgewandelten Manakosten der ins Exil geschickten Karte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{X}, {T}: Copia la carta esiliata. Puoi lanciare la copia senza pagare il suo costo di mana. X è il costo di mana convertito della carta esiliata.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{X}, {T}: Copy the exiled card. You may cast the copy without paying its mana cost. X is the converted mana cost of the exiled card.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{X}, {T}: 추방한 카드를 복사한다. 당신은 그 복사본을 마나 비용의 지불 없이 발동할 수 있다. X는 추방한 카드의 전환마나비용이다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{X}, {T}: скопируйте изгнанную карту. Вы можете разыграть ту копию без уплаты ее мана-стоимости. Х равен конвертированной мана-стоимости изгнанной карты.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{X}, {T}: Copie o card exilado. Você pode conjurar a cópia sem pagar seu custo de mana. X é o custo de mana convertido do card exilado.]]></LOCALISED_TEXT>
</ACTIVATED_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" />
</CARD_V2>
im thinking it is like the artifact card from modern that can keep repeating spell once it have it exile, am i right ?
Re: Formal Request Thread
by sumomole » 29 Oct 2013, 03:47
Please change the card id 370747 and chest id -9527 to your own.drleg3nd wrote:ok, i have a question and a request.
- Elite Arcanist | Open
- Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="1">
<FILENAME text="ELITE_ARCANIST_370747" />
<CARDNAME text="ELITE_ARCANIST" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Elite Arcanist]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Arcaniste d’élite]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Arcanista de élite]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Elite-Arkanist]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Arcanista d’Elite]]></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[Arcanista de Elite]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[精英奥术师]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[精英奧術師]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="370747" />
<ARTID value="370747" />
<ARTIST name="James Zapata" />
<CASTING_COST cost="{3}{U}" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Human" />
<SUB_TYPE metaname="Wizard" />
<EXPANSION value="DPI" />
<RARITY metaname="R" />
<POWER value="1" />
<TOUGHNESS value="1" />
<TRIGGERED_ABILITY linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Elite Arcanist enters the battlefield, you may exile an instant card from your hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand l’Arcaniste d’élite arrive sur le champ de bataille, vous pouvez exiler une carte d’éphémère de votre main.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando el Arcanista de élite entre al campo de batalla, puedes exiliar una carta de instantáneo de tu mano.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn der Elite-Arkanist ins Spiel kommt, kannst du eine Spontanzauberkarte aus deiner Hand ins Exil schicken.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando l’Arcanista d’Elite entra nel campo di battaglia, puoi esiliare una carta istantaneo dalla tua mano.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[精鋭秘儀術師が戦場に出たとき、あなたはあなたの手札にあるインスタント・カード1枚を追放してもよい。{X}, {T}:その追放されたカードをコピーする。あなたはそのコピーを、そのマナ・コストを支払うことなく唱えてもよい。Xはその追放されたカードの点数で見たマナ・コストに等しい。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[정예 비전술사가 전장에 들어올 때, 당신은 당신의 손에 있는 순간마법 카드 한 장을 추방할 수 있다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Когда Элитный Арканист выходит на поле битвы, вы можете изгнать карту мгновенного заклинания из вашей руки.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Quando Arcanista de Elite entra no campo de batalha, você pode exilar um card de mágica instantânea de sua mão.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[当精英奥术师进战场时,你可以从你手上放逐一张瞬间牌。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[當精英奧術師進戰場時,你可以從你手上放逐一張瞬間牌。]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
<RESOLUTION_TIME_ACTION>
local filter = ClearFilter()
filter:SetZone( ZONE_HAND, EffectController() )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_INSTANT )
EffectController():ChooseItem( "CARD_QUERY_CHOOSE_CARD_TO_EXILE", EffectDC():Make_Targets(0), QUERY_FLAG_MAY )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
if EffectSource() ~= nil then
local chest = MTG():DuelDataChest():Get_Chest( -9527 )
if chest == nil then
chest = MTG():DuelDataChest():Make_Chest( -9527 )
end
local count_so_far = chest:Get_Int(0)
local exileDC = chest:Make_Chest(1 + count_so_far)
exileDC:Set_CardPtr(0, EffectSource())
exileDC:Set_Int(1, target:GetConvertedManaCost())
chest:Set_Int(0, count_so_far + 1)
end
target:Exile()
LinkedDC():Set_CardPtr(0, target)
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target = LinkedDC():Get_CardPtr(0)
local source = EffectSource()
if target ~= nil and source ~= nil then
target:NailOnto(source)
end
</RESOLUTION_TIME_ACTION>
<AUTO_SKIP no_effect_source="1" />
</TRIGGERED_ABILITY>
<ACTIVATED_ABILITY linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{X}, {T}: Copy the exiled card. You may cast the copy without paying its mana cost. X is the converted mana cost of the exiled card.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{X}, {T} : Copiez la carte exilée. Vous pouvez lancer la copie sans payer son coût de mana. X est le coût converti de mana de la carte exilée.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{X}, {T}: Copia la carta exiliada. Puedes lanzar la copia sin pagar su coste de maná. X es el coste de maná convertido de la carta exiliada.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{X}, {T}: Kopiere die ins Exil geschickte Karte. Du kannst die Kopie wirken, ohne ihre Manakosten zu bezahlen. X sind die umgewandelten Manakosten der ins Exil geschickten Karte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{X}, {T}: Copia la carta esiliata. Puoi lanciare la copia senza pagare il suo costo di mana. X è il costo di mana convertito della carta esiliata.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{X}, {T}: Copy the exiled card. You may cast the copy without paying its mana cost. X is the converted mana cost of the exiled card.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{X}, {T}: 추방한 카드를 복사한다. 당신은 그 복사본을 마나 비용의 지불 없이 발동할 수 있다. X는 추방한 카드의 전환마나비용이다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{X}, {T}: скопируйте изгнанную карту. Вы можете разыграть ту копию без уплаты ее мана-стоимости. Х равен конвертированной мана-стоимости изгнанной карты.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{X}, {T}: Copie o card exilado. Você pode conjurar a cópia sem pagar seu custo de mana. X é o custo de mana convertido do card exilado.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[{X},{T}:复制所放逐的牌。你可以施放该复制品,且不需支付其法术力费用。X为所放逐的牌之总法术力费用。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[{X},{T}:複製所放逐的牌。你可以施放該複製品,且不需支付其魔法力費用。X為所放逐的牌之總魔法力費用。]]></LOCALISED_TEXT>
<COST type="Generic">
<PREREQUISITE>
local mana_string = "{0}"
local chest = MTG():DuelDataChest():Get_Chest( -9527 )
if chest ~= nil then
local total = chest:Get_Int(0)
for i = 1,(total) do
local exileDC = chest:Get_Chest(i)
if exileDC ~= nil then
local source = exileDC:Get_CardPtr(0)
if source == EffectSource() then
local cmc = exileDC:Get_Int(1)
for i=1,cmc do
mana_string = "{1}"..mana_string
end
return EffectController():CanPayManaCost(mana_string)
end
end
end
end
return false
</PREREQUISITE>
<RESOLUTION_TIME_ACTION>
local mana_string = "{0}"
local chest = MTG():DuelDataChest():Get_Chest( -9527 )
if chest ~= nil then
local total = chest:Get_Int(0)
for i = 1,(total) do
local exileDC = chest:Get_Chest(i)
if exileDC ~= nil then
local source = exileDC:Get_CardPtr(0)
if source == EffectSource() then
local cmc = exileDC:Get_Int(1)
for i=1,cmc do
mana_string = "{1}"..mana_string
end
EffectController():PayManaCost(mana_string)
end
end
end
end
</RESOLUTION_TIME_ACTION></COST>
<COST type="TapSelf" />
<RESOLUTION_TIME_ACTION>
local imprintedSpell = LinkedDC():Get_CardPtr(0)
if imprintedSpell ~= nil then
local copy = EffectController():CopySpell( imprintedSpell )
if EffectController():CanCastSpellForFree( copy ) then
EffectController():CastSpellForFree( copy )
end
end
</RESOLUTION_TIME_ACTION>
<AUTO_SKIP>
return LinkedDC():Get_CardPtr(0) == nil
</AUTO_SKIP>
</ACTIVATED_ABILITY>
<SFX text="COMBAT_PLASMA_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_PLASMA_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
<AI_BASE_SCORE score="900" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Formal Request Thread
by drleg3nd » 29 Oct 2013, 22:43
thx sumo..hey was this card ever made ?
- Medomai the Ageless | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever Medomai the Ageless deals combat damage to a player, take an extra turn after this one.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[À chaque fois que Médomaï le Sans-âge inflige des blessures de combat à un joueur, jouez un tour supplémentaire après celui-ci.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Siempre que Medomai, el inmortal haga daño de combate a un jugador, toma un turno adicional después de este.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn Medomai der Zeitlose einem Spieler Kampfschaden zufügt, erhältst du nach diesem Zug einen zusätzlichen Zug.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta Medomai l’Eterno infligge danno da combattimento a un giocatore, gioca un turno extra dopo questo.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[老いざるメドマイがプレイヤー1人に戦闘ダメージを与えるたび、このターンの後に追加の1ターンを行う。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[불사의 메도마이가 플레이어에게 전투피해를 입힐 때마다, 이 턴 후에 추가로 턴을 얻는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Каждый раз, когда Медомай Извечный наносит боевые повреждения игроку, сделайте дополнительный ход вслед за этим.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Toda vez que Medomai, o Atemporal, causar dano de combate a um jogador, jogue um turno extra depois deste.]]></LOCALISED_TEXT>
</TRIGGERED_ABILITY>
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Medomai the Ageless can’t attack during extra turns.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Médomaï le Sans-âge ne peut pas attaquer pendant les tours supplémentaires.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Medomai, el inmortal no puede atacar durante turnos adicionales.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Medomai der Zeitlose kann während zusätzlicher Züge nicht angreifen.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Medomai l’Eterno non può attaccare durante turni extra.]]></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[Medomai, o Atemporal, não pode atacar durante turnos extras.]]></LOCALISED_TEXT>
</STATIC_ABILITY>
Re: Formal Request Thread
by sumomole » 29 Oct 2013, 23:54
I think the answer is yes, we have Final Fortune, we can use its code to get the id of each extra turn and store in a duel data chest, then make Medomai the Ageless can't attack in those turns. But if we do that, we need to recode a total of about 28 "take an extra turn" cards, include a few official cards, it's too much trouble.drleg3nd wrote:thx sumo..hey was this card ever made ? i remember there was talk about it but i wasn't sure it was doable or not
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Who is online
Users browsing this forum: No registered users and 6 guests