Re: Chakan's House of Cards (Opening Again Soon!)
It's most of the way there. You need to use a choice, not a target tag, though. The target tag should be for the player. You have the definition for the target set to do players, but you also have it set to choose 3. The resolution time actions I pointed out are what you need for the choice of cards.
And if you code it such that every time you reference 3 for the number of cards, you replace that 3 with a variable, then as long as you can make sure that variable is set correctly, then it'll work. In this case, like I mentioned, just set the variable to 3, then if it was kicked, set it to 15.
And if you code it such that every time you reference 3 for the number of cards, you replace that 3 with a variable, then as long as you can make sure that variable is set correctly, then it'll work. In this case, like I mentioned, just set the variable to 3, then if it was kicked, set it to 15.
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="SADISTIC_SACRAMENT_195632" />
<CARDNAME text="SADISTIC_SACRAMENT" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Sadistic Sacrament]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Sacrement sadique]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Sacramento sádico]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Sadistisches Sakrament]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Sacramento Sadico]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[サディストの聖餐]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Sadistic Sacrament]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Садистское Причастие]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Sacramento Sadista]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="195632" />
<ARTID value="A195632" />
<ARTIST name="Dan Scott" />
<CASTING_COST cost="{B}{B}{B}" />
<TYPE metaname="Sorcery" />
<EXPANSION value="ZEN" />
<RARITY metaname="R" />
<UTILITY_ABILITY qualifier="Kicker">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Kicker {7}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Kick {7}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Estímulo {7}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bonus {7}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Potenziamento {7}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[キッカー {7}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Kicker {7}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Усилитель {7}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Reforçar {7}]]></LOCALISED_TEXT>
<COST mana_cost="{3}" type="Mana" />
<ABILITY_TEXT tag="KICKER_QUERY_SADISTIC_UNKICKED" secondary_tag="KICKER_QUERY_SADISTIC_KICKED" />
</UTILITY_ABILITY>
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Search target player’s library for up to three cards, exile them, then that player shuffles his or her library. If Sadistic Sacrament was kicked, instead search that player’s library for up to fifteen cards, exile them, then that player shuffles his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Cherchez dans la bibliothèque du joueur ciblé jusqu’à trois cartes, exilez-les, et ce joueur mélange ensuite sa bibliothèque. Si le Sacrement sadique a été kické, à la place cherchez dans la bibliothèque de ce joueur jusqu’à quinze cartes, exilez-les et ce joueur mélange ensuite sa bibliothèque.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Busca en la biblioteca del jugador objetivo hasta tres cartas, exílialas y luego ese jugador baraja su biblioteca. Si el Sacramento sádico fue estimulado, en vez de eso, busca en la biblioteca de ese jugador hasta quince cartas, exílialas y luego ese jugador baraja su biblioteca.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Durchsuche die Bibliothek eines Spielers deiner Wahl nach bis zu drei Karten und schicke sie ins Exil; dieser Spieler mischt dann seine Bibliothek. Falls die Bonuskosten des Sadistischen Sakraments bezahlt wurden, durchsuche stattdessen die Bibliothek eines Spielers deiner Wahl nach bis zu fünfzehn Karten und schicke sie ins Exil; dieser Spieler mischt dann seine Bibliothek.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Passa in rassegna il grimorio di un giocatore bersaglio per trovare fino a tre carte, esiliale, poi quel giocatore rimescola il suo grimorio. Se il Sacramento Sadico è stato potenziato, passa invece in rassegna il grimorio di quel giocatore per trovare fino a quindici carte, esiliale, poi quel giocatore rimescola il suo grimorio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[プレイヤー1人を対象とする。そのプレイヤーのライブラリーから最大3枚までのカードを探し、それらを追放し、その後そのプレイヤーは自分のライブラリーを切り直す。 サディストの聖餐がキッカーされている場合、代わりにそのプレイヤーのライブラリーから最大15枚までのカードを探し、それらを追放し、その後そのプレイヤーは自分のライブラリーを切り直す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Search target player’s library for up to three cards, exile them, then that player shuffles his or her library. If Sadistic Sacrament was kicked, instead search that player’s library for up to fifteen cards, exile them, then that player shuffles his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Найдите в библиотеке целевого игрока не более трех карт, изгоните их, затем тот игрок тасует свою библиотеку. Если Садистское Причастие получило Усилитель, вместо этого найдите в библиотеке того игрока не более пятнадцати карт, изгоните их, затем тот игрок тасует свою библиотеку.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Procure até três cards no grimório do jogador alvo, exile-os e depois aquele jogador embaralha seu próprio grimório. Se Sacramento Sadista foi reforçado, em vez disso, procure até quinze cards no grimório daquele jogador, exile-os e depois aquele jogador embaralha seu próprio grimório.]]></LOCALISED_TEXT>
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetFilterType( FILTER_TYPE_PLAYERS )
</TARGET_DEFINITION>
<TARGET tag="CARD_QUERY_CHOOSE_PLAYER_TO_VESTIGE_ROT" definition="0" compartment="0" count="1" /> --Only choose one target player
<RESOLUTION_TIME_ACTION>
local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target_player ~= nil then
local CardsToExile = 3 --Assume it wasn't kicked
if EffectSource():WasKicked() then
CardsToExile = 15 --Correct it if it was kicked
end
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
filter:SetZone(ZONE_LIBRARY, target_player)
target_player:SetItemCount(CardsToExile)
for i=0,CardsToExile-1 do --For either 3 or 15 cards, set item prompt
target_player:SetItemPrompt(i, "CARD_QUERY_CHOOSE_CARD_TO_EXILE")
end
target_player:ChooseItems( EffectDC():Make_Targets(1), QUERY_FLAG_UP_TO )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION> --If this action causes issues, just remove it
for i=0,14 do --You could use the CardsToExile variable like before, but if it was unkicked, then 3 through 14 will be nil and fail the next nil check anyway
local chosen_card = EffectDC():Get_Targets(1):Get_CardPtr(i)
if chosen_card ~= nil then
chosen_card:GuidedReveal( target:GetZone(), ZONE_EXILE )
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
for i=0,14 do
local chosen_card = EffectDC():Get_Targets(1):Get_CardPtr(i)
if chosen_card ~= nil then
chosen_card:Get_Targets(0):Get_CardPtr(i):Exile()
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:ShuffleLibrary()
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
</SPELL_ABILITY>
<AI_BASE_SCORE score="750" zone="ZONE_HAND" />
</CARD_V2>