Propaganda
by mtgrares
Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins
Propaganda
by DennisBergkamp » 03 Jan 2010, 00:26
I got Propaganda working, sort of.
The problem is that currently it only seems to work AFTER attackers have been declared (if the cost isn't paid, the attacker is removed from combat and untaps).
Is this a big deal?
The problem is that currently it only seems to work AFTER attackers have been declared (if the cost isn't paid, the attacker is removed from combat and untaps).
Is this a big deal?
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Propaganda
by silly freak » 03 Jan 2010, 00:55
for cards like Preeminent Captain, for sure. I would skip it until it works better - this is a hard one, i guess
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
Re: Propaganda
by DennisBergkamp » 03 Jan 2010, 01:03
Actually it wouldn't be an issue for Preeminent Captain, since the check is done after all Propaganda checks.
But still, the Preeminent Captain would tap, then untap (and removed from combat) if the cost isn't paid, so I dunno if it's worth adding or not. Ideally the "pay x" for Propaganda would pop up RIGHT after attempting to have a creature attack... and the creature wouldn't even attack if the cost isn't paid.
But still, the Preeminent Captain would tap, then untap (and removed from combat) if the cost isn't paid, so I dunno if it's worth adding or not. Ideally the "pay x" for Propaganda would pop up RIGHT after attempting to have a creature attack... and the creature wouldn't even attack if the cost isn't paid.
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Propaganda
by Rob Cashwalker » 03 Jan 2010, 01:21
It may not be a problem, but the method of how you got it to require mana payment out of the blue might be applicable to X-mana spells....
The Force will be with you, Always.
-

Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Propaganda
by DennisBergkamp » 03 Jan 2010, 02:58
Hmm, perhaps. I'm basically doing the same thing for (Cumulative) Upkeep / Echo.
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Propaganda
by Mr.Chaos » 03 Jan 2010, 06:13
OOH! I see a Hurricane on the horizon!Rob Cashwalker wrote:It may not be a problem, but the method of how you got it to require mana payment out of the blue might be applicable to X-mana spells....
= coder at work, according to a coder.It does explain some of the bugs. - Mr.Chaos
- Tester
- Posts: 625
- Joined: 06 Sep 2008, 08:15
- Has thanked: 0 time
- Been thanked: 0 time
Re: Propaganda
by Rob Cashwalker » 03 Jan 2010, 21:07
Don't get your hopes up just yet... I was just curious if the method Dennis used to arbitrarily require mana payment might be usable for something else. Apparently, he uses it for other things in the first place, so, sure, it may be useful.OOH! I see a Hurricane on the horizon!
The Force will be with you, Always.
-

Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Propaganda
by Mr.Chaos » 04 Jan 2010, 07:08
That's the thing with hurricanes, you never can quite tell what path they take.
Oh, well. I will wait...
Oh, well. I will wait...
= coder at work, according to a coder.It does explain some of the bugs. - Mr.Chaos
- Tester
- Posts: 625
- Joined: 06 Sep 2008, 08:15
- Has thanked: 0 time
- Been thanked: 0 time
Re: Propaganda
by Marek14 » 04 Jan 2010, 07:59
X spells are definitely needed, especially with multikicker coming up in WWK.
Re: Propaganda
by Vecc » 04 Jan 2010, 08:46
I've always thought this could be done in a way similar to what is done with Chandra's -X ability: a prompt with options ranging from 0 to whatever is the max amount of mana you have in your manapool to invest into the X cost (after deducing any other mandatory costs, like RR for Molten Disaster or RRR for a kicked one), then assigning that value to the variable (I don't really know if the code works like that, but it seems like it). Are there complications behind this?
Re: Propaganda
by Marek14 » 04 Jan 2010, 10:24
Alternate way would be a list ranging from 0 to 9, with a last option "+10" - that would lead to another list with 11-19 and "+10", etc.Vecc wrote:I've always thought this could be done in a way similar to what is done with Chandra's -X ability: a prompt with options ranging from 0 to whatever is the max amount of mana you have in your manapool to invest into the X cost (after deducing any other mandatory costs, like RR for Molten Disaster or RRR for a kicked one), then assigning that value to the variable (I don't really know if the code works like that, but it seems like it). Are there complications behind this?
Re: Propaganda
by DennisBergkamp » 04 Jan 2010, 17:07
I know Zerker started adding in some X cost functionality... but I guess he's been busy lately.
It's probably possible to do it that way right now, I don't really see any complications either. But it's a little bit ugly...Vecc wrote:I've always thought this could be done in a way similar to what is done with Chandra's -X ability: a prompt with options ranging from 0 to whatever is the max amount of mana you have in your manapool to invest into the X cost (after deducing any other mandatory costs, like RR for Molten Disaster or RRR for a kicked one), then assigning that value to the variable (I don't really know if the code works like that, but it seems like it). Are there complications behind this?
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Propaganda
by Marek14 » 04 Jan 2010, 20:34
I think that the UI part can be solved later. If it can work, people can start making cards.DennisBergkamp wrote:I know Zerker started adding in some X cost functionality... but I guess he's been busy lately.It's probably possible to do it that way right now, I don't really see any complications either. But it's a little bit ugly...Vecc wrote:I've always thought this could be done in a way similar to what is done with Chandra's -X ability: a prompt with options ranging from 0 to whatever is the max amount of mana you have in your manapool to invest into the X cost (after deducing any other mandatory costs, like RR for Molten Disaster or RRR for a kicked one), then assigning that value to the variable (I don't really know if the code works like that, but it seems like it). Are there complications behind this?
Re: Propaganda
by zerker2000 » 05 Jan 2010, 03:06
Very true, school...DennisBergkamp wrote:I know Zerker started adding in some X cost functionality... but I guess he's been busy lately.
My idea was actually simple: in PayManaCost, if you pay everything except for X, have another input which adds all mana tapped to X until you click OK.
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
- zerker2000
- Programmer
- Posts: 569
- Joined: 09 May 2009, 21:40
- Location: South Pasadena, CA
- Has thanked: 0 time
- Been thanked: 0 time
Re: Propaganda
by Marek14 » 05 Jan 2010, 08:13
Technically, though, the correct way to cast spells is to select X before you pay. See Thrive, for example.zerker2000 wrote:Very true, school...DennisBergkamp wrote:I know Zerker started adding in some X cost functionality... but I guess he's been busy lately..
My idea was actually simple: in PayManaCost, if you pay everything except for X, have another input which adds all mana tapped to X until you click OK.
16 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 12 guests
