|
Post by okniwy on Aug 9, 2020 5:35:53 GMT
I'm currently translating Duel Masters cards into Magic the Gathering cards, and have hit a snag with a certain Keyword mechanic. The implementation of Mugencrime that I would like to go with includes a mana symbol matching the card's color identity inside the reminder text, but not outside of it. i currently have it matched to "Infinite crime <number>" with the reminder text up to the mana symbol as I tried to use an if/then/else statement calling on card.color, but am being told by the console that the card has no member 'color'. I tried finding the correct syntax, but am lost.
|
|
SirnightNano
1/1 Squirrel
Posts: 92
Favorite Card: Thopter Spy Network
Color Alignment: White, Blue, Red
|
Post by SirnightNano on Aug 9, 2020 12:51:33 GMT
The member you need to reference is {card.card_color}
|
|
|
Post by okniwy on Aug 10, 2020 1:58:27 GMT
Thank you. For the intended use I only have it checking against Blue and Black and returning [U/B] for anything else, but I'm sure I can do some work to code something that can return for any color combination. A simple {color_to_mana} operation alone doesn't work here because multicolored cards return two symbols and formatting text, such as "U, B, multicolored, horizontal".
|
|
Sanfonier of the Night
7/7 Elemental
Posts: 399
Favorite Card: The Prismatic Bridge
Favorite Set: War of the Spark
Color Alignment: White, Blue, Black, Red, Green, Colorless
|
Post by Sanfonier of the Night on Aug 10, 2020 2:07:50 GMT
I need something like this I need to reference a number as a generic mana cost. Arcane shield 2 (This permanent can’t be the target of spells or abilities your opponents control, unless your opponents pay an additional {2}.)
|
|