Page 1 of 1

Text: (field) in card scripts

PostPosted: 21 Feb 2013, 20:22
by Max mtg
I have found some 290 cards with some phrases entered under the 'Text:' statement.

What do these mean? How are they currently used? Is it safe to discard them?

Re: Text: (field) in card scripts

PostPosted: 21 Feb 2013, 20:32
by friarsol
This is generic card text that is placed either first or last in the CardDetailPanel (I can't remember the exact location, I haven't been in that code in a while :wink: ). It's generally some subset of the Oracle text that isn't covered by Keywords or Spells/Abilities. I've been gunning to get rid of the Text field for a while, but I'm not sure if we're quite ready to do it yet. It is annoying to have so many cards with Text:no text on them.

Re: Text: (field) in card scripts

PostPosted: 21 Feb 2013, 20:50
by Max mtg
friarsol wrote:This is generic card text that is placed either first or last in the CardDetailPanel (I can't remember the exact location, I haven't been in that code in a while :wink: ). It's generally some subset of the Oracle text that isn't covered by Keywords or Spells/Abilities. I've been gunning to get rid of the Text field for a while, but I'm not sure if we're quite ready to do it yet. It is annoying to have so many cards with Text:no text on them.
I am moving all the card parsing to CardRulesReader, so that all the raw texts for triggers, abilities etc will be stored in CardRules (or a matching face). Cards will have reference to CardRules (Tokens will have CardRules created for them without CardPrinted instances)
So.. looks like it is a good day to kill all those "Text:"s, because oracle texts will become avaliable for Cards... or at least make that field totally optional.

Re: Text: (field) in card scripts

PostPosted: 21 Feb 2013, 21:06
by friarsol
Max mtg wrote:So.. looks like it is a good day to kill all those "Text:"s, because oracle texts will become avaliable for Cards... or at least make that field totally optional.
Sounds good to me. I haven't noticed any issues when scripting minimal scripts without the Text field. So I'm happy with it being a non-required field.