Ulamog, the Ceaseless Hunger
Posted: 31 Aug 2015, 01:42
Been trying to come up with a working code for this thing all day, but everything I've tried so far ended in failure. Could someone let me know if this code is at least half way right? There's really no other cards, that I could think of anyway, that have an ability such as this. I've already done 11 of the cards that have been spoiled for Battle for Zendikar, hope to have the rest of the spoiled cards done by Friday.
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Whenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.]]></LOCALISED_TEXT>
<TRIGGER value="ATTACKING" simple_qualifier="self" />
<RESOLUTION_TIME_ACTION>
if TriggerPlayer() ~= nil then
local secondaryPlayer = SecondaryPlayer()
local effectController = EffectController()
for i = 0,(20-1) do
local card = secondaryPlayer:Library_GetNth( i )
if card ~= nil then
card:Exile()
end
end
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>