Text: (field) in card scripts
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
4 posts
• Page 1 of 1
Text: (field) in card scripts
by Max mtg » 21 Feb 2013, 20:22
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?
What do these mean? How are they currently used? Is it safe to discard them?
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Text: (field) in card scripts
by friarsol » 21 Feb 2013, 20:32
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
). 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.

- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Text: (field) in card scripts
by Max mtg » 21 Feb 2013, 20:50
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)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). 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.
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.
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Text: (field) in card scripts
by friarsol » 21 Feb 2013, 21:06
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.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.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 42 guests