It is currently 10 May 2025, 21:18
   
Text Size

Propaganda/Elephant Grass

Moderator: CCGHQ Admins

Propaganda/Elephant Grass

Postby 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
sadlyblue
 
Posts: 175
Joined: 06 Feb 2012, 13:18
Has thanked: 18 times
Been thanked: 16 times

Re: Propaganda/Elephant Grass

Postby 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...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Propaganda/Elephant Grass

Postby 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?
sadlyblue
 
Posts: 175
Joined: 06 Feb 2012, 13:18
Has thanked: 18 times
Been thanked: 16 times

Re: Propaganda/Elephant Grass

Postby Eglin » 28 Mar 2012, 13:17

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?
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.

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.
User avatar
Eglin
Programmer
 
Posts: 195
Joined: 01 Mar 2012, 14:44
Has thanked: 39 times
Been thanked: 22 times

Re: Propaganda/Elephant Grass

Postby 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.
sadlyblue
 
Posts: 175
Joined: 06 Feb 2012, 13:18
Has thanked: 18 times
Been thanked: 16 times

Re: Propaganda/Elephant Grass

Postby thefiremind » 28 Mar 2012, 16:04

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.
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).
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Propaganda/Elephant Grass

Postby 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?
sadlyblue
 
Posts: 175
Joined: 06 Feb 2012, 13:18
Has thanked: 18 times
Been thanked: 16 times

Re: Propaganda/Elephant Grass

Postby thefiremind » 28 Mar 2012, 17:56

sadlyblue wrote:and have you tried, after overriding the spell from the hand, remove it from game or put in graveyard?
No, my aim was to forbid playing spells, so I didn't need to move cards.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 11 guests


Who is online

In total there are 11 users online :: 0 registered, 0 hidden and 11 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 11 guests

Login Form