I don't know if this has been done yet and I'm sorry if it has and I'm just posting spam, but
I've been trying to make a add-on for goblin ganglands, just adding a few cards here and there.
The cards that I wanted to add were:
Goblin LackeyEmbermage goblin,
GelectrodeGoblin MatronHematite TalismanLavaclaw reaches
Seige gang commander
Shrine of Burning rage
Goblin RecruiterGoblin KingI have Seige gang commander, and embermage, matron, and Lackey all working fine.
I think the
Gelectrode works, I have not tested it yet.
The card that I have the most problems with is
Goblin Recruiter, I've tried and tried but I feel like I'm going in circles.
I was thinking of making it ask you HOW Many cards, then choosing cards.
I had it at 20, with the ability to finish early, then I changed it.. so many times.
- Code: Select all
<TRIGGERED_ABILITY filter_zone="ZONE_IN_PLAY">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[When Goblin Recruiter enters the battlefield, search your library for any number of Goblin cards and reveal those cards. Shuffle your library, then put them on top of it in any order.]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_IN_PLAY" />
<RESOLUTION_TIME_ACTION>
local filter = Object():GetFilter()
EffectController():MarkSearchedLibrary()
filter:Clear()
filter:NotTargetted()
filter:AddCardSubType( Object(): CARD_TYPE_GOBLIN )
filter:May()
filter:SetPlayer( EffectController() )
filter:SetZone( ZONE_LIBRARY )
filter:SetPortion( 20 )
player:SetTargetCount( 20 )
player:SetTargetPrompt( 0, "CARD_QUERY_CHOOSE_FIRST_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 1, "CARD_QUERY_CHOOSE_SECOND_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 2, "CARD_QUERY_CHOOSE_THIRD_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 3, "CARD_QUERY_CHOOSE_FOURTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 4, "CARD_QUERY_CHOOSE_FIFTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 5, "CARD_QUERY_CHOOSE_SIXTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 6, "CARD_QUERY_CHOOSE_SEVENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 7, "CARD_QUERY_CHOOSE_EIGTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 8, "CARD_QUERY_CHOOSE_NINTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 9, "CARD_QUERY_CHOOSE_TENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 10, "CARD_QUERY_CHOOSE_ELEVENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 11, "CARD_QUERY_CHOOSE_TWELTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 12, "CARD_QUERY_CHOOSE_THIRTEENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 13, "CARD_QUERY_CHOOSE_FOURTEENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 14, "CARD_QUERY_CHOOSE_FIFTEENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 15, "CARD_QUERY_CHOOSE_SIXTEENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 16, "CARD_QUERY_CHOOSE_SEVENTEENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 17, "CARD_QUERY_CHOOSE_EIGHTEENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 18, "CARD_QUERY_CHOOSE_NINETEENTH_CARD_TO_PUT_ON_TOP" )
player:SetTargetPrompt( 19, "CARD_QUERY_CHOOSE_TWENTIETH_CARD_TO_PUT_ON_TOP" )
player:ChooseTargetsWithFlags( NO_VALIDATION, EffectDC():Make_Targets(0), 0 ), QUERY_FLAG_CAN_BE_FINISHED_EARLY + QUERY_FLAG_CAN_BE_FINISHED_EARLY_FOR_AI_AS_WELL)
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target_array = {}
for i=0,19 do
target_array[i] = EffectDC():Get_Targets(0):Get_NthCardPtr(i)
end
for i=0,19 do
if target_array[i] ~= nil then
target_array[i]:PutInLibrary(0)
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
EffectController():ShuffleLibrary()
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY type="in_response" />
<AI_AVAILABILITY step="end_of_turn" turn="their_turn" />
<AI_AVAILABILITY step="main_1" turn="my_turn" />
<AI_AVAILABILITY step="main_2" turn="my_turn" />
</TRIGGERED_ABILITY>
Goblin King seems to work, however MOUNTAINWALK seems to be bugged for it.
- Code: Select all
<FILTER>
return (FilteredCard() ~= nil and
FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
FilteredCard() ~= Object() and
FilteredCard():GetSubType():Test( CREATURE_TYPE_GOBLIN ) ~= 0 and
FilteredCard():GetZone() == (ZONE_IN_PLAY) and
FilteredCard():GetPlayer() == Object():GetPlayer())
</FILTER>
<CONTINUOUS_ACTION layer="7C">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
if characteristics ~= nil then
characteristics:Power_Add( 1 )
characteristics:Toughness_Add( 1 )
end
end
</CONTINUOUS_ACTION>
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="6">
local filtered_obj = FilteredCard()
if filtered_obj ~= nil then
filtered_obj:GetCurrentCharacteristics():Characteristic_Set( CHARACTERISTIC_MOUNTAINWALK, 1 )
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
And finally my last problem is lavaclaw reaches, the last part where you turn it into a 2/2 creature AND red elemental. I have not been able to find any code for it.