Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Workshop deck -> Trinistax deck
Moderator: CCGHQ Admins
Workshop deck -> Trinistax deck
by Aborash » 30 Jul 2011, 15:01
Hi:
Im trying to transform the workshop deck into a Trinistax deck ( http://tappedout.net/mtg-decks/legacy-stax-1/ )
But not sure how to code Smokestack, Trinisphere and Crucible of Worlds , someone want to help me?
Im trying to transform the workshop deck into a Trinistax deck ( http://tappedout.net/mtg-decks/legacy-stax-1/ )
But not sure how to code Smokestack, Trinisphere and Crucible of Worlds , someone want to help me?
Re: Workshop deck -> Trinistax deck
by Aborash » 02 Aug 2011, 08:44
I had tried to code Crucible of Worlds but it doesnt works.
- Code: Select all
<TRIGGERED_ABILITY layer="0" tag="CRUCIBLE_OF_WORLDS_RULE_1" auto_skip="1" >
<TARGET_DETERMINATION>
Object():GetFilter():Clear()
Object():GetFilter():SetZone( ZONE_GRAVEYARD )
Object():GetFilter():SetPlayer( Object():GetController() )
Object():GetFilter():AddCardType( CARD_TYPE_LAND )
Object():GetFilter():May()
return TargetGoodF()
</TARGET_DETERMINATION>
<PLAYTIME>
ChooseTarget( "CHOOSETARGET" )
</PLAYTIME>
<EFFECT>
if Object():GetTargetCard() ~= nil and (NonTokenLandFall() == true) then
PutTargetCardIntoPlay( Object():GetController() )
Object():GetTargetCard():GuidedReveal( ZONE_GRAVEYARD, ZONE_IN_PLAY )
end
</EFFECT>
</TRIGGERED_ABILITY>
- Code: Select all
<TRIGGERED_ABILITY tag="SMOKESTACK_RULE_1" layer="0" auto_skip="1">
<TRIGGER value="BEGINNING_OF_STEP">
return MyUpkeep()
</TRIGGER>
<PLAYTIME>
if (Object():GetController():IsAI() ~= 0 and Object():CountCounters( MTG():ChargeCounters() ) < 3) then
Object():GetPlayer():BeginNewMultipleChoice( true )
Object():GetPlayer():AddMultipleChoiceAnswer( "YES" )
Object():GetPlayer():AddMultipleChoiceAnswer( "NO" )
Object():GetPlayer():AskMultipleChoiceQuestion( "SMOKESTACK_CHOOSE_TITLE" )
end
if (Object():GetController():IsAI() == 0) then
Object():GetPlayer():BeginNewMultipleChoice( true )
Object():GetPlayer():AddMultipleChoiceAnswer( "YES" )
Object():GetPlayer():AddMultipleChoiceAnswer( "NO" )
Object():GetPlayer():AskMultipleChoiceQuestion( "SMOKESTACK_CHOOSE_TITLE" )
end
</PLAYTIME>
<EFFECT>
if (Object():GetMultipleChoiceResult() == 0 and Object():GetController():IsAI() ~= 0 and Object():CountCounters( MTG():ChargeCounters() ) < 3) then
AddChargeCounter( Object() )
end
if (Object():GetMultipleChoiceResult() == 0 and Object():GetController():IsAI() == 0) then
AddChargeCounter( Object() )
end
</EFFECT>
</TRIGGERED_ABILITY>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<TRIGGERED_ABILITY tag="SMOKESTACK_RULE_2" auto_skip="0" layer="0">
for i=0,Object():CountCounters( MTG():ChargeCounters()) do
if (Object():GetNthTargetCard( i ) ~= nil) then
<TRIGGER value="BEGINNING_OF_STEP">
return ( MTG():GetStep() == STEP_UPKEEP and Object():CountCounters( MTG():ChargeCounters() ) > 0 )
</TRIGGER>
<PLAYTIME>
Object():GetFilter():Clear()
Object():GetFilter():SetPlayer()
Object():GetFilter():SetZone( ZONE_IN_PLAY )
</PLAYTIME>
<EFFECT>
Object():GetNthTargetCard( i ):Destroy()
</EFFECT>
end
end
</TRIGGERED_ABILITY>
Re: Workshop deck -> Trinistax deck
by nabeshin » 06 Aug 2011, 22:46
Smokestack code for you, enjoy !
- Code: Select all
<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>
Re: Workshop deck -> Trinistax deck
by Aborash » 08 Aug 2011, 19:12
Wou! Amazing, mad props! works flawless!!!
I'd been stuck for days on that. Tomorrow, I'm going on holidays, but as soon as I return, I'll try to code the last cards.
Again, Thank you!!.
I'd been stuck for days on that. Tomorrow, I'm going on holidays, but as soon as I return, I'll try to code the last cards.
Again, Thank you!!.
Re: Workshop deck -> Trinistax deck
by nabeshin » 10 Aug 2011, 13:14
You are welcome.
I create "Crucible of Worlds" too, but he ugly plays. I don't know as to change the register of "landfall". It is necessary violently not to allow to put two lands.
I create "Crucible of Worlds" too, but he ugly plays. I don't know as to change the register of "landfall". It is necessary violently not to allow to put two lands.
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 28 guests