Granting abilities with stPump
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
10 posts
• Page 1 of 1
Granting abilities with stPump
by Sloth » 01 Feb 2011, 16:55
I've just made a first draft to implement cards like Armor Sliver. I used a reference to a SVar which contains the ability. The spellAbility granted has the type "Temporary" and will be removed every status check. Example:
Any comments or suggestions?
- Code: Select all
Name:Armor Sliver
ManaCost:2 W
Types:Creature Sliver
Text:no text
PT:2/2
K:stPumpAll:Creature.Sliver:0/0/SVar=Pump:no Condition:All Sliver creatures have "2 This creature gets +0/+1 until end of turn."
SVar:Pump:AB$Pump | Cost$ 2 | NumDef$ +1 | SpellDescription$ CARDNAME gets +0/+1 until end of turn.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/armor_sliver.jpg
End
Any comments or suggestions?
Last edited by Sloth on 01 Feb 2011, 21:34, edited 1 time in total.
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Granting abilities with stPump
by Rob Cashwalker » 01 Feb 2011, 16:57
Precisely as I intended.
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: Granting abilities with stPump
by friarsol » 01 Feb 2011, 17:07
Looks good. I just checked and didn't notice any cards that grant abilities with limited uses (like Rootwalla) as a static effect which is the strangest interaction I can think of between the temporariness of the AB.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Granting abilities with stPump
by Hellfish » 01 Feb 2011, 17:32
Not sure how to best phrase this... Is it recursive? I.e. can it grab eventual other SVars referenced by the ability, say for a subability?
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-

Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Granting abilities with stPump
by Sloth » 01 Feb 2011, 17:40
I guess subabilities should work, since they are created together with the ability. XCount SVar's will not work, since they won't get copied onto the affected card.Hellfish wrote:Not sure how to best phrase this... Is it recursive? I.e. can it grab eventual other SVars referenced by the ability, say for a subability?
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Granting abilities with stPump
by Hellfish » 01 Feb 2011, 17:44
Maybe being able to specify a list of SVars to "pump" as well would help that, both subabilities and Count$'s?
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-

Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Granting abilities with stPump
by lazylockie » 01 Feb 2011, 20:25
So even stuff like Necrotic Sliver would work now? Nice!
On a side note, this makes one step closer to Koth of the Hammer with triggers!
On a side note, this makes one step closer to Koth of the Hammer with triggers!
- lazylockie
- Posts: 508
- Joined: 13 Jul 2010, 22:44
- Has thanked: 74 times
- Been thanked: 15 times
Re: Granting abilities with stPump
by Sloth » 01 Feb 2011, 20:45
Yes that would be possible. I have some ideas how to handle that.Hellfish wrote:Maybe being able to specify a list of SVars to "pump" as well would help that, both subabilities and Count$'s?
EDIT: This feature is also complete. If the SVar specified in the keyword section is no ability it will be copied as an SVar to the affected card.
Example:
- Code: Select all
Name:Magma Sliver
ManaCost:3 R
Types:Creature Sliver
Text:no text
PT:3/3
K:stPumpAll:Sliver:0/0/SVar=Pump & SVar=SliversOnBattlefield:no Condition:All Slivers have "T: Target Sliver creature gets +X/+0 until end of turn, where X is the number of Slivers on the battlefield."
SVar:Pump:AB$Pump | Cost$ T | ValidTgts$ Creature.Sliver | NumAtt$ +SliversOnBattlefield | SpellDescription$ Target Sliver creature gets +X/+0 until end of turn, where X is the number of Slivers on the battlefield.
SVar:SliversOnBattlefield:Count$TypeOnBattlefield.Sliver
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/magma_slive.jpg
End
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Granting abilities with stPump
by Zirbert » 03 Feb 2011, 02:47
This is terrific. I had been looking longingly at Necrotic Sliver, but didn't see a way to make it work before now. Thanks to all involved!
-Zirbert
-Zirbert
Re: Granting abilities with stPump
by Rob Cashwalker » 03 Feb 2011, 03:42
Now just need to make the same theory work for AB$Pump
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
10 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests