I think Devotion can be coded as for each [color permenant -token] = effect.
Lets test this out:
[card]
name=Abhorrent Overlord
abilities=flying
auto=foreach(*[black,-token]|myBattlefield) token(Harpy,creature harpy, 1/1,black,flying)
auto=@each my upkeep:sacrifice notatarget(creature|myBattlefield)
text=Flying. -- When Abhorrent Overlord enters the battlefield, put a number of 1/1 black Harpy creature tokens with flying onto the battlefield equal to your devotion to black. (Each {B} in the mana costs of permanents you control counts toward your devotion to black.) --
At the beginning of your upkeep, sacrifice a creature.
mana={5}{B}{B}
type=Creature
subtype=Demon
power=6
toughness=6
[/card]
Edit: This code doesn't account for permenants with more than one (B} in manacost. Back to the drawing board...
I appreciate any feedback.
Devotion Dicussion
Forum rules
DO NOT POST BUG REPORT IN THIS FORUM !!
Please read carefully the forum rules related to the card coding section : viewtopic.php?f=21&t=1545
All post will be edited to follow forum rules.
DO NOT POST BUG REPORT IN THIS FORUM !!
Please read carefully the forum rules related to the card coding section : viewtopic.php?f=21&t=1545
All post will be edited to follow forum rules.
Re: Devotion Dicussion
I am quite sure that it is impossible to count coloured mana costs with the current keywords else stuff like the chroma ability would be in already. Even if you know the coloured mana cost of a card, you would still need a method to sum them up over all the permanents ie. count {b} over (*|mybattlefield).
I am just beginning to study the source code of Wagic and the above two changes looks possible in the engine, just that the necessary keywords are not coded.
I am just beginning to study the source code of Wagic and the above two changes looks possible in the engine, just that the necessary keywords are not coded.
Re: Devotion Dicussion
Devotion mechanic was added to source code (see grey merchant of asphodel as en example of usage) and seems to work.. But cards were not coded yet.
-
- Posts: 211
- Joined: Mon Sep 26, 2011 11:29 am
Re: Devotion Dicussion
Awesome hope they get coded soon
-
- Posts: 806
- Joined: Thu Sep 10, 2009 8:59 pm
Re: Devotion Dicussion
It doesn't work....The Lord comes into play but the Harpies don't show up.
-
- Posts: 619
- Joined: Tue Feb 08, 2011 3:00 pm
- Location: Philippines
- Contact:
Re: Devotion Dicussion
can you try this:sandman423 wrote:It doesn't work....The Lord comes into play but the Harpies don't show up.
Code: Select all
[card]
name=Abhorrent Overlord
abilities=flying
auto=token(Harpy,creature harpy, 1/1,black,flying)*type:manaB
auto=@each my upkeep:sacrifice notatarget(creature|myBattlefield)
text=Flying. -- When Abhorrent Overlord enters the battlefield, put a number of 1/1 black Harpy creature tokens with flying onto the battlefield equal to your devotion to black. (Each {B} in the mana costs of permanents you control counts toward your devotion to black.) --
At the beginning of your upkeep, sacrifice a creature.
mana={5}{B}{B}
type=Creature
subtype=Demon
power=6
toughness=6
[/card]
Optimized Android Images - up to Aether Revolt
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC