It is currently 09 Sep 2025, 02:17
   
Text Size

Distribution effects

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Distribution effects

Postby moomarc » 14 Feb 2013, 09:19

I've added Spoils of War and converted the other counter distributers we have, but of those only committed Spoils of War and Contagion because one is new and the other already had remAIDeck flagged.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Distribution effects

Postby moomarc » 14 Feb 2013, 17:21

Does the amount of counters remembered by Bounty of the Hunt include counters also added by multipliers like Doubling Season? I assume it does seeing as it's a replacement effect so the source of the counters is still the BotH, but I'm not certain.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Distribution effects

Postby friarsol » 14 Feb 2013, 17:27

moomarc wrote:Does the amount of counters remembered by Bounty of the Hunt include counters also added by multipliers like Doubling Season? I assume it does seeing as it's a replacement effect so the source of the counters is still the BotH, but I'm not certain.
Yep, BotH should see it put on 6 counters (because of Doubling Season etc) and remove the same amount at EoT Cleanup (as best as it can).
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Distribution effects

Postby friarsol » 15 Feb 2013, 03:05

moomarc wrote:Edit: Oh, Fiery Justice also doesn't seem to work. Can't select one of the players that have been targeted for damage distribution as the gain life target. So I can't even test whether the ruling would be applied about the player surviving if they would receive enough damage to die from the first part, then go above 0 life again due to the life gain part. Here's the script if anyone can think of an easy solution:
This looks like a bug with unique targets. I'll see if I can fix it up.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Distribution effects

Postby friarsol » 15 Feb 2013, 03:50

K Fiery Justice is in. The bug was introduced by the Target Same Controller pulling the already target objects outside the Unique Targets code block, and then passing that in. I'm not sure how long that's been in, but that would have caused other issues with cards that could target the same objects in the primary and sub abilities.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Distribution effects

Postby moomarc » 15 Feb 2013, 08:28

Thanks sol. I've also just checked in Bounty of the Hunt and Shambling Swarm. Wasn't too bad in the end, so you get your Alliances card afterall :D
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Distribution effects

Postby friarsol » 15 Feb 2013, 14:01

moomarc wrote:Thanks sol. I've also just checked in Bounty of the Hunt and Shambling Swarm. Wasn't too bad in the end, so you get your Alliances card afterall :D
Woooo.. Just took a look at the script. Did you try using the a similar altcost to Force of Will "SVar:AltCost:Cost$ PayLife<1> ExileFromHand<1/Card.Blue> | Description$ You may pay 1 life and exile a blue card from your hand rather than pay CARDNAME's mana cost." instead of a second SA line? I believe that's the standard way we handle alternate costs these days.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Distribution effects

Postby moomarc » 15 Feb 2013, 14:10

friarsol wrote:
moomarc wrote:Thanks sol. I've also just checked in Bounty of the Hunt and Shambling Swarm. Wasn't too bad in the end, so you get your Alliances card afterall :D
Woooo.. Just took a look at the script. Did you try using the a similar altcost to Force of Will "SVar:AltCost:Cost$ PayLife<1> ExileFromHand<1/Card.Blue> | Description$ You may pay 1 life and exile a blue card from your hand rather than pay CARDNAME's mana cost." instead of a second SA line? I believe that's the standard way we handle alternate costs these days.
I must have just picked a bad example and then convinced myself that altCost only worked for permanents. I'll fix now.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Distribution effects

Postby moomarc » 28 Mar 2013, 16:36

I need to clean my local copy and don't want to lose these scripts. It's the remaining distribution effect script conversions using DividedAsYouChoose for counters. I never submitted these scripts because the AI support isn't added yet for distributeed counters/prevention so the scripts need the RemAIDeck flag, but in their current form however, do not have the flag so I don't want to potentially break quest decks.

Elven Rite | Open
Code: Select all
Name:Elven Rite
ManaCost:1 G
Types:Sorcery
A:SP$ PutCounter | Cost$ 1 G | ValidTgts$ Creature | TgtPrompt$ Select target creature to distribute counters to | CounterType$ P1P1 | CounterNum$ 2 | TargetMin$ 1 | TargetMax$ 2 | DividedAsYouChoose$ 2 | SpellDescription$ Distribute two +1/+1 counters among one or two target creatures.
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/elven_rite.jpg
Oracle:Distribute two +1/+1 counters among one or two target creatures.
SetInfo:STH Uncommon
Jugan, the Rising Star | Open
Code: Select all
Name:Jugan, the Rising Star
ManaCost:3 G G G
Types:Legendary Creature Dragon Spirit
PT:5/5
K:Flying
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigPutCounter | OptionalDecider$ TriggeredCardController | TriggerController$ TriggeredCardController | TriggerDescription$ When CARDNAME is put into a graveyard from the battlefield, you may distribute five +1/+1 counters among any number of target creatures.
SVar:TrigPutCounter:AB$ PutCounter | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature to distribute counters to | CounterType$ P1P1 | CounterNum$ 5 | TargetMin$ 1 | TargetMax$ 5 | DividedAsYouChoose$ 5
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/jugan_the_rising_star.jpg
Oracle:Flying\nWhen Jugan, the Rising Star dies, you may distribute five +1/+1 counters among any number of target creatures.
SetInfo:CHK Rare
Wurmskin Forger | Open
Code: Select all
Name:Wurmskin Forger
ManaCost:5 G G
Types:Creature Elf Warrior
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPutCounter | TriggerDescription$ When CARDNAME enters the battlefield, distribute three +1/+1 counters among one, two, or three target creatures.
SVar:TrigPutCounter:AB$ PutCounter | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature to distribute counters to | CounterType$ P1P1 | CounterNum$ 3 | TargetMin$ 1 | TargetMax$ 3 | DividedAsYouChoose$ 3
SVar:RemAIDeck:True
SVar:PlayMain1:TRUE
SVar:Picture:http://www.wizards.com/global/images/magic/general/wurmskin_forger.jpg
Oracle:When Wurmskin Forger enters the battlefield, distribute three +1/+1 counters among one, two, or three target creatures.
SetInfo:MRD Common
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Distribution effects

Postby myk » 28 Mar 2013, 17:50

It's on my list to implement a card data overlay in the userDir. I thought it would be useful for non-devs who are contributing cards. Would that be useful for you as well when you are implementing cards, or is it easier for you to just work directly in the svn tree? If it's useful for you, I can bump it up in the priority list.
myk
 
Posts: 439
Joined: 17 Jan 2013, 02:39
Location: California
Has thanked: 38 times
Been thanked: 57 times

Re: Distribution effects

Postby moomarc » 28 Mar 2013, 18:09

myk wrote:It's on my list to implement a card data overlay in the userDir. I thought it would be useful for non-devs who are contributing cards. Would that be useful for you as well when you are implementing cards, or is it easier for you to just work directly in the svn tree? If it's useful for you, I can bump it up in the priority list.
I wouldn't bother bumping it up for me. It would be a convenience on occasion, but I think that I'll probably still end up developing directly in the svn tree generally to make sure I don't miss script fixes etc (and I tend to have a short, easily distracted memory). So I'll work in svn tree, then if nothing seems to be working I normally just dump it in my not-quite-working-scripts folder. This feature will likely be used predominantly for custom cards and half-implemented cards. So keep your current priorities I think. Thanks for the offer though. Its always appreciated. :)
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 30 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 30 users online :: 0 registered, 0 hidden and 30 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 30 guests

Login Form