It is currently 29 Oct 2025, 00:49
   
Text Size

statically assigning types

Post MTG Forge Related Programming Questions Here

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

statically assigning types

Postby slapshot5 » 09 May 2011, 21:31

r8439 - Just a heads up:

I've implemented a way for types to be granted statically.

You can use:
Types=type1[,type2][,type3][,...]

in the keyword spot of stPump, just like you use SVar= to define statically pumped abilities.

Currently, it only handles adding types "in addition to". See Urborg, Tomb of Yawgmoth for an example.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: statically assigning types

Postby Hellfish » 10 May 2011, 06:10

Disregard | Open
Okay, first off, I don't know the stPump code that well, but shouldn't this change let all the "ranges" (like stPumpAll/Self/Enchanted/Equipped) assign types? I ask because I tried to implement Silverskin Armor like so:
Code: Select all
Name:Silverskin Armor
ManaCost:2
Types:Artifact Equipment
Text:no text
K:eqPump 2:+1/+1
K:stPumpEquipped:Creature:0/0/Types=Artifact:no Condition:Equipped creature gets +1/+1 and is an artifact in addition to its other types.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/silverskin_armor.jpg
End
When equipped to an Abbey Matron, the only result is that the Abbey Matron gets "Types=Artifact" in its text box.

EDIT: Turns out making sure you update to the actual latest revision is a good idea. :oops: Sorry about that!
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


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 26 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 26 users online :: 0 registered, 0 hidden and 26 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 26 guests

Login Form