Re: 29/01/2012 DOTP 2012 Persee's Custom DLC Ver 1.1
I don't have this bug. Did you erase your profile ?
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=101&t=6170
I'm not sure what you mean by "profile".Persee wrote:I don't have this bug. Did you erase your profile ?


I'm afraid they will never work, unless a big expansion including at least one planeswalker card gets released in the future. Since there's no planeswalker in the game, I think the developers didn't even include the planeswalker rules in the code (like how to decide to deal damage to them instead of the controller, and so on).Persee wrote:Planeswalker cards don't work in DOTP12, for now, I hope.
Ok, I really love the artifacts decks (Etherium artifact FTW!!!), and would be awesome if you could make a trinistax one:Persee wrote:Thanks.
Don't hesitate to make suggestions to improve cards and decks.
<TRIGGERED_ABILITY tag="YOUR_CARD_HERE_RULE_1" layer="0" auto_skip="1">
<TRIGGER value="BEGINNING_OF_STEP">
return MyStep( STEP_DRAW )
</TRIGGER>
<PLAYTIME>
Object():GetController():BeginNewMultipleChoice()
Object():GetController():AddMultipleChoiceAnswer( "YES" )
Object():GetController():AddMultipleChoiceAnswer( "NO" )
Object():GetController():AskMultipleChoiceQuestion( "YOUR_CARD_CHOOSE_TEXT" )
</PLAYTIME>
<EFFECT>
if Object():GetMultipleChoiceResult() == 0 then
AddChargeCounter( Object() )
end
</EFFECT>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY layer="8" auto_skip="1">
<TRIGGER value="BEGINNING_OF_STEP">
return MyUpkeep() or (MTG():GetStep() == STEP_UPKEEP and Object():GetController():MyTurn() == 0 and Player() ~= Object():GetPlayer() )
</TRIGGER>
<PRE_EFFECT>
if Object():CountCounters( MTG():ChargeCounters() ) > 0 then
Object():GetFilter():Clear()
Object():GetFilter():AddCardType( CARD_TYPE_ARTIFACT )
Object():GetFilter():AddCardType( CARD_TYPE_ENCHANTMENT )
Object():GetFilter():AddCardType( CARD_TYPE_LAND )
Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
Object():GetFilter():AddCardType( CARD_TYPE_PLANESWALKER )
Object():GetFilter():SetController( Player() )
Object():GetFilter():SetZone( ZONE_IN_PLAY )
Object():GetFilter():PlayerHint( Player() )
local count = Object():CountCounters( MTG():ChargeCounters() )
Player():SetTargetCount( count )
local index = 0
while index < count do
Player():SetTargetPrompt( index, "ChoosePermanent" )
index = index + 1
end
Player():ChooseTargets()
end
</PRE_EFFECT>
<EFFECT>
for i=0, Object():GetNumberOfTargets() - 1 do
Object():GetNthTargetCard( i ):Sacrifice()
end
if (Object():GetTargetCard() ~= nil) then
Object():GetTargetCard():Sacrifice()
end
</EFFECT>
</TRIGGERED_ABILITY>Chalice Of The VoidPersee wrote:Legacy Stax ? Hum, why not, but some cards seems to be hard to code :
- crucible
- trinisphere
- Chalice
This could take me some time to do it.
<TRIGGERED_ABILITY tag="CHALICE_OF_THE_VOID_RULE_1" layer="0" internal="1">
<TRIGGER value="COMES_INTO_PLAY">
return SelfTriggered()
</TRIGGER>
<EFFECT>
Object():Register_Set( 0, Object():GetManaX() )
Object():Register_Div( 0, 2 )
Object():AddCounters( MTG():GetCountersType( "CHARGE" ), Object():Register_Get(0) )
local OBJ_LINKED_CARD = MTG():ObtainToken( "TARMOGOYF" , Object():GetOwner() )
if (OBJ_LINKED_CARD ~= nil) then
Object():Register_Object_Set(7, OBJ_LINKED_CARD )
OBJ_LINKED_CARD:Register_Object_Set(7, Object() )
OBJ_LINKED_CARD:RemoveFromGame()
end
</EFFECT>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY tag="CHALICE_OF_THE_VOID_RULE_2" layer="0">
<TRIGGER value="ZONECHANGE">
Object():SetSFXTargetCard( TriggerObject() )
return (TriggerObject() ~= Object() and TriggerObject():GetRef() ~= Object():GetRef() and
TriggerObject():GetRef() ~= Object():Register_Object_Get(7):GetRef() and
TriggerObject():GetZone() == ZONE_STACK and
TriggerObject():GetConvertedManaCost() == Object():CountCounters( MTG():GetCountersType( "CHARGE" ) ))
</TRIGGER>
<EFFECT>
if TriggerObject() ~= nil then
TriggerObject():CounterSpell()
end
</EFFECT>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY layer="0">
<TRIGGER value="ZONECHANGE">
Object():SetSFXTargetCard( TriggerObject() )
return (Object():Register_Object_Get(7) ~= nil and
TriggerObject():GetRef() == Object():Register_Object_Get(7):GetRef() and
TriggerObject():GetZone() == ZONE_STACK and
Object():CountCounters( MTG():GetCountersType( "CHARGE" ) ) == 2)
</TRIGGER>
<EFFECT>
if TriggerObject() ~= nil then
TriggerObject():CounterSpell()
end
</EFFECT>
</TRIGGERED_ABILITY>
<UTILITY_ABILITY layer="0" zone="hand">
<COST qualifier="Additional" type="Mana" cost="{X}" />
</UTILITY_ABILITY>
<!--
/////////////////////////////////////////////////////////////////////////////////////////////
Function to counter invalid double X cost of other Chalice of the Void if X cost is
an Odd Number. This is neccessary to avoid cheating using Chalice. Manual modulo method
is used here to determine if its an Odd or an Even number.
-kevlahnota
/////////////////////////////////////////////////////////////////////////////////////////////
-->
<TRIGGERED_ABILITY layer="0">
<TRIGGER value="SPELL_PLAYED">
Object():SetSFXTargetCard( TriggerObject() )
return TriggerObject() ~= Object() and TriggerObject():GetRef() == Object():GetRef()
</TRIGGER>
<EFFECT>
local targetXcost = TriggerObject():GetManaX()
Object():Register_Set( 1, targetXcost )
Object():Register_Div( 1, 2 )
Object():Register_Mul( 1, 2 )
local minusXcost = targetXcost - Object():Register_Get(1)
local correctXcost = targetXcost - minusXcost
local mychargecounters = Object():CountCounters( MTG():GetCountersType( "CHARGE" ) )
if correctXcost == mychargecounters then
if TriggerObject() ~= nil then
TriggerObject():CounterSpell()
end
Object():Register_Set( 1, 0 )
else
Object():Register_Set( 1, 0 )
end
</EFFECT>
</TRIGGERED_ABILITY>