Devotion Dicussion

For all your questions regarding Image Card Coding.
Please read the Image Posting Guideline & Index before posting in this forum.
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.
Post Reply
KF1
Posts: 1952
Joined: Tue Apr 06, 2010 7:04 pm

Devotion Dicussion

Post by KF1 »

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.
excessum
Posts: 220
Joined: Wed Jan 16, 2013 5:03 am
Contact:

Re: Devotion Dicussion

Post by excessum »

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.
William Ward
Posts: 211
Joined: Mon Sep 26, 2011 11:29 am

Re: Devotion Dicussion

Post by William Ward »

Does it work?
pankdm
Posts: 50
Joined: Tue Sep 17, 2013 6:34 am

Re: Devotion Dicussion

Post by pankdm »

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.
William Ward
Posts: 211
Joined: Mon Sep 26, 2011 11:29 am

Re: Devotion Dicussion

Post by William Ward »

Awesome hope they get coded soon :P
sandman423
Posts: 739
Joined: Thu Sep 10, 2009 8:59 pm

Re: Devotion Dicussion

Post by sandman423 »

It doesn't work....The Lord comes into play but the Harpies don't show up.
kevlahnota
Posts: 618
Joined: Tue Feb 08, 2011 3:00 pm
Location: Philippines
Contact:

Re: Devotion Dicussion

Post by kevlahnota »

sandman423 wrote:It doesn't work....The Lord comes into play but the Harpies don't show up.
can you try this:

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]
Post Reply