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
MTG - BORN OF THE GODS - COMPLETE SET - UPDATE DXT1
Moderator: CCGHQ Admins
MTG - BORN OF THE GODS - COMPLETE SET - UPDATE DXT1
by NeoAnderson » 14 Jan 2014, 01:48
After a long writing work a complete Born Of the Gods Mtg Set.
9 Amazing Animated cards, official tokens, new abilities, and much more...
To take a look to the custom function for dual devotion, see page 2 of this topic
PRIORITY NOTE : THE TRIBUTE FUNCTION IS JUST A TEST, SO PLEASE HELP ME TO LET ME KNOW HOW IT WORKS AND IF YOU FIND SOME WEIRD BEHAVIOUR, WE CAN MAKE IT BETTER TOGHETER. THIS FUNCTION IS STUDIED FOR THAT KIND OF EFFECT SO TO BE APPLIED TO OTHER TRIBUTE CARDS WITH DIFFERENT EFFECT NEEDS SOME CHANGES.
UPDATE : ADDED PICTURES WITH DTX1 COMPRESSION.
Complete cards list.
Due to some coding problems between Mtg Rules and Dotp Engine i had to remove ARCHETYPES.
DOWNLOAD WAD FILE : UPDATE FIXED Card Dawn to Dusk
CHANGELOG :
REV 1.D - FIXED CARD - FIXED Card Dawn to Dusk (Mode 2 will now destroy the enchantment)
REV 1.C - FIXED CARD - FIXED Card Peregrination (resaved because the game was not able to load it)
REV 1.B - FIXED CARD - FIXED Card Heroes’ Podium (Now it properly assign bonus only to controlled Legendary creatures)
REV 1.A - FIXED CARD - Perplexing Chimera (Now it properly works compliant to MTG RULES)
9 Amazing Animated cards, official tokens, new abilities, and much more...
To take a look to the custom function for dual devotion, see page 2 of this topic
PRIORITY NOTE : THE TRIBUTE FUNCTION IS JUST A TEST, SO PLEASE HELP ME TO LET ME KNOW HOW IT WORKS AND IF YOU FIND SOME WEIRD BEHAVIOUR, WE CAN MAKE IT BETTER TOGHETER. THIS FUNCTION IS STUDIED FOR THAT KIND OF EFFECT SO TO BE APPLIED TO OTHER TRIBUTE CARDS WITH DIFFERENT EFFECT NEEDS SOME CHANGES.
UPDATE : ADDED PICTURES WITH DTX1 COMPRESSION.
Complete cards list.
- 157 CARDS INCLUDED | Open
- Acolyte's Reward
Akroan Phalanx
Akroan Skyguard
Brimaz, King of Oreskos
Dawn to Dusk
Eidolon of Countless Battles
Elite Skirmisher
Ephara's Radiance
Excoriate
Fated Retribution
Ghostblade Eidolon
Glimpse the Sun God
God-Favored General
Great Hart
Griffin Dreamfinder
Hero of Iroas
Hold at Bay
Loyal Pegasus
Mortal's Ardor
Nyxborn Shieldmate
Oreskos Sun Guide
Ornitharch
Plea for Guidance
Revoke Existence
Silent Sentinel
Spirit of the Labyrinth
Sunbond
Vanguard of Brimaz
Aerie Worshippers
Arbiter of the Ideal
Chorus of the Tides
Crypsis
Deepwater Hypnotist
Divination
Eternity Snare
Evanescent Intellect
Fated Infatuation
Flitterstep Eidolon
Floodtide Serpent
Kraken of the Straits
Meletis Astronomer
Mindreaver
Nullify
Nyxborn Triton
Oracle's Insight
Perplexing Chimera
Retraction Helix
Siren of the Fanged Coast
Sphinx's Disciple
Stratus Walk
Sudden Storm
Thassa's Rebuff
Vortex Elemental
Whelming Wave
Ashiok's Adept
Asphyxiate
Bile Blight
Black Oak of Odunos
Champion of Stray Souls
Claim of Erebos
Drown in Sorrow
Eater of Hope
Eye Gouge
Fate Unraveler
Fated Return
Felhide Brawler
Forlorn Pseudamma
Forsaken Drifters
Gild
Grisly Transformation
Herald of Torment
Marshmist Titan
Necrobite
Nyxborn Eidolon
Odunos River Trawler
Pain Seer
Sanguimancy
Servant of Tymaret
Shrike Harpy
Spiteful Returned
Warchanter of Mogis
Weight of the Underworld
Akroan Conscriptor
Bolt of Keranos
Cyclops of One-Eyed Pass
Epiphany Storm
Everflame Eidolon
Fall of the Hammer
Fated Conflagration
Fearsome Temper
Felhide Spiritbinder
Flame-Wreathed Phoenix
Forgestoker Dragon
Impetuous Sunchaser
Kragma Butcher
Lightning Volley
Nyxborn Rollicker
Oracle of Bones
Pharagax Giant
Pinnacle of Rage
Reckless Reveler
Rise to the Challenge
Satyr Firedancer
Satyr Nyx-Smith
Scouring Sands
Searing Blood
Stormcaller of Keranos
Thunder Brute
Thunderous Might
Whims of the Fates
Aspect of Hydra
Charging Badger
Courser of Kruphix
Culling Mark
Fated Intervention
Graverobber Spider
Hero of Leina Tower
Hunter's Prowess
Karametra's Favor
Mischief and Mayhem
Mortal's Resolve
Nessian Demolok
Nessian Wilds Ravager
Noble Quarry
Nyxborn Wolf
Peregrination
Pheres-Band Raiders
Pheres-Band Tromper
Raised by Wolves
Satyr Wayfinder
Scourge of Skola Vale
Setessan Oathsworn
Setessan Starbreaker
Skyreaping
Snake of the Golden Grove
Swordwise Centaur
Unravel the Æther
Chromanticore
Ephara, God of the Polis
Ephara's Enlightenment
Fanatic of Xenagos
Karametra, God of Harvests
Kiora's Follower
Mogis, God of Slaughter
Phenax, God of Deception
Ragemonger
Reap What Is Sown
Siren of the Silent Song
Xenagos, God of Revels
Astral Cornucopia
Gorgon's Head
Heroes' Podium
Siren Song Lyre
Springleaf Drum
Temple of Enlightenment
Temple of Malice
Temple of Plenty
Due to some coding problems between Mtg Rules and Dotp Engine i had to remove ARCHETYPES.
- Cards Not Included | Open
- Archetype of Imagination
Archetype of Courage
Archetype of Endurance
Archetype of Aggression
Archetype of Finality
Pillar of War
Tromokratis
PLANESWALKER : Kiora, the Crashing Wave
DOWNLOAD WAD FILE : UPDATE FIXED Card Dawn to Dusk
CHANGELOG :
REV 1.D - FIXED CARD - FIXED Card Dawn to Dusk (Mode 2 will now destroy the enchantment)
REV 1.C - FIXED CARD - FIXED Card Peregrination (resaved because the game was not able to load it)
REV 1.B - FIXED CARD - FIXED Card Heroes’ Podium (Now it properly assign bonus only to controlled Legendary creatures)
REV 1.A - FIXED CARD - Perplexing Chimera (Now it properly works compliant to MTG RULES)
- Attachments
-
- DATA_DLC_588_BORN_OF_THE_GODS REV 1d.rar
- MTG - Born Of The Gods - Neo Rev 1d
- (25.66 MiB) Downloaded 5098 times
Last edited by NeoAnderson on 03 Nov 2014, 13:50, edited 38 times in total.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: BORN OF THE GODS - CARDS SPOILER
by drleg3nd » 14 Jan 2014, 03:24
beat me to the punch i was bored at work so i worked on a few cards. here's code to chk out if i made any mistakes and cards with pics on zip.
ps.card art probably wont be so great since art I cropped wasn't too big
- Kiora's Follower | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Untap another target permanent.]]></LOCALISED_TEXT>
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_PERMANENT_TO_UNTAP" definition="1" compartment="1" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_CARD_INSTANCE, OP_NOT, EffectSource() )
TFM_FilterPermanents(filter)
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Untap()
end
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY window_step="untap" />
</TRIGGERED_ABILITY>
- Pain Seer | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Inspired-Whenever Pain Seer becomes untapped, reveal the top card of your library and put that card into your hand. You lose life equal to its converted mana cost.]]></LOCALISED_TEXT>
<TRIGGER value="BECAME_UNTAPPED" simple_qualifier="self" />
return MTG():GetStep() == STEP_UPKEEP
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local card = EffectController():Library_GetTop()
if card ~= nil then
card:Reveal()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local card = EffectController():Library_GetTop()
if card ~= nil then
local cmc = card:GetConvertedManaCost()
card:PutInHand()
EffectController():LoseLife( cmc )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<AI_CUSTOM_SCORE zone="ZONE_BATTLEFIELD">
if EffectController():GetLifeTotal() >= 10 then
EffectSource():AddScore(600)
else
EffectSource():AddScore(-450)
end
</AI_CUSTOM_SCORE>
- Springleaf Drum | Open
- Code: Select all
<COST type="Tap" definition="0" compartment="1" query_tag="CARD_QUERY_CHOOSE_CREATURE_TAP" item_count="1" />
<COST_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
filter:Add( FE_IS_TAPPED, false )
</COST_DEFINITION>
<COST type="TapSelf" />
<PLAY_TIME_ACTION>
RSN_MarkManaAbilityStart()
local oPlayer = EffectController()
local oCard = EffectSource()
if (oPlayer ~= nil) then
oPlayer:BeginNewMultipleChoice()
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_W" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_U" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_B" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_R" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_G" )
oPlayer:AskMultipleChoiceQuestion( "MODE_CHOOSE_ONE", oCard )
end
</PLAY_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local nColour = EffectController():GetMultipleChoiceResult() + 1
if (nColour == COLOUR_BLACK) then
RSN_Produce( "{B}", 1 )
elseif (nColour == COLOUR_BLUE) then
RSN_Produce( "{U}", 1 )
elseif (nColour == COLOUR_GREEN) then
RSN_Produce( "{G}", 1 )
elseif (nColour == COLOUR_RED) then
RSN_Produce( "{R}", 1 )
elseif (nColour == COLOUR_WHITE) then
RSN_Produce( "{W}", 1 )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
RSN_EliminateExtraManaTokens()
RSN_MarkManaAbilityEnd()
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY window_step="upkeep" type="window" />
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="begin_combat" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_attackers" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" />
<AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" window_turn="their_turn" type="window" />
<AI_AVAILABILITY type="in_response" response_source="1" response_target="1" />
<AI_AVAILABILITY type="in_response" response_source="1" />
<AI_AVAILABILITY type="in_response" response_target="1" />
</ACTIVATED_ABILITY>
<STATIC_ABILITY resource_id="7">
<CONTINUOUS_ACTION layer="0">
RSN_ClearCanProduceMana()
RSN_MarkCanProduceMana( "{B}{G}{R}{U}{W}" )
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<TRIGGERED_ABILITY forced_skip="1" replacement_effect="1" resource_id="8">
<TRIGGER value="BEGINNING_OF_STEP" pre_trigger="1" />
<RESOLUTION_TIME_ACTION>
RSN_ClearProducedMana()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<STATIC_ABILITY>
<CONTINUOUS_ACTION layer="8">
local nDefaultColour = COLOUR_GREEN
local oCard = EffectSource():GetParent()
if (RSN_CheckSwitchToFallback( oCard )) then
local nColour = RSN_GetLastProducedColour()
local oCharacteristics = oCard:GetCurrentCharacteristics()
if (nColour ~= COLOUR_COLOURLESS) then
oCharacteristics:GrantAbility( nColour )
else
oCharacteristics:GrantAbility( nDefaultColour )
end
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<MANA_ABILITY resource_id="1">
<COST type="TapSelf" />
<PRODUCES amount="{W}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="2">
<COST type="TapSelf" />
<PRODUCES amount="{U}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="3">
<COST type="TapSelf" />
<PRODUCES amount="{B}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="4">
<COST type="TapSelf" />
<PRODUCES amount="{R}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="5">
<COST type="TapSelf" />
<PRODUCES amount="{G}" />
</MANA_ABILITY>
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_B" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_G" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_R" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_U" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_W" />
ps.card art probably wont be so great since art I cropped wasn't too big
- Attachments
-
- BornOfTheGodsCards.zip
- Kiora's follower,oresko sun guide,pain seer,springleaf drum,scry lands
- (689.01 KiB) Downloaded 1148 times
Re: BORN OF THE GODS - CARDS SPOILER
by thefiremind » 14 Jan 2014, 09:41
Not always true: if you have the patience to look everyday into the Daily Magic articles, you can find some already. And Oreskos Sun Guide is one of them.NeoAnderson wrote:Unfortunatelly until now there aren't HQ pics so it is just a preview.
Why did you set pre_trigger on Inspired? As far as I know, if the trigger isn't a replacement_effect/query, pre_trigger does nothing.
EDIT: Did anybody think about how to compute the "dual" devotion?
Rules say that hybrid mana counts only once, so the devotion to white and blue from a card that costs (I know there's no card with this cost ) should be 3. We can ChromaCount colorless mana and subtract it (sumomole discovered that), we are left with . If we sum up the ChromaCounts for white and blue we get 4, and that's exactly how many symbols we have... how can we understand that we have 1 that is wrongly counted twice?
Last edited by thefiremind on 14 Jan 2014, 13:10, edited 1 time in total.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: BORN OF THE GODS - CARDS SPOILER
by NeoAnderson » 14 Jan 2014, 13:10
Thx my friend, it seems i have not so much patience, i have update the Picture.thefiremind wrote:Not always true: if you have the patience to look everyday into the Daily Magic articles, you can find some already. And Oreskos Sun Guide is one of them.NeoAnderson wrote:Unfortunatelly until now there aren't HQ pics so it is just a preview.
Why did you set pre_trigger on Inspired? As far as I know, if the trigger isn't a replacement_effect/query, pre_trigger does nothing.
About the pre_trigger you're right i just used the code from another card i made but in that case i had the replacement_effect so i just miss to remove it here, i made the card quickly .
Are you sure it must be count just one time?thefiremind wrote:EDIT: Did anybody think about how to compute the "dual" devotion?
Rules say that hybrid mana counts only once, so the devotion to white and blue from a card that costs (I know there's no card with this cost ) should be 3. We can ChromaCount colorless mana and subtract it (sumomole discovered that), we are left with . If we sum up the ChromaCounts for white and blue we get 4, and that's exactly how many symbols we have... how can we understand that we have 1 that is wrongly counted twice?
Here is explained the opposite : http://wiki.mtgsalvation.com/article/Devotion (A permanent that costs adds two to your devotion to red and two to your devotion to green.)
Update : I can confirm to you the Hybrid Mana is counted twice, once for ecah color.
In Theros non ci sono esempi simili, ma i simboli di mana ibrido e altri simboli di mana colorato particolari contribuiscono comunque alla tua devozione a ognuno dei colori che includono. Ad esempio, un permanente che costa aggiunge due alla tua devozione al rosso e due alla tua devozione al verde.
Another official article here : http://www.wizards.com/magic/magazine/article.aspx?x=mtg/daily/feature/therosmechanics
So your example will be : Devotion to white = 2, Devotion to Blue = 2, Devotion to red = 2thefiremind wrote:EDIT: Did anybody think about how to compute the "dual" devotion?
Rules say that hybrid mana counts only once, so the devotion to white and blue from a card that costs
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: BORN OF THE GODS - CARDS SPOILER
by NeoAnderson » 14 Jan 2014, 13:36
I haven't checked all the cards you made but at a first look, there are some Syntax Mistakes, for example KIORA'S FOLLOWER ability is not a trigger but an activated ability. PAIN SEER ability doesn't need to check the Step..drleg3nd wrote:beat me to the punch i was bored at work so i worked on a few cards. here's code to chk out if i made any mistakes and cards with pics on zip.
- Kiora's Follower | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Untap another target permanent.]]></LOCALISED_TEXT>
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_PERMANENT_TO_UNTAP" definition="1" compartment="1" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_CARD_INSTANCE, OP_NOT, EffectSource() )
TFM_FilterPermanents(filter)
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Untap()
end
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY window_step="untap" />
</TRIGGERED_ABILITY>
- Pain Seer | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Inspired-Whenever Pain Seer becomes untapped, reveal the top card of your library and put that card into your hand. You lose life equal to its converted mana cost.]]></LOCALISED_TEXT>
<TRIGGER value="BECAME_UNTAPPED" simple_qualifier="self" />
return MTG():GetStep() == STEP_UPKEEP
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local card = EffectController():Library_GetTop()
if card ~= nil then
card:Reveal()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local card = EffectController():Library_GetTop()
if card ~= nil then
local cmc = card:GetConvertedManaCost()
card:PutInHand()
EffectController():LoseLife( cmc )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<AI_CUSTOM_SCORE zone="ZONE_BATTLEFIELD">
if EffectController():GetLifeTotal() >= 10 then
EffectSource():AddScore(600)
else
EffectSource():AddScore(-450)
end
</AI_CUSTOM_SCORE>you guys already know about the scry lands no need to showcase that.
- Springleaf Drum | Open
- Code: Select all
<COST type="Tap" definition="0" compartment="1" query_tag="CARD_QUERY_CHOOSE_CREATURE_TAP" item_count="1" />
<COST_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
filter:Add( FE_IS_TAPPED, false )
</COST_DEFINITION>
<COST type="TapSelf" />
<PLAY_TIME_ACTION>
RSN_MarkManaAbilityStart()
local oPlayer = EffectController()
local oCard = EffectSource()
if (oPlayer ~= nil) then
oPlayer:BeginNewMultipleChoice()
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_W" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_U" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_B" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_R" )
oPlayer:AddMultipleChoiceAnswer( "RSN_MODE_PRODUCE_G" )
oPlayer:AskMultipleChoiceQuestion( "MODE_CHOOSE_ONE", oCard )
end
</PLAY_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local nColour = EffectController():GetMultipleChoiceResult() + 1
if (nColour == COLOUR_BLACK) then
RSN_Produce( "{B}", 1 )
elseif (nColour == COLOUR_BLUE) then
RSN_Produce( "{U}", 1 )
elseif (nColour == COLOUR_GREEN) then
RSN_Produce( "{G}", 1 )
elseif (nColour == COLOUR_RED) then
RSN_Produce( "{R}", 1 )
elseif (nColour == COLOUR_WHITE) then
RSN_Produce( "{W}", 1 )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
RSN_EliminateExtraManaTokens()
RSN_MarkManaAbilityEnd()
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY window_step="upkeep" type="window" />
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="begin_combat" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_attackers" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" />
<AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" window_turn="their_turn" type="window" />
<AI_AVAILABILITY type="in_response" response_source="1" response_target="1" />
<AI_AVAILABILITY type="in_response" response_source="1" />
<AI_AVAILABILITY type="in_response" response_target="1" />
</ACTIVATED_ABILITY>
<STATIC_ABILITY resource_id="7">
<CONTINUOUS_ACTION layer="0">
RSN_ClearCanProduceMana()
RSN_MarkCanProduceMana( "{B}{G}{R}{U}{W}" )
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<TRIGGERED_ABILITY forced_skip="1" replacement_effect="1" resource_id="8">
<TRIGGER value="BEGINNING_OF_STEP" pre_trigger="1" />
<RESOLUTION_TIME_ACTION>
RSN_ClearProducedMana()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<STATIC_ABILITY>
<CONTINUOUS_ACTION layer="8">
local nDefaultColour = COLOUR_GREEN
local oCard = EffectSource():GetParent()
if (RSN_CheckSwitchToFallback( oCard )) then
local nColour = RSN_GetLastProducedColour()
local oCharacteristics = oCard:GetCurrentCharacteristics()
if (nColour ~= COLOUR_COLOURLESS) then
oCharacteristics:GrantAbility( nColour )
else
oCharacteristics:GrantAbility( nDefaultColour )
end
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<MANA_ABILITY resource_id="1">
<COST type="TapSelf" />
<PRODUCES amount="{W}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="2">
<COST type="TapSelf" />
<PRODUCES amount="{U}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="3">
<COST type="TapSelf" />
<PRODUCES amount="{B}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="4">
<COST type="TapSelf" />
<PRODUCES amount="{R}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="5">
<COST type="TapSelf" />
<PRODUCES amount="{G}" />
</MANA_ABILITY>
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_B" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_G" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_R" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_U" />
<TOKEN_REGISTRATION reservation="1" type="RSN_TOKEN_MANA_W" />
ps.card art probably wont be so great since art I cropped wasn't too big
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: BORN OF THE GODS - CARDS SPOILER
by NeoAnderson » 14 Jan 2014, 15:30
Another card from the new incoming set BORN OF THE GODS.
Card name : Archetype of Imagination
Expansion : Born of the Gods
Card name : Archetype of Imagination
Expansion : Born of the Gods
- Archetype of Imagination | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="ARCHETYPE_OF_IMAGINATION_9988771" />
<CARDNAME text="ARCHETYPE_OF_IMAGINATION" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Archetype of Imagination]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Archetype of Imagination]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Archetype of Imagination]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Archetype of Imagination]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Archetipo dell'Immaginazione]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Archetype of Imagination]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Archetype of Imagination]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Archetype of Imagination]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Archetype of Imagination]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="9988771" />
<ARTID value="9988771" />
<ARTIST name="Robbie Trevino" />
<CASTING_COST cost="{4}{U}{U}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA["Is it not the embodiment of our aspirations?"
-Prokopios, astronomer of Meletis]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA["Is it not the embodiment of our aspirations?"
-Prokopios, astronomer of Meletis]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA["Is it not the embodiment of our aspirations?"
-Prokopios, astronomer of Meletis]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA["Is it not the embodiment of our aspirations?"
-Prokopios, astronomer of Meletis]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA["Non è forse l'incarnazione delle nostre aspirazioni?"
-Filastrio, astronomo di Meletis]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA["Is it not the embodiment of our aspirations?"
-Prokopios, astronomer of Meletis]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA["Is it not the embodiment of our aspirations?"
-Prokopios, astronomer of Meletis]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA["Is it not the embodiment of our aspirations?"
-Prokopios, astronomer of Meletis]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA["Is it not the embodiment of our aspirations?"
-Prokopios, astronomer of Meletis]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Enchantment" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Human" />
<SUB_TYPE metaname="Wizard" />
<EXPANSION value="BOG" />
<RARITY metaname="U" />
<POWER value="3" />
<TOUGHNESS value="2" />
<TRIGGERED_ABILITY replacement_effect="1">
<TRIGGER value="STATE_BASED_EFFECTS">
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
filter:Add(FE_CHARACTERISTIC, OP_HAS, CHARACTERISTIC_FLYING)
filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam() )
if filter:CountStopAt(1) == 1 then
return true
end
</TRIGGER>
<FILTER filter_id="1">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam())
</FILTER>
<RESOLUTION_TIME_ACTION filter_id="1">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_FLYING, 0 )
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6" filter_id="1">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_FLYING, 0 )
end
</CONTINUOUS_ACTION>
<DURATION>
if EffectSource() ~= nil then
return (EffectSource():GetZone() ~= ZONE_BATTLEFIELD)
else
return true
end
</DURATION>
</TRIGGERED_ABILITY>
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Creatures you control have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Creatures you control have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Creatures you control have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Creatures you control have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Le creature che controlli hanno volare.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Creatures you control have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Creatures you control have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Creatures you control have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Creatures you control have flying.]]></LOCALISED_TEXT>
<FILTER filter_id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_CONTROLLER, OP_IS, EffectController())
</FILTER>
<CONTINUOUS_ACTION layer="6" filter_id="0">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_FLYING, 1 )
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Creatures your opponents control lose flying and can't have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Creatures your opponents control lose flying and can't have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Creatures your opponents control lose flying and can't have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Creatures your opponents control lose flying and can't have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Le creature controllate dai tuoi avversari perdono volare e non possono avere volare.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Creatures your opponents control lose flying and can't have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Creatures your opponents control lose flying and can't have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Creatures your opponents control lose flying and can't have flying.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Creatures your opponents control lose flying and can't have flying.]]></LOCALISED_TEXT>
<FILTER filter_id="1">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam())
</FILTER>
<CONTINUOUS_ACTION layer="6" filter_id="1">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_FLYING, 0 )
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<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>
Last edited by NeoAnderson on 14 Jan 2014, 15:53, edited 2 times in total.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: BORN OF THE GODS - CARDS SPOILER
by thefiremind » 14 Jan 2014, 15:33
You are still talking about the devotion to just one color, I'm talking about the "dual" devotion, as you can see in Ephara, God of the Polis.NeoAnderson wrote:Are you sure it must be count just one time?
From The Mechanics of Born of the Gods:
Your devotion to white and blue is the total number of mana symbols that are white or blue among the mana costs of permanents you control. So, if you control permanents with mana costs of , , and , your devotion to white and blue is five.
Hybrid mana symbols such as count toward both their colors but aren't counted twice.
Correct, but it will also be Devotion to white and blue = 3.NeoAnderson wrote:So your example will be : Devotion to white = 2, Devotion to Blue = 2, Devotion to red = 2
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: BORN OF THE GODS - CARDS SPOILER
by NeoAnderson » 14 Jan 2014, 15:52
OK I read the the exaplaination but at this point i think we will have trouble to understand when we have to reduce the double devotion value, because we cannot retrieve informations about the kind of mana who generated the single devotion value.thefiremind wrote:You are still talking about the devotion to just one color, I'm talking about the "dual" devotion, as you can see in Ephara, God of the Polis.NeoAnderson wrote:Are you sure it must be count just one time?
From The Mechanics of Born of the Gods:Your devotion to white and blue is the total number of mana symbols that are white or blue among the mana costs of permanents you control. So, if you control permanents with mana costs of , , and , your devotion to white and blue is five.
Hybrid mana symbols such as count toward both their colors but aren't counted twice.Correct, but it will also be Devotion to white and blue = 3.NeoAnderson wrote:So your example will be : Devotion to white = 2, Devotion to Blue = 2, Devotion to red = 2
There is just one condition where we can check the correct value : if i control a permanent with cost , my devotion to blue = 1 my devotion to white = 1, and also my devotion to blue and white is 1. This is the only case we can retrieve an useful information, because if we compare Converted mana cost with the summ of the single chroma count, we can see that CMC = 1, chroma count BLUE + WHITE = 2, so we can understand there is an hybrid mana so we can reduce the Blue an White devotion of 1.
This will not happen when we will have more complex combinations.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: BORN OF THE GODS - CARDS SPOILER
by RiiakShiNal » 14 Jan 2014, 16:13
Actually there are other combinations where we can figure out the real dual devotion, but there are still problems. For example we can correctly figure out dual devotion for a card with a casting cost like this: The reason we can figure this out is sumomole has shown that we can count how much colourless mana is in the cost by doing a ChromaCount for COLOUR_COLOURLESS which in this case would get us 3 at which point we take the CMC of 6 and take 3 out of it giving us a max dual devotion of 3 then we count and devotion add them together then take the Min of 3 and 6 and you get 3 (which is correct). This method, however, will not work for cards like Esper Stormblade which have 3 or more colours with hybrid mana in the cost (you can't tell which colours belong to the hybrid colour). This also would likely not work for cards like Reaper King that have hybrid colourless/coloured casting costs, though you can make a version that would work with cards like Spectral Procession (due to only having one colour mixed in with the colourless). Though it is possible to make a version that could do special processing for cards that give us problems by checking each card individually and first checking for special cases by CARDNAME then using a more generalized count if the specialized checks fail. Though all of these suggestions work by processing individual cards rather than by using a single filter to check all cards in a zone (as is done with single colour devotion).
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: 2185
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: BORN OF THE GODS - CARDS SPOILER
by drleg3nd » 14 Jan 2014, 17:54
Thx riiak for pointing out my mistake, I will correct..on another note has anybody worked on new gods ?
Re: BORN OF THE GODS - CARDS SPOILER
by sumomole » 14 Jan 2014, 21:38
in fact we could, just within the range of MTG, and thefiremind's example should belong to NeoAnderson's Age of Dodekatheon.RiiakShiNal wrote:Actually there are other combinations where we can figure out the real dual devotion, but there are still problems.
devotion is limited to permanent, so mana symbol is a constant, hybrid mana combinations of Magic are only four rule, at least until DotP2015.
the first is two-color, like Azor's Elocutors, it's very simple.
the second is three-color, like Esper Stormblade, it's symmetric, it must include a hybrid mana symbol by a pair of non-adjacent colors and a mono symbol its color in the middle.
the third is monochrome, like Spectral Procession, its converted mana cost equal to its colorless mana cost and must be twice its colored mana cost.
the last one is five-color, so far it only includes a card Reaper King.
following is the function for Flash and Snapcaster Mage in DotP2013, its original author is thefiremind, I'm just a little improvement, I think it could be modified to be used to count devotion.
- mana function 2013 | Open
- Code: Select all
HybridColourCombo = function(object)
local center = 0
local combo = 1
if PermanentColour(object) > 1 then
for i=1,5 do
if object:GetColour():Test( i ) ~= 0 then
if PermanentColour(object) ~= 3 or center ~= 1 then
combo = combo * i
end
center = center + 1
end
end
end
return combo
end
HybridCenterColour = function(object)
local center = 0
if PermanentColour(object) == 3 then
local combo = HybridColourCombo(object)
for i=1,5 do
if i * (i + 2) == combo then
center = i + 1
elseif i * (i + 3) == combo then
center = i + 4
end
end
if center > 5 then
center = center - 5
end
end
return center
end
GetCostOfColour = function(object, colour)
-- returns the amount of mana of the selected color in object's cost
local filter = Object():GetFilter()
filter:Clear()
filter:NotTargetted()
filter:SetCardInstance(object)
return filter:ChromaCount(colour)
end
GetCMCostString = function(object, index)
local cmc = object:GetConvertedManaCost()
local total_cmc = cmc - index
if cmc > 0 then
local string = ""
local amount = {}
local cost_count = 0
local hybrid_mana = 0
local coloured_mana = 0
for i=0,5 do
amount[i] = GetCostOfColour(object, i)
cost_count = cost_count + amount[i]
if i == 0 then
coloured_mana = cmc - amount[i]
end
end
if cost_count == cmc then
-- not hybrid color
for j=1,5 do
if amount[j] > 0 then
if PhyrexianManaCost(object, j) == 1 then
-- phyrexian color
string = string..PhyrexianManaString(j, amount[j])
else
string = string..CommonManaString(j, amount[j])
end
end
end
elseif cost_count > cmc then
-- hybrid color
hybrid_mana = cost_count - cmc
if coloured_mana > 0 then
local combo_colors = HybridColourCombo(object)
local center_color = HybridCenterColour(object)
if combo_colors > 1 then
string = string..HybridManaString(combo_colors, hybrid_mana)
end
if center_color > 0 then
string = string..CommonManaString(center_color, coloured_mana - hybrid_mana)
end
else
local n = index
if n < 0 then
n = 0
end
local symbolindex = math.ceil(n/2)
coloured_mana = (cmc/2 - symbolindex) * 2
if PermanentColour(object) == 1 then
for k=1,5 do
if amount[k] - symbolindex > 0 then
string = string..HybridManaString(20 + k, amount[k] - symbolindex)
end
end
else
for l=1,5 do
if (object:GetPlayer():CanAfford(CommonColourToString(l)) == 0 and symbolindex > 0) or (symbolindex + l > 5) then
symbolindex = symbolindex - 1
else
string = string..HybridColourToString(20 + l)
end
end
end
end
end
if total_cmc > coloured_mana then
string = "{"..(total_cmc-coloured_mana).."}"..string
end
return string
else
return "{0}"
end
end
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: BORN OF THE GODS - CARDS SPOILER
by drleg3nd » 14 Jan 2014, 23:13
hey guys i was working on a couple of cards, can anyone look them over to see if it's good to go.thx
- Hero of Iroas | Open
- Code: Select all
<TRIGGERED_ABILITY replacement_effect="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Aura spells you cast cost {1} less to cast.]]></LOCALISED_TEXT>
<TRIGGER value="CONSIDERED_FOR_CAST" simple_qualifier="controller" pre_trigger="1">
return TriggerObject():GetCardType():Test( ENCHANTMENT_TYPE_AURA )
</TRIGGER>
<RESOLUTION_TIME_ACTION>
if TriggerObject() ~= nil then
TriggerObject():DecreaseCost( 1 )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[|Heroic| — Whenever you cast a spell that targets Hero of Iroas, put a +1/+1 counter on Hero of Iroas.]]></LOCALISED_TEXT>
<TRIGGER value="SPELL_PLAYED" simple_qualifier="objectyoucontrol">
if LinkedDC():Get_Int(0) == 1 then
LinkedDC():Set_Int(0, 0)
return true
end
return false
</TRIGGER>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
EffectSource():AddCounters( MTG():PlusOnePlusOneCounters(), 1 )
end
</RESOLUTION_TIME_ACTION>
<AUTO_SKIP no_effect_source="1" />
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY linked_ability_group="1" replacement_effect="1">
<TRIGGER value="BECAME_TARGET_OF_SPELL" simple_qualifier="self">
if SecondaryPlayer() == EffectController() and SecondaryObject():WasCast() then
LinkedDC():Set_Int(0, 1)
end
return false
</TRIGGER>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY>
<TRIGGER value="BECAME_TARGET_OF_ABILITY" simple_qualifier="self">
if SecondaryPlayer() == EffectController() and SecondaryObject():WasCast() then
local refplayer = SecondaryObject():GetPlayer()
local Chest_Id = SecondaryObject():GetRef()
local chest = refplayer:PlayerDataChest():Get_Chest(Chest_Id)
if chest ~= nil then
local card = chest:Get_CardPtr(1)
if card ~= nil then
if SecondaryObject() == card then
return true
end
end
end
end
return false
</TRIGGER>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
EffectSource():AddCounters( MTG():PlusOnePlusOneCounters(), 1 )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
- Ephara, God of the Polis | Open
- Code: Select all
</STATIC_ABILITY>
<STATIC_ABILITY active_zone="ZONE_ANY">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[As long as your devotion to white and blue is less than seven, Ephara isn't a creature.]]></LOCALISED_TEXT>
<CONTINUOUS_ACTION layer="4">
if EffectSource() ~= nil then
local characteristics = EffectSource():GetCurrentCharacteristics()
local card_type = characteristics:CardType_GetWritable()
local filter = ClearFilter()
filter:Add( FE_IS_PERMANENT, true )
filter:Add( FE_CONTROLLER, OP_IS, EffectController())
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( ChromaCount(COLOUR_WHITE))
subfilter:Add( ChromaCount(COLOUR_BLUE))
if total < 7 then
card_type:Clear()
card_type:Add( CARD_TYPE_ENCHANTMENT )
end
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<TRIGGERED_ABILITY replacement_effect="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of each upkeep, if you had another creature enter the battlefield under your control last turn, draw a card.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_STEP">
if MTG():GetStep() == STEP_UPKEEP then
return EffectController():PlayerDataChest():Get_Int(5432) == MTG():GetTurnNumber()-1
end
return false
</TRIGGER>
<RESOLUTION_TIME_ACTION>
EffectController():DrawCards(1)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY linked_ability_group="1" replacement_effect="1">
<TRIGGER value="ZONECHANGE_END" simple_qualifier="another" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY">
if TriggerObject():GetCardType():Test( CARD_TYPE_CREATURE ) then
TriggerObject():GetPlayer():PlayerDataChest():Set_Int( 1285, MTG():GetTurnNumber() )
end
return false
</TRIGGER>
</TRIGGERED_ABILITY>
- Nefarious Burn | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Nefarious Burn deals 5 damage to target creature or planeswalker. If it is your turn, Scry 2.]]></LOCALISED_TEXT>
<SFX text="TARGET_FLAME_PLAY" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Set_Or()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
if PLW_FilterNameSet ~= nil then
PLW_FilterNameSet(filter, "PLANESWALKERS", true)
else
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER)
end
</TARGET_DEFINITION>
<TARGET tag="CARD_QUERY_CHOOSE_DEAL_5_DAMAGE" definition="0" compartment="0" count="1" />
<RESOLUTION_TIME_ACTION>
local target_creature = EffectDC():Get_Targets(0):Get_CardPtr(0)
local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if ( target_creature ~= nil ) then
EffectSourceLKI():DealDamageTo( 5, target_creature )
elseif ( target_player ~= nil ) then
EffectSourceLKI():DealDamageTo( 5, target_PLANESWALKER )
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
</SPELL_ABILITY>
Re: BORN OF THE GODS - CARDS SPOILER
by thefiremind » 14 Jan 2014, 23:25
I can't follow the whole code because it's quite long and complicated, but I see that you are using the card's color in your computation... as long as you deal with cards outside of the battlefield, it's fine (Painter's Servant wasn't working properly so we can forget about it, I think), but what happens if you try to run your functions with a Ghostflame Sliver on the battlefield, for example?sumomole wrote:following is the function for Flash and Snapcaster Mage in DotP2013, its original author is thefiremind, I'm just a little improvement, I think it could be modified to be used to count devotion.
Ephara's trigger needs my latest fix that you can find in the other topic. The problem is with her devotion count, which is wrong. That's what we are discussing here right now.drleg3nd wrote:hey guys i was working on a couple of cards, can anyone look them over to see if it's good to go.thx
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: BORN OF THE GODS - CARDS SPOILER
by sumomole » 14 Jan 2014, 23:54
it just classify by the number of card color, we can also get from the number of different mana symbol and don't care about card color.thefiremind wrote:I can't follow the whole code because it's quite long and complicated, but I see that you are using the card's color in your computation... as long as you deal with cards outside of the battlefield, it's fine (Painter's Servant wasn't working properly so we can forget about it, I think), but what happens if you try to run your functions with a Ghostflame Sliver on the battlefield, for example?
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: BORN OF THE GODS - CARDS SPOILER
by GrovyleXShinyCelebi » 15 Jan 2014, 00:26
I'm coming up with an idea for this, but I have a question: are there any official MTG cards with more than one type of hybrid mana (i.e. with both {B/R} and {B/G}), and if so, what are they and how many are there?
(in Duels 2014)
Duels 2012: viewtopic.php?f=109&t=12152
Duels 2013: viewtopic.php?f=109&t=12481&p=137458#p137458
Duels 2012: viewtopic.php?f=109&t=12152
Duels 2013: viewtopic.php?f=109&t=12481&p=137458#p137458
-
GrovyleXShinyCelebi - Posts: 294
- Joined: 12 Jun 2013, 18:23
- Has thanked: 14 times
- Been thanked: 37 times
Who is online
Users browsing this forum: No registered users and 34 guests