It is currently 29 Oct 2025, 07:05
   
Text Size

Granting abilities with stPump

Post MTG Forge Related Programming Questions Here

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

Granting abilities with stPump

Postby 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:

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
The word "Pump" can be anything (just like for the Trigger and DB system).
Any comments or suggestions?
Last edited by Sloth on 01 Feb 2011, 21:34, edited 1 time in total.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Granting abilities with stPump

Postby Rob Cashwalker » 01 Feb 2011, 16:57

Precisely as I intended.
The Force will be with you, Always.
User avatar
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

Postby 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

Postby 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
User avatar
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

Postby Sloth » 01 Feb 2011, 17:40

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?
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.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Granting abilities with stPump

Postby 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
User avatar
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

Postby 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!
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

Re: Granting abilities with stPump

Postby Sloth » 01 Feb 2011, 20:45

Hellfish wrote:Maybe being able to specify a list of SVars to "pump" as well would help that, both subabilities and Count$'s?
Yes that would be possible. I have some ideas how to handle that.

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
Just be sure to give the SVar to copy a unique name not to overwrite other SVar's.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Granting abilities with stPump

Postby 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
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Granting abilities with stPump

Postby 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.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 8 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 8 guests

Login Form