Card.AddMonsterAttribute
Source Code | Usage Examples | Card Functions
Transforms the provided card into a monster. Must be completed by calling Card.AddMonsterAttributeComplete after the card has been moved to the Monster Zone. The card's properties reset to their original values when it is flipped face-down, becomes attached as Xyz material, or sent to the hand, Deck, GY, or banishment.
Signature
Card.AddMonsterAttribute(Card c, int extra_type, [int attribute, int race, int level, int atk, int def]) → nil
c:AddMonsterAttribute(extra_type,attribute,race,level,atk,def)Parameters
Card
cThe card that will be turned into a monster.
int
extra_typeComposite CardType value to add to the card's current type, in addition to
TYPE_MONSTER.int
attributeOptional.
Composite MonsterAttribute value to add to the card's attribute value in the database.
int
raceOptional.
Composite MonsterRace to add to the card's race value in the database.
int
levelOptional.
A value to set as the monster's level instead of the card's level value in the database.
int
atkOptional.
A value to set as the monster's original ATK instead of the card's ATK value in the database.
int
defOptional.
A value to set as the monster's original DEF instead of the card's DEF value in the database.