Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Programming Talk



Propaganda/Elephant Grass
Moderator: CCGHQ Admins
Propaganda/Elephant Grass
by sadlyblue » 28 Mar 2012, 09:01
Hi,
I'm making a deck using Elephant Grass, the rest is quite done, but i'm having trouble how to start coding this.
Has anyone sucessuflly coded one of these? If so, can you share it?
Thanks
I'm making a deck using Elephant Grass, the rest is quite done, but i'm having trouble how to start coding this.
Has anyone sucessuflly coded one of these? If so, can you share it?
Thanks
Re: Propaganda/Elephant Grass
by thefiremind » 28 Mar 2012, 09:22
The problem with this card is the word "you". You can set the characteristic on a creature that prevents it from attacking, you can even set the characteristic on a player that prevents him from attacking with any creature, but there's no way to tell "you can attack everyone, except for that player". This has relevance when there are more than 2 players.
< 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: 722 times
Re: Propaganda/Elephant Grass
by sadlyblue » 28 Mar 2012, 11:58
How about a trigger, that if your attacked, and if the player doesn't pay it uses something like Maze of Ith to remove it from combat.
Would a pre-trigger on attackers_declared prevent triggers that happen from a creature attacking?
Would a pre-trigger on attackers_declared prevent triggers that happen from a creature attacking?
Re: Propaganda/Elephant Grass
by Eglin » 28 Mar 2012, 13:17
It wouldn't prevent subsequent triggers, no. Not unless you tried to override the trigger. But some things can't be overridden without game-breaking bugs. For example, you can't simply override a spell being cast - it's illogical, and the game doesn't know how to handle it. I suspect, although I haven't tried, that overriding the attackers_declared trigger would fail in a spectacular fashion.sadlyblue wrote:How about a trigger, that if your attacked, and if the player doesn't pay it uses something like Maze of Ith to remove it from combat.
Would a pre-trigger on attackers_declared prevent triggers that happen from a creature attacking?
You could try to Blink the attacking creatures, but then you've got to figure a way to avoid triggering their come-into-play triggers after the combat phase.
Re: Propaganda/Elephant Grass
by sadlyblue » 28 Mar 2012, 14:08
Thank you guys, for the insights.
You saved me a lot of testing hours, for nothing.
Anyway, if i have another idea, i'll try. In the meanwhile, i'll replace for another card. I am trying the Legacy Enchantress btw.
You saved me a lot of testing hours, for nothing.
Anyway, if i have another idea, i'll try. In the meanwhile, i'll replace for another card. I am trying the Legacy Enchantress btw.
Re: Propaganda/Elephant Grass
by thefiremind » 28 Mar 2012, 16:04
Just to provide some more information: I actually did, in order to suppress eventual casts from graveyards when Ethersworn Canonist is out. If you override a spell cast from the hand, the card remains mid-air in your hand and it bugs the match, but in the graveyard it doesn't do any harm (as far as I have seen).Eglin wrote:For example, you can't simply override a spell being cast - it's illogical, and the game doesn't know how to handle it.
< 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: 722 times
Re: Propaganda/Elephant Grass
by sadlyblue » 28 Mar 2012, 16:41
good to know.
and have you tried, after overriding the spell from the hand, remove it from game or put in graveyard?
and have you tried, after overriding the spell from the hand, remove it from game or put in graveyard?
Re: Propaganda/Elephant Grass
by thefiremind » 28 Mar 2012, 17:56
No, my aim was to forbid playing spells, so I didn't need to move cards.sadlyblue wrote:and have you tried, after overriding the spell from the hand, remove it from game or put in graveyard?
< 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: 722 times
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 11 guests