Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014
Formal Request Thread
Moderator: CCGHQ Admins
Re: Formal Request Thread
by drleg3nd » 24 Sep 2013, 16:02
hey guys having a problem with Steam Augry
- | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Rivela le prime cinque carte del tuo grimorio. Un avversario separa quelle carte in due pile. Aggiungi alla tua mano una pila e metti l’altra nel tuo cimitero.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local queryDC = EffectDC():Make_Chest(1)
for i=0,4 do
local card = EffectController():Library_GetNth(i)
if card ~= nil then
card:Reveal()
queryDC:Set_CardPtr(i, card)
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local filter = ClearFilter()
filter:SetFilterType(FILTER_TYPE_PLAYERS)
filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam() )
EffectController():ChooseItem( "CARD_QUERY_CHOOSE_OPPONENT", EffectDC():Make_Targets(0) )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local opponent = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if opponent ~= nil then
local queryDC = EffectDC():Get_Chest(1)
local answerDC = EffectDC():Make_Targets(2)
local count = queryDC:Count()
if opponent:IsAI() then
local scores_array = {}
local total_score = 0
for i=0,count-1 do
scores_array[i] = queryDC:Get_CardPtr(i):CalcPotentialScore()
total_score = total_score + scores_array[i]
end
local half_total_score = total_score / 2
local temp_score = 0
for i=0,count-1 do
answerDC:Set_CardPtr(i, queryDC:Get_CardPtr(i))
temp_score = temp_score + scores_array[i]
if temp_score >= half_total_score then
break
end
end
else
controller:SetItemCount(count)
for i=0,count-1 do
controller:SetItemPrompt(i, "PLW_CARD_QUERY_CHOOSE_CARD_TO_PILE")
end
controller:ChooseItems(answerDC, QUERY_FLAG_UP_TO)
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local queryDC = EffectDC():Get_Chest(1)
local answerDC = EffectDC():Get_Targets(2)
for i=0,queryDC:Count()-1 do
local card = queryDC:Get_CardPtr(i)
local was_selected = false
for j=0,answerDC:Count()-1 do
if card == answerDC:Get_CardPtr(j) then
was_selected = true
break
end
end
if was_selected == false then
queryDC:QueryUnselect_CardPtr(i)
end
end
EffectController():ChooseItemFromDC( "PLW_CARD_QUERY_SELECT_PILE_TO_PUT_INTO_HAND", queryDC, EffectDC():Make_Targets(3), QUERY_FLAG_MAY )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local queryDC = EffectDC():Get_Chest(1)
local answerDC = EffectDC():Get_Targets(2)
local decision = EffectDC():Get_Targets(3) and EffectDC():Get_Targets(3):Get_CardPtr(0)
for i=0,queryDC:Count()-1 do
local card = queryDC:Get_CardPtr(i)
local was_selected = false
for j=0,answerDC:Count()-1 do
if card == answerDC:Get_CardPtr(j) then
was_selected = true
break
end
end
if decision ~= nil then
-- I chose the selected pile, so answerDC goes to the hand, the rest goes to the graveyard
if was_selected then
card:GuidedReveal(ZONE_LIBRARY, ZONE_HAND)
card:PutInHand()
else
card:PutInGraveyard()
end
else
-- I chose the unselected pile, so it's the other way around
if was_selected then
card:PutInGraveyard()
else
card:GuidedReveal(ZONE_LIBRARY, ZONE_HAND)
card:PutInHand()
end
end
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<AI_BASE_SCORE score="300" zone="ZONE_HAND" />
- | Open
- Code: Select all
[lua] [string "STEAM_AUGURY_812373539_TITLE (RESOLUTION_TIME_ACTION)~0x00000388"]:24: attempt to index global 'controller' (a nil value)
Re: Formal Request Thread
by jacque » 24 Sep 2013, 16:25
If I understood that error correctly, it means that the error happened at line 24, under a RESOLUTION_TIME_ACTION block... which should point to this area:drleg3nd wrote:hey guys having a problem with Steam Augry || I got this code straight from Fact or Fiction and I got this error msg:
- | Open
- Code: Select all
[lua] [string "STEAM_AUGURY_812373539_TITLE (RESOLUTION_TIME_ACTION)~0x00000388"]:24: attempt to index global 'controller' (a nil value)
- Code: Select all
end
end
else
controller:SetItemCount(count)
for i=0,count-1 do
controller:SetItemPrompt(i, "PLW_CARD_QUERY_CHOOSE_CARD_TO_PILE")
And having said so I doubt you got that code from Fact to Fiction, but rather you got it from TFM/G2K's Planeswalker DLC, in particular Jace, Architect of Thought... you forgot to replace the controller(s) with opponent... or either way around... the "PLW" tag gave you away...
Learn making your own cards today!!!
Click on
if a post/reply helped you.
I stitch old cards together to make new ones...
~ Jacque, the confused
Click on
if a post/reply helped you.I stitch old cards together to make new ones...
~ Jacque, the confused
Re: Formal Request Thread
by drleg3nd » 24 Sep 2013, 16:55
So replace controller with opponent right ? Actually I did it from fact or fiction because when I searching abilites on deckbuilder it was the same word for word. .whoever made that card most likely got it from jacejacque wrote:If I understood that error correctly, it means that the error happened at line 24, under a RESOLUTION_TIME_ACTION block... which should point to this area:drleg3nd wrote:hey guys having a problem with Steam Augry || I got this code straight from Fact or Fiction and I got this error msg:
- | Open
- Code: Select all
[lua] [string "STEAM_AUGURY_812373539_TITLE (RESOLUTION_TIME_ACTION)~0x00000388"]:24: attempt to index global 'controller' (a nil value)So I replace controller with opponent then right ? I actually did get it from fact or fiction l, when I looked for abilites on the deckbuilder it was the same word for word, whoever made that card prolly got it from jace
- Code: Select all
end
end
else
controller:SetItemCount(count)
for i=0,count-1 do
controller:SetItemPrompt(i, "PLW_CARD_QUERY_CHOOSE_CARD_TO_PILE")
"controller" just appeared out of no where when all the while it was "opponent"...
And having said so I doubt you got that code from Fact to Fiction, but rather you got it from TFM/G2K's Planeswalker DLC, in particular Jace, Architect of Thought... you forgot to replace the controller(s) with opponent... or either way around... the "PLW" tag gave you away...
Re: Formal Request Thread
by RiiakShiNal » 24 Sep 2013, 17:55
My mistake, I'll try not to make it again.jacque wrote:It's a sheRiiakShiNal wrote:which is why his works.
Well, the card doesn't need a filter so why don't you try changing it to a RESOLUTION_TIME_ACTION and remove the filter_ids and Sacrifice is a player function not an object function so it should be like this:jacque wrote:I tried working on Tainted Aether... I thought the trigger and the effect should be somewhat similar to Mana Breach? The prob now is that, Aether triggered, player can select to sac a creature or land, but they won't get sac-ed... Can someone please tell me what did I miss? Been toying with this fault for the past hour or so >.< Thanks yea...
- TAINTED AETHER | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever a creature enters the battlefield, its controller sacrifices a creature or land.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[À chaque fois qu’une créature arrive en jeu, son contrôleur sacrifie une créature ou un terrain.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Whenever a creature enters the battlefield, its controller sacrifices a creature or land.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn eine Kreatur ins Spiel kommt, opfert ihr Beherrscher eine Kreatur oder ein Land.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta una creatura entra nel campo di battaglia, il suo controllore sacrifica una creatura o una terra.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Whenever a creature enters the battlefield, its controller sacrifices a creature or land.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever a creature enters the battlefield, its controller sacrifices a creature or land.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever a creature enters the battlefield, its controller sacrifices a creature or land.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Whenever a creature enters the battlefield, its controller sacrifices a creature or land.]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_END" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY">
return TriggerObject():GetCardType():Test( CARD_TYPE_CREATURE )
</TRIGGER>
<FILTER filter_id="0">
local player = TriggerObject():GetPlayer()
local filter = ClearFilter()
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
filter:Add( FE_CONTROLLER, OP_IS, player )
player:ChooseItem( "CARD_QUERY_CHOOSE_A_CREATURE/LAND_TO_SACRIFICE", EffectDC():Make_Targets(0) )
</FILTER>
<RESOLUTION_TIME_ACTION filter_id="0">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Sacrifice()
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
- Code: Select all
<TRIGGER value="ZONECHANGE_END" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY">
return TriggerObject():GetCardType():Test( CARD_TYPE_CREATURE )
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local player = TriggerObject():GetPlayer()
local filter = ClearFilter()
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
filter:Add( FE_CONTROLLER, OP_IS, player )
player:ChooseItem( "CARD_QUERY_CHOOSE_A_CREATURE/LAND_TO_SACRIFICE", EffectDC():Make_Targets(0) )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:GetController():Sacrifice( target )
end
</RESOLUTION_TIME_ACTION>
In this block:drleg3nd wrote:hey guys having a problem with Steam AugryI got this code straight from Fact or Fiction and I got this error msg:
- | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Rivela le prime cinque carte del tuo grimorio. Un avversario separa quelle carte in due pile. Aggiungi alla tua mano una pila e metti l’altra nel tuo cimitero.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Reveal the top five cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local queryDC = EffectDC():Make_Chest(1)
for i=0,4 do
local card = EffectController():Library_GetNth(i)
if card ~= nil then
card:Reveal()
queryDC:Set_CardPtr(i, card)
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local filter = ClearFilter()
filter:SetFilterType(FILTER_TYPE_PLAYERS)
filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam() )
EffectController():ChooseItem( "CARD_QUERY_CHOOSE_OPPONENT", EffectDC():Make_Targets(0) )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local opponent = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if opponent ~= nil then
local queryDC = EffectDC():Get_Chest(1)
local answerDC = EffectDC():Make_Targets(2)
local count = queryDC:Count()
if opponent:IsAI() then
local scores_array = {}
local total_score = 0
for i=0,count-1 do
scores_array[i] = queryDC:Get_CardPtr(i):CalcPotentialScore()
total_score = total_score + scores_array[i]
end
local half_total_score = total_score / 2
local temp_score = 0
for i=0,count-1 do
answerDC:Set_CardPtr(i, queryDC:Get_CardPtr(i))
temp_score = temp_score + scores_array[i]
if temp_score >= half_total_score then
break
end
end
else
controller:SetItemCount(count)
for i=0,count-1 do
controller:SetItemPrompt(i, "PLW_CARD_QUERY_CHOOSE_CARD_TO_PILE")
end
controller:ChooseItems(answerDC, QUERY_FLAG_UP_TO)
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local queryDC = EffectDC():Get_Chest(1)
local answerDC = EffectDC():Get_Targets(2)
for i=0,queryDC:Count()-1 do
local card = queryDC:Get_CardPtr(i)
local was_selected = false
for j=0,answerDC:Count()-1 do
if card == answerDC:Get_CardPtr(j) then
was_selected = true
break
end
end
if was_selected == false then
queryDC:QueryUnselect_CardPtr(i)
end
end
EffectController():ChooseItemFromDC( "PLW_CARD_QUERY_SELECT_PILE_TO_PUT_INTO_HAND", queryDC, EffectDC():Make_Targets(3), QUERY_FLAG_MAY )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local queryDC = EffectDC():Get_Chest(1)
local answerDC = EffectDC():Get_Targets(2)
local decision = EffectDC():Get_Targets(3) and EffectDC():Get_Targets(3):Get_CardPtr(0)
for i=0,queryDC:Count()-1 do
local card = queryDC:Get_CardPtr(i)
local was_selected = false
for j=0,answerDC:Count()-1 do
if card == answerDC:Get_CardPtr(j) then
was_selected = true
break
end
end
if decision ~= nil then
-- I chose the selected pile, so answerDC goes to the hand, the rest goes to the graveyard
if was_selected then
card:GuidedReveal(ZONE_LIBRARY, ZONE_HAND)
card:PutInHand()
else
card:PutInGraveyard()
end
else
-- I chose the unselected pile, so it's the other way around
if was_selected then
card:PutInGraveyard()
else
card:GuidedReveal(ZONE_LIBRARY, ZONE_HAND)
card:PutInHand()
end
end
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<AI_BASE_SCORE score="300" zone="ZONE_HAND" />
- | Open
- Code: Select all
[lua] [string "STEAM_AUGURY_812373539_TITLE (RESOLUTION_TIME_ACTION)~0x00000388"]:24: attempt to index global 'controller' (a nil value)
- Code: Select all
<RESOLUTION_TIME_ACTION>
local opponent = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if opponent ~= nil then
local queryDC = EffectDC():Get_Chest(1)
local answerDC = EffectDC():Make_Targets(2)
local count = queryDC:Count()
if opponent:IsAI() then
local scores_array = {}
local total_score = 0
for i=0,count-1 do
scores_array[i] = queryDC:Get_CardPtr(i):CalcPotentialScore()
total_score = total_score + scores_array[i]
end
local half_total_score = total_score / 2
local temp_score = 0
for i=0,count-1 do
answerDC:Set_CardPtr(i, queryDC:Get_CardPtr(i))
temp_score = temp_score + scores_array[i]
if temp_score >= half_total_score then
break
end
end
else
controller:SetItemCount(count)
for i=0,count-1 do
controller:SetItemPrompt(i, "PLW_CARD_QUERY_CHOOSE_CARD_TO_PILE")
end
controller:ChooseItems(answerDC, QUERY_FLAG_UP_TO)
end
end
</RESOLUTION_TIME_ACTION>
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: 2189
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Formal Request Thread
by Onewingedchickn » 24 Sep 2013, 19:35
Can anyone do Knight Exemplar and Knight of Meadowgrain?
- Onewingedchickn
- Posts: 10
- Joined: 28 Jun 2013, 15:54
- Has thanked: 7 times
- Been thanked: 0 time
Re: Formal Request Thread
by MC Brodie » 24 Sep 2013, 22:16
Knight of Medowgrain is easy. All you need is thefiremind's web generator found here.Onewingedchickn wrote:Can anyone do Knight Exemplar and Knight of Meadowgrain?
- Knight of Meadowgrain | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="KNIGHT_OF_MEADOWGRAIN_867243422" />
<CARDNAME text="KNIGHT_OF_MEADOWGRAIN" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Knight of Meadowgrain]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Chevalier d’Orgeprairie]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Caballero de Pradera Cultivada]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Ritter aus Wiesenkorn]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Cavaliera di Pratograno]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Knight of Meadowgrain]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Knight of Meadowgrain]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Knight of Meadowgrain]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Knight of Meadowgrain]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="867243422" />
<ARTID value="867243422" />
<ARTIST name="Larry MacDougall" />
<CASTING_COST cost="{W}{W}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“By tradition, we don’t speak for two days after battle. If our deeds won’t speak for themselves, what else could be said?”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« La tradition nous contraint à ne pas parler pendant deux jours après une bataille. Si nos actes ne parlent pas d’eux-mêmes, que nous reste-t-il à dire ? »]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Por tradición, no hablamos por dos días después de la batalla. Si nuestros actos no hablan por nosotros, ¿qué más puede decirse?”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Aus Tradition sprechen wir nach einer Schlacht zwei Tage lang nicht. Wenn unsere Taten nicht für uns sprechen, was könnte dann noch gesagt werden?”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Per tradizione, dopo la battaglia non parliamo per due giorni. Se le nostre imprese non parlano da sole, che altro può essere detto?”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[“By tradition, we don’t speak for two days after battle. If our deeds won’t speak for themselves, what else could be said?”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“By tradition, we don’t speak for two days after battle. If our deeds won’t speak for themselves, what else could be said?”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“By tradition, we don’t speak for two days after battle. If our deeds won’t speak for themselves, what else could be said?”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“By tradition, we don’t speak for two days after battle. If our deeds won’t speak for themselves, what else could be said?”]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Kithkin" />
<SUB_TYPE metaname="Knight" />
<EXPANSION value="DDG" />
<RARITY metaname="U" />
<POWER value="2" />
<TOUGHNESS value="2" />
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[First strike]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Initiative]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Daña primero.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Erstschlag]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Attacco improvviso]]></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[Iniciativa]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_FIRST_STRIKE" />
</STATIC_ABILITY>
<STATIC_ABILITY commaspace="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Lifelink]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Lien de vie]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Vínculo vital.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Lebensverknüpfung]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Legame vitale]]></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[Vínculo com a vida]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_LIFELINK" />
</STATIC_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_0" body="MORE_INFO_BADGE_BODY_0" zone="ZONE_ANY" />
<HELP title="MORE_INFO_BADGE_TITLE_4" body="MORE_INFO_BADGE_BODY_4" zone="ZONE_ANY" />
<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>
- Knight Exemplar | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="KNIGHT_EXEMPLAR_867243431" />
<CARDNAME text="KNIGHT_EXEMPLAR" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Knight Exemplar]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Archétype de chevalier]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Caballero ejemplar]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Vorbildlicher Ritter]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Cavaliera Esemplare]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Knight Exemplar]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Knight Exemplar]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Knight Exemplar]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Knight Exemplar]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="867243431" />
<ARTID value="867243431" />
<ARTIST name="Jason Chan" />
<CASTING_COST cost="{1}{W}{W}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“If you think you are brave enough to walk the path of honor, follow me into the dragon’s den.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Si tu crois être suffisamment brave pour choisir la voie de l’honneur, suis-moi dans le repaire du dragon. »]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Si crees que eres suficientemente valiente como para caminar por el sendero del honor, sígueme a la guarida del dragón.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Falls du dich für tapfer genug hältst, den Pfad der Ehre zu beschreiten, folge mir in die Drachenhöhle.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Se pensi di essere abbastanza coraggioso da percorrere il sentiero dell’onore, seguimi nella tana del drago.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[“If you think you are brave enough to walk the path of honor, follow me into the dragon’s den.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“If you think you are brave enough to walk the path of honor, follow me into the dragon’s den.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“If you think you are brave enough to walk the path of honor, follow me into the dragon’s den.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“If you think you are brave enough to walk the path of honor, follow me into the dragon’s den.”]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Human" />
<SUB_TYPE metaname="Knight" />
<EXPANSION value="DDG" />
<RARITY metaname="R" />
<POWER value="2" />
<TOUGHNESS value="2" />
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[First strike]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Initiative]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Daña primero.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Erstschlag]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Attacco improvviso]]></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[Iniciativa]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_FIRST_STRIKE" />
</STATIC_ABILITY>
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Other Knight creatures you control get +1/+1 and have indestructible.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Les autres créatures Chevalier que vous contrôlez gagnent +1/+1 et sont indestructibles.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Las otras criaturas Caballero que controlas obtienen +1/+1 y son indestructibles.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Andere Ritter-Kreaturen, die du kontrollierst, erhalten +1/+1 und sind unzerstörbar.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Le altre creature Cavaliere che controlli prendono +1/+1 e hanno indistruttibile.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Other Knight creatures you control get +1/+1 and have indestructible.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Other Knight creatures you control get +1/+1 and have indestructible.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Other Knight creatures you control get +1/+1 and have indestructible.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Other Knight creatures you control get +1/+1 and have indestructible.]]></LOCALISED_TEXT>
<FILTER filter_id="0">
local filter = ClearFilter()
filter:Add(FE_CARD_INSTANCE, OP_NOT, EffectSource() )
filter:Add(FE_SUBTYPE, OP_IS, CREATURE_TYPE_KNIGHT)
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
filter:Add( FE_CONTROLLER, OP_IS, EffectController())
</FILTER>
<CONTINUOUS_ACTION layer="7C" filter_id="0">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
characteristics:Power_Add( 1 )
characteristics:Toughness_Add( 1 )
end
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="6" filter_id="0">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_INDESTRUCTIBLE, 1 )
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_0" body="MORE_INFO_BADGE_BODY_0" zone="ZONE_ANY" />
<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>
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Formal Request Thread
by jacque » 24 Sep 2013, 23:41
My goodness... one wrong heading and it kept me busy for an hour plus >.< It's interesting how you all could easily identify what went wrong without even testing it to see what is wrong... Thanks again =)RiiakShiNal wrote:Well, the card doesn't need a filter so why don't you try changing it to a RESOLUTION_TIME_ACTION and remove the filter_ids and Sacrifice is a player function not an object function so it should be like this:
Learn making your own cards today!!!
Click on
if a post/reply helped you.
I stitch old cards together to make new ones...
~ Jacque, the confused
Click on
if a post/reply helped you.I stitch old cards together to make new ones...
~ Jacque, the confused
Re: Formal Request Thread
by RiiakShiNal » 25 Sep 2013, 00:24
Don't feel bad, sometimes it just takes a fresh set of eyes to spot the problems. I'm sure the same has happened to most of us (I know it's happened to me before).jacque wrote:My goodness... one wrong heading and it kept me busy for an hour plus >.< It's interesting how you all could easily identify what went wrong without even testing it to see what is wrong... Thanks again =)
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: 2189
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Formal Request Thread
by drleg3nd » 25 Sep 2013, 00:49
hey guys,just wanna verify if this code chks good before i put in my deck.
- Ashen Rider | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Ashen Rider enters the battlefield or dies, exile target permanent.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand la Cavalière cendreuse arrive sur le champ de bataille ou meurt, exilez le permanent ciblé.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando la Jinete cinérea entre al campo de batalla o muera, exilia el permanente objetivo.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn die Aschfahle Reiterin ins Spiel kommt oder stirbt, schicke eine bleibende Karte deiner Wahl ins Exil.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando la Cavalcatrice Cinerea entra nel campo di battaglia o muore, esilia un permanente bersaglio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[灰燼の乗り手が戦場に出たか死亡したとき、パーマネント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[Quando Ginete Cinzento entrar no campo de batalha ou morrer, exile a permanente alvo.]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
<TRIGGER value="ZONECHANGE_BEGIN" simple_qualifier="self" to_zone="ZONE_GRAVEYARD" from_zone="ZONE_BATTLEFIELD" />
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
LinkedDC():Set_CardPtr(0, target)
LinkedDC():Protect_CardPtr(0)
target:Exile()
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
Re: Formal Request Thread
by jacque » 25 Sep 2013, 00:57
I don't see anywhere in your code that prompts the controller which target to exile? U cannot Get_Target() without first Make_Target()... You'll need a <TARGET> tag...drleg3nd wrote:hey guys,just wanna verify if this code chks good before i put in my deck.
Learn making your own cards today!!!
Click on
if a post/reply helped you.
I stitch old cards together to make new ones...
~ Jacque, the confused
Click on
if a post/reply helped you.I stitch old cards together to make new ones...
~ Jacque, the confused
Re: Formal Request Thread
by drleg3nd » 25 Sep 2013, 01:27
wish wiki functions had examples or description on how to use them, it'll make things so much easier.
Re: Formal Request Thread
by jacque » 25 Sep 2013, 01:28
You don't need a wiki really... all you need is Riiak's Deck Builderdrleg3nd wrote:wish wiki functions had examples or description on how to use them, it'll make things so much easier.
Learn making your own cards today!!!
Click on
if a post/reply helped you.
I stitch old cards together to make new ones...
~ Jacque, the confused
Click on
if a post/reply helped you.I stitch old cards together to make new ones...
~ Jacque, the confused
Re: Formal Request Thread
by drleg3nd » 25 Sep 2013, 01:36
deckbuilder have a tutorial on functions ?jacque wrote:You don't need a wiki really... all you need is Riiak's Deck Builderdrleg3nd wrote:wish wiki functions had examples or description on how to use them, it'll make things so much easier.
how does this looks now :
- Ashen Rider | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Ashen Rider enters the battlefield or dies, exile target permanent.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand la Cavalière cendreuse arrive sur le champ de bataille ou meurt, exilez le permanent ciblé.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando la Jinete cinérea entre al campo de batalla o muera, exilia el permanente objetivo.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn die Aschfahle Reiterin ins Spiel kommt oder stirbt, schicke eine bleibende Karte deiner Wahl ins Exil.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando la Cavalcatrice Cinerea entra nel campo di battaglia o muore, esilia un permanente bersaglio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[灰燼の乗り手が戦場に出たか死亡したとき、パーマネント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[Quando Ginete Cinzento entrar no campo de batalha ou morrer, exile a permanente alvo.]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
<TRIGGER value="ZONECHANGE_BEGIN" simple_qualifier="self" to_zone="ZONE_GRAVEYARD" from_zone="ZONE_BATTLEFIELD" />
<TARGET tag="CARD_QUERY_CHOOSE_PERMANENT_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
LinkedDC():Set_CardPtr(0, target)
LinkedDC():Protect_CardPtr(0)
target:Exile()
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
- Commune of the Gods | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Reveal the top five cards of your library. You may put a creature or enchantment card from among them into your hand. Put the rest into your graveyard.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Révélez les cinq cartes du dessus de votre bibliothèque. Vous pouvez mettre une carte de créature ou d’enchantement parmi elles dans votre main. Mettez le reste dans votre cimetière.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Muestra las primeras cinco cartas de tu biblioteca. Puedes poner en tu mano una carta de criatura o de encantamiento que se encuentre entre ellas. Pon el resto en tu cementerio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Decke die obersten fünf Karten deiner Bibliothek auf. Du kannst davon eine Kreaturen- oder Verzauberungskarte auf deine Hand nehmen. Lege den Rest auf deinen Friedhof.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Rivela le prime cinque carte del tuo grimorio. Puoi aggiungere alla tua mano una carta creatura o incantesimo scelta tra esse. Metti le altre nel tuo cimitero.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのライブラリーの一番上から5枚のカードを公開する。あなたは、それらの中にあるクリーチャー・カードかエンチャント・カードを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[Revele os cinco cards do topo de seu grimório. Você pode colocar um card de criatura ou encantamento dentre eles em sua mão. Coloque o restante em seu cemitério.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
for i=0,4 do
local card = EffectController():Library_GetNth(i)
if card ~= nil then
card:Reveal()
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local card_array = {}
for i=0,4 do
card_array[i] = EffectController():Library_GetNth(i)
end
for i=0,4 do
local card = card_array[i]
if card ~= nil then
if card:GetCardType():Test(CARD_TYPE_CREATURE) then
card:PutInHand()
else
card:PutInGraveyard()
end
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local card_array = {}
for i=0,4 do
card_array[i] = EffectController():Library_GetNth(i)
end
for i=0,4 do
local card = card_array[i]
if card ~= nil then
if card:GetCardType():Test(CARD_TYPE_ENCHANTMENT) then
card:PutInHand()
else
card:PutInGraveyard()
end
end
end
</RESOLUTION_TIME_ACTION>
Re: Formal Request Thread
by jacque » 25 Sep 2013, 01:40
You get to refer to other existing examples using it... I don't know why you're using LinkDC tho...drleg3nd wrote:deckbuilder have a tutorial on functions ?
Btw, I know this sounds silly, and it should be a very easy card... I cannot figure out why my Tolarian Winds won't draw cards after it has discarded my hand? =(
- TOLARIAN WINDS | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Défaussez-vous de votre main, puis piochez autant de cartes que vous vous en êtes défaussées de cette manière.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wirf alle Karten aus deiner Hand ab und ziehe dann genausoviele Karten.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Scarta tutte le carte che hai in mano, poi pesca altrettante carte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local total = EffectController():Hand_Count()
EffectController():DiscardHand(l)
EffectDC():Set_Int( 1, total )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local total = EffectDC():Get_Int(1)
EffectController():DrawCards( total-1 )
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
Learn making your own cards today!!!
Click on
if a post/reply helped you.
I stitch old cards together to make new ones...
~ Jacque, the confused
Click on
if a post/reply helped you.I stitch old cards together to make new ones...
~ Jacque, the confused
Re: Formal Request Thread
by drleg3nd » 25 Sep 2013, 01:59
see i dont even know what you mean by LinkedDCjacque wrote:You get to refer to other existing examples using it... I don't know why you're using LinkDC tho...drleg3nd wrote:deckbuilder have a tutorial on functions ?
Btw, I know this sounds silly, and it should be a very easy card... I cannot figure out why my Tolarian Winds won't draw cards after it has discarded my hand? =(
- TOLARIAN WINDS | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Défaussez-vous de votre main, puis piochez autant de cartes que vous vous en êtes défaussées de cette manière.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wirf alle Karten aus deiner Hand ab und ziehe dann genausoviele Karten.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Scarta tutte le carte che hai in mano, poi pesca altrettante carte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Discard all the cards in your hand, then draw that many cards.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local total = EffectController():Hand_Count()
EffectController():DiscardHand(l)
EffectDC():Set_Int( 1, total )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local total = EffectDC():Get_Int(1)
EffectController():DrawCards( total-1 )
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
i can put abilites together but i get in trouble when abilites doesn't match up word for word..hard to improvise if i dont know what to improvise with. Right now im just trying to learn on the fly without looking completely dense on this stuff Who is online
Users browsing this forum: No registered users and 7 guests