It is currently 08 Sep 2025, 05:00
   
Text Size

Text: (field) in card scripts

Post MTG Forge Related Programming Questions Here

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

Text: (field) in card scripts

Postby 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?
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

Postby 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 :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.
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

Postby Max mtg » 21 Feb 2013, 20:50

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.
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

Postby friarsol » 21 Feb 2013, 21:06

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 42 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 42 users online :: 0 registered, 0 hidden and 42 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 42 guests

Login Form