############################################################## Card fields

############################# Automatic fields

# The 'shape' of the card (flip, split, etc.)
card field:
	type: choice
	name: shape
	save value: false
	show statistics: false
	editable: false
	choice: normal
	choice: token
	choice: flip
	choice: split
	choice: fuse split
	choice: adventure
	choice: aftermath
	choice: double faced
	choice: planeswalker
	choice: shifted
	choice: rulestip
	choice: leveler
	choice: augment
	choice: counter
	choice: checklist
	choice: emblem
	choice: masterpiece
	choice: nightbreak
	choice: plane card
	choice: saga
	script: 
		stylesheet # updates when the style changes
		card_shape() # determined by the style
card field:
	type: text
	name: full name
	save value: false
	show statistics: false
	editable: false
	card list visible: true
	card list name: Name
	card list column: 1
	card list width: 150
	description: The name of the card
	script: if has_two_names() then card.name + " // " + card.name_2 else card.name
############################# Background stuff
card field:
	type: color
	name: border color
	default: set.border_color
	choice:
		name: black
		color: rgb(0,0,0)
	choice:
		name: white
		color: rgb(255,255,255)
	choice:
		name: silver
		color: rgb(200,200,200)
	choice:
		name: gold
		color: rgb(200,180,0)
	show statistics: false
	description: The border of the card; can be any solid color.
card field:
	type: multiple choice
	name: card color
	empty choice: colorless
	choice: white
	choice: blue
	choice: black
	choice: red
	choice:
		name: green
		line below: true
	choice: artifact
	choice: land
	choice: multicolor
	choice:
		name: hybrid
		enabled: { card_color_color_count(card.card_color) >= 2 }
		line below: true
	choice:
		name: horizontal
		enabled: { card_color_color_count(card.card_color) >= 2 }
		type: radio
	choice:
		name: vertical
		enabled: { card_color_color_count(card.card_color) >= 2 }
		type: radio
	choice:
		name: radial
		enabled: { card_color_color_count(card.card_color) >= 2 }
		type: radio
	choice:
		name: overlay
		enabled: { card_color_color_count(card.card_color) == 2 and chosen(choice:"hybrid",card.card_color) }
		type: radio
	choice:
		name: reversed
		enabled: { card_color_color_count(card.card_color) >= 2 and not chosen(choice:"overlay",card.card_color) }
	script: card_color_filter(value)
	default: card_color(casting_cost: card.casting_cost, rules_text: card.rule_text, type: card.super_type, watermark: card.watermark, card_name: card.name, default: "colorless")
	show statistics: false
	description: The frame of the card, used to indicate card color.
############################# Name line
card field:
	type: text
	name: name
	card list visible: false
	identifying: true
	show statistics: false
	script: name_checker(value)
	description: The name of the card
card field:
	type: text
	name: alias
	card list visible: false
	show statistics: false
	description: The alias of the card
card field:
	type: text
	name: casting cost
	icon: stats/casting_cost.png
	position hint: 1
	script: mana_filter(value)
	card list visible: true
	card list column: 2
	card list alignment: right
	card list width: 50
	card list name: CC
	description: The casting cost of the card
card field:
	type: choice
	name: card symbol
	position hint: 10
	icon: stats/card_symbol.png
	choice: none
	choice: tombstone
	description: Symbol for this card (tombstone)
card field:
	type: choice
	name: type symbol
	default: typesymbol_type(type: card.super_type)
	card list visible: false
	show statistics: false
	choice: artifact
	choice: creature
	choice: enchantment
	choice: fortress
	choice: instant
	choice: land
	choice: multitype
	choice: planeswalker
	choice: sorcery
	choice: none
	description: The card type symbol for this card
card field:
	type: choice
	name: transformation
	choice: day
	choice: night
	choice: moon
	choice: eldrazi
	description: On transforming cards, is this the day or the night side?
	show statistics: false
card field:
	type: multiple choice
	name: indicator
	empty choice: colorless
	choice: white
	choice: blue
	choice: black
	choice: red
	choice:
		name: green
		line below: true
	choice: artifact
	choice: land
	choice: multicolor
	choice:
		name: hybrid
		enabled: { card_color_color_count(card.card_color) >= 2 }
		line below: true
	choice:
		name: horizontal
		enabled: { card_color_color_count(card.card_color) >= 2 }
		type: radio
	choice:
		name: vertical
		enabled: { card_color_color_count(card.card_color) >= 2 }
		type: radio
	choice:
		name: radial
		enabled: { card_color_color_count(card.card_color) >= 2 }
		type: radio
	choice:
		name: overlay
		enabled: { card_color_color_count(card.card_color) == 2 and chosen(choice:"hybrid",card.card_color) }
		type: radio
	choice:
		name: reversed
		enabled: { card_color_color_count(card.card_color) >= 2 and not chosen(choice:"overlay",card.card_color) }
	script: card_color_filter(value)
	default: card.card_color
	show statistics: false
	description: The color indicator of the card, used to indicate card color.

############################# Image
card field:
	type: image
	name: image
	show statistics: false
	description: The image of the card

############################# Card type
card field:
	type: text
	name: super type
	icon: stats/card_type.png
	position hint: 30
	script: super_type_filter(value)
	show statistics: false
card field:
	type: text
	name: sub type
	icon: stats/creature_type.png
	position hint: 31
	script: sub_type_filter(value, type:card.super_type)
card field:
	type: text
	name: type
	show statistics: false
	save value: false
	script:
		# Either just supertype, or subtype - supertype
		combined_editor(
			field1: card.super_type,
			separator: language().type_separator,
			field2: card.sub_type,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list visible: true
	card list column:4
	description: The type of this card, type - to go the sub type
card field:
	type: choice
	name: rarity
	choice: basic land
	choice: common
	choice: uncommon
	choice: rare
	choice: mythic rare
	choice: special
	choice: masterpiece
	initial: common
	card list visible: true
	card list column: 7
	description: The rarity of the card, to edit the symbol switch to the 'set info' tab
	show statistics: false
	icon: stats/rarity.png
	position hint: 100
	choice colors:
		basic land: rgb(109,62,39)
		common:     rgb(33,33,33)
		uncommon:   rgb(224,224,224)
		mythic rare: rgb(202, 49, 35)
		rare:       rgb(255,207,52)
		special:    rgb(190,0,255)

############################# Text box
card field:
	type: text
	name: rule text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"text")
	show statistics: false
	multi line: true
	description: The rules text for the card
card field:
	type: text
	name: flavor text
	script: flavor_text_filter(value)
	show statistics: false
	multi line: true
	description: The flavor text for the card
card field:
	type: text
	name: text
	multi line: true
	save value: false
	show statistics: false
	position hint: 105
	script:
		if mainframe_walker() then
			mainframe_walker_text_script()
		else if alt_text() then
			alt_text_script()
		else
			combined_editor(field1: card.rule_text, separator: "<line>\n</line>", field2: card.flavor_text)
	description: The rules and flavor text for the card; use up and down arrows to switch
######################### Watermark
card field:
	type: choice
	name: watermark
	icon: stats/watermark.png
	position hint: 200
	include file: /magic-watermarks.mse-include/watermark-names
	description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, or a guild symbol
###############################Leveler textboxes
card field:
	type: text
	name: level 0
	description: The zeroth level of a creature
	show statistics: false
card field:
	type: text
	name: loyalty cost 1
	show statistics: false
	description: The loyalty cost for the first ability of a planeswalker
card field:
	type: text
	name: level 1
	description: The first level of a card
	show statistics: false
card field:
	type: text
	name: level 1 text
	default: if transfer_levels() then card.rule_text else ""
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"lv1")
	show statistics: false
	multi line: true
	position hint: 110
	description: The first level text for the card
card field:
	type: text
	name: loyalty cost 2
	show statistics: false
	description: The loyalty cost for the second ability of a planeswalker
card field:
	type: text
	name: level 2
	description: The second level of a card
	show statistics: false
card field:
	type: text
	name: level 2 text
	default: if transfer_levels() then card.rule_text_2 else ""
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"lv2")
	show statistics: false
	multi line: true
	position hint: 120
	description: The second level text for the card
card field:
	type: text
	name: loyalty cost 3
	show statistics: false
	description: The loyalty cost for the third ability of a planeswalker
card field:
	type: text
	name: level 3
	description: The third level of a card
	show statistics: false
card field:
	type: text
	name: level 3 text
	default: card.rule_text_3
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"lv3")
	show statistics: false
	multi line: true
	position hint: 130
	description: The third level text for the card
card field:
	type: text
	name: loyalty cost 4
	show statistics: false
	description: The loyalty cost for the fourth ability of a planeswalker
card field:
	type: text
	name: level 4
	description: The fourth level of a card
	show statistics: false
card field:
	type: text
	name: level 4 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"lv4")
	show statistics: false
	multi line: true
	position hint: 4
	description: The fourth level text for the card
############################# Notes
card field:
	type: text
	name: sorted notes
	multi line: true
	save value: false
	show statistics: false
	script: card.notes
	description: A mirror of card notes to make it sortable.
card field:
	type: text
	name: custom index
	save value: false
	show statistics: false
	position hint: 900
	script: custom_index()
############################# Loyalty
card field:
	type: text
	name: loyalty
	icon: stats/toughness.png
	position hint: 59
	description: The initial loyalty of a planeswalker
card field:
	type: text
	name: loyalty cost 5
	show statistics: false
	description: The loyalty cost for the fifth ability of a planeswalker
card field:
	type: text
	name: loyalty cost 6
	show statistics: false
	description: The loyalty cost for the sixth ability of a planeswalker
card field:
	type: text
	name: loyalty cost 7
	show statistics: false
	description: The loyalty cost for the seventh ability of a planeswalker
card field:
	type: text
	name: loyalty cost 8
	show statistics: false
	description: The loyalty cost for the eighth ability of a planeswalker
############################# PT
card field:
	type: text
	name: power
	icon: stats/power.png
	show statistics: false
	script: type_over_pt(value)
	description: The power of a creature
card field:
	type: text
	name: toughness
	show statistics: false
	icon: stats/toughness.png
	description: The toughness of a creature
card field:
	type: text
	name: pt
	save value: false
	script: 
		combined_editor(
			field1: card.power,
			separator: language().pt_separator,
			field2: card.toughness,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list visible: true
	card list column: 5
	card list width: 50
	card list name: P/T
	description: Power/toughness of a creature
	show statistics: false

############################# Card sorting / numbering
card field:
	type: text
	name: card number
	save value: false
	script:      card_number() + "/" + card_count()
	sort script: rarity_sort() + card.card_number
	card list visible: true
	card list column: 10
	card list width: 50
	card list name: #
	card list alignment: right
	editable: false
	show statistics: false
card field:
	type: text
	name: card number m15
	save value: false
	script: card_number_m15() + "/" + card_count_m15()
	sort script: rarity_sort() + card.card_number
	card list visible: false
	editable: false
	show statistics: false
card field:
	type: text
	name: custom card number
	save value: true
	editable: true
	show statistics: false
card field:
	type: text
	name: set code
	editable: false
	save value: false
	script: (if is_masterpiece() then set.masterpiece_set_code else set.set_code) + " • " + set.set_language
	show statistics: false
card field:
	type: text
	name: card code text
	editable: true
	save value: true
	show statistics: false
card field:
	type: text
	name: card code text 2
	default: card.card_code_text
	editable: true
	save value: true
	show statistics: false
############################# Copyright stuff
card field:
	type: text
	name: illustrator
	icon: stats/illustrator.png
	position hint: 210
	default: set.artist
	description: Illustrator of this card, the default value can be changed on the 'set info' tab
	show statistics: false
card field:
	type: text
	name: copyright
	default: set.copyright
	show statistics: false
card field:
	type: text
	name: copyright line
	save value: false
	show statistics: false
	script:
		if set.automatic_card_numbers then
			combined_editor(field1: card.copyright, separator: " ", field2: card.card_number)
		else
			forward_editor(field: card.copyright)
	description: Copyright of this card and cardnumber, the default value can be changed on the 'set info' tab

############################################################## Duplicate fields (split/flip cards)
# Based on flip templates by Wolfwood
# These are a direct copy of the fields above, only with a 2


card field:
	type: multiple choice
	name: card color 2
	icon: stats/card_color.png
	empty choice: colorless
	choice: white
	choice: blue
	choice: black
	choice: red
	choice:
		name: green
		line below: true
	choice: artifact
	choice: land
	choice: multicolor
	choice:
		name: hybrid
		enabled: { card_color_color_count(card.card_color_2) >= 2 }
		line below: true
	choice:
		name: horizontal
		enabled: { card_color_color_count(card.card_color_2) >= 2 }
		type: radio
	choice:
		name: vertical
		enabled: { card_color_color_count(card.card_color_2) >= 2 }
		type: radio
	choice:
		name: radial
		enabled: { card_color_color_count(card.card_color_2) >= 2 }
		type: radio
	choice:
		name: overlay
		enabled: { card_color_color_count(card.card_color_2) == 2 and chosen(choice:"hybrid",card.card_color_2) }
		type: radio
	choice:
		name: reversed
		enabled: { card_color_color_count(card.card_color_2) >= 2 and not chosen(choice:"overlay",card.card_color_2) }
	script: card_color_filter(value)
	default: card_color(casting_cost: card.casting_cost_2, type: card.super_type_2, rules_text: card.rule_text_2, watermark: card.watermark_2, card_name: card.name_2, default: "colorless")
	show statistics: false
	description: The frame of a card
card field:
	type: text
	name: name 2
	identifying: true
	show statistics: false
	description: The second name of a card
card field:
	type: text
	name: alias 2
	show statistics: false
	description: The second alias of a card
card field:
	type: text
	name: name 3
	identifying: true
	show statistics: false
	description: The third name of a card
card field:
	type: text
	name: alias 3
	identifying: true
	show statistics: false
	description: The third alias of a card
card field:
	type: text
	name: casting cost 2
	icon: stats/casting_cost.png
	script: mana_filter(value)
	card list alignment: right
	card list width: 50
	card list name: CC
	show statistics: false
	description: The casting cost of a card
card field:
	type: text
	name: casting cost 3
	icon: stats/casting_cost.png
	script: mana_filter(value)
	show statistics: false
	description: The casting cost of a card
card field:
	type: choice
	name: card symbol 2
	icon: stats/card_symbol.png
	choice: none
	choice: tombstone
	show statistics: false
	description: The card symbol of the card (Tombstone)
card field:
	type: choice
	name: type symbol 2
	default: typesymbol_type(type: card.super_type_2)
	card list visible: false
	show statistics: false
	choice: artifact
	choice: creature
	choice: enchantment
	choice: fortress
	choice: instant
	choice: land
	choice: multitype
	choice: planeswalker
	choice: sorcery
	choice: none
	description: The card type symbol for this card
card field:
	type: choice
	name: type symbol 3
	default: typesymbol_type(type: card.super_type_3)
	card list visible: false
	show statistics: false
	choice: artifact
	choice: creature
	choice: enchantment
	choice: fotress
	choice: instant
	choice: land
	choice: multitype
	choice: planeswalker
	choice: sorcery
	choice: none
	description: The card type symbol for this card	
card field:
	type: choice
	name: transformation 2
	choice: night
	choice: day
	choice: moon
	choice: eldrazi
	description: On transforming cards, is this the day or the night side?
	show statistics: false
card field:
	type: choice
	name: transformation 3
	choice: night
	choice: day
	description: On transforming cards, is this the day or the night side?
	show statistics: false
card field:
	type: image
	name: image 2
	show statistics: false
	description: The image of the card
card field:
	type: text
	name: super type 2
	icon: stats/creature_type.png
	show statistics: false
	script: super_type_filter(value)
card field:
	type: text
	name: sub type 2
	icon: stats/creature_type.png
	show statistics: false
	script: sub_type_filter(value, type:card.super_type_2)
card field:
	type: text
	name: type 2
	save value: false
	script:
		combined_editor(
			field1: card.super_type_2,
			separator: language().type_separator,
			field2: card.sub_type_2,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	show statistics: false
	description: The type of the card; type "-" to go from type to subtype
card field:
	type: text
	name: super type 3
	icon: stats/creature_type.png
	show statistics: false
	script: super_type_filter(value)
card field:
	type: text
	name: sub type 3
	icon: stats/creature_type.png
	show statistics: false
	script: sub_type_filter(value, type:card.super_type_3)
card field:
	type: text
	name: type 3
	save value: false
	script:
		combined_editor(
			field1: card.super_type_3,
			separator: language().type_separator,
			field2: card.sub_type_3,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	show statistics: false
	description: The type of the card; type "-" to go from type to subtype
card field:
	type: choice
	name: rarity 2
	icon: stats/rarity.png
	choice: basic land
	choice: common
	choice: uncommon
	choice: rare
	choice: mythic rare
	choice: special
	choice: masterpiece
	initial: common
	# Both rarities will be the same
	script: card.rarity
	editable: false
	show statistics: false
card field:
	type: multiple choice
	name: indicator 2
	empty choice: colorless
	choice: white
	choice: blue
	choice: black
	choice: red
	choice:
		name: green
		line below: true
	choice: artifact
	choice: land
	choice: multicolor
	choice:
		name: hybrid
		enabled: { card_color_color_count(card.card_color_2) >= 2 }
		line below: true
	choice:
		name: horizontal
		enabled: { card_color_color_count(card.card_color_2) >= 2 }
		type: radio
	choice:
		name: vertical
		enabled: { card_color_color_count(card.card_color_2) >= 2 }
		type: radio
	choice:
		name: radial
		enabled: { card_color_color_count(card.card_color_2) >= 2 }
		type: radio
	choice:
		name: overlay
		enabled: { card_color_color_count(card.card_color_2) == 2 and chosen(choice:"hybrid",card.card_color_2) }
		type: radio
	choice:
		name: reversed
		enabled: { card_color_color_count(card.card_color_2) >= 2 and not chosen(choice:"overlay",card.card_color_2) }
	script: card_color_filter(value)
	default: card.card_color_2
	show statistics: false
	description: The color indicator of the card, used to indicate card color.
card field:
	type: text
	name: rule text 2
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"text2")
	show statistics: false
	multi line: true
	description: The rules text of the card
card field:
	type: text
	name: rule text 3
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"text3")
	show statistics: false
	multi line: true
	description: The rules text of the card
card field:
	type: text
	name: rule text 4
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"text4")
	show statistics: false
	multi line: true
	description: The rules text of the card
card field:
	type: text
	name: rule text 5
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"text5")
	show statistics: false
	multi line: true
	description: The rules text of the card
card field:
	type: text
	name: rule text 6
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"text6")
	show statistics: false
	multi line: true
	description: The rules text of the card
card field:
	type: text
	name: flavor text 2
	script: flavor_text_filter(value)
	multi line: true
	show statistics: false
card field:
	type: text
	name: flavor text 3
	script: flavor_text_filter(value)
	multi line: true
	show statistics: false

card field:
	type: text
	name: text 2
	multi line: true
	save value: false
	show statistics: false
	script:
		if mainframe_walkerb() then
			mainframe_walker_text_scriptb()
		else if alt_textb() then
			alt_text_scriptb()
		else
			combined_editor(field1: card.rule_text_2, separator: "<line>\n</line>", field2: card.flavor_text_2)
	description: The rules and flavor text of the card
card field:
	type: text
	name: text 3
	multi line: true
	save value: false
	show statistics: false
	script:
		combined_editor(field1: card.rule_text_3, separator: "<line>\n</line>", field2: card.flavor_text_3)
	description: The rules and flavor text of the card
card field:
	type: choice
	name: watermark 2
	include file: /magic-watermarks.mse-include/watermark-names
	icon: stats/watermark.png
	show statistics: false
	description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, a special symbol, or a guild symbol
card field:
	type: choice
	name: watermark 3
	include file: /magic-watermarks.mse-include/watermark-names
	icon: stats/watermark.png
	show statistics: false
	description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, a special symbol, or a guild symbol
card field:
	type: text
	name: loyalty 2
	icon: stats/toughness.png
	show statistics: false
	description: The initial loyalty of a planeswalker
card field:
	type: text
	name: power 2
	icon: stats/power.png
	show statistics: false
	script: type_over_pt(value)
	description: The power of a creature
card field:
	type: text
	name: toughness 2
	icon: stats/toughness.png
	show statistics: false
	description: The toughness of a creature
card field:
	type: text
	name: pt 2
	save value: false
	script:
		combined_editor(
			field1: card.power_2,
			separator: language().pt_separator,
			field2: card.toughness_2,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list width: 50
	card list name: P/T2
	show statistics: false
	description: Power/Toughness of a creature
card field:
	type: text
	name: power 3
	icon: stats/power.png
	show statistics: false
	script: type_over_pt(value)
	description: The power of a creature
card field:
	type: text
	name: toughness 3
	icon: stats/toughness.png
	show statistics: false
	description: The toughness of a creature
card field:
	type: text
	name: pt 3
	save value: false
	script:
		combined_editor(
			field1: card.power_3,
			separator: language().pt_separator,
			field2: card.toughness_3,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list width: 50
	card list name: P/T3
	show statistics: false
	description: Power/Toughness of a creature
card field:
	type: text
	name: illustrator 2
	icon: stats/illustrator.png
	default: set.artist
	show statistics: false
	description: The illustrator of the image
card field:
	type: text
	name: copyright 2
	default: set.copyright
	show statistics: false
card field:
	type: text
	name: copyright line 2
	save value: false
	show statistics: false
	script:
		if set.automatic_card_numbers then
			combined_editor(field1: card.copyright_2, separator: " ", field2: card.card_number)
		else
			forward_editor(field: card.copyright_2)
	description: The copyright and card number of the card
card field:
	type: text
	name: illustrator 3
	icon: stats/illustrator.png
	default: set.artist
	show statistics: false
	description: The illustrator of the image
card field:
	type: text
	name: copyright 3
	default: set.copyright
	show statistics: false
card field:
	type: text
	name: copyright line 3
	save value: false
	show statistics: false
	script:
		if set.automatic_card_numbers then
			combined_editor(field1: card.copyright_3, separator: " ", field2: card.card_number)
		else
			forward_editor(field: card.copyright_3)
	description: The copyright and card number of the card
card field:
	type: text
	name: set code 2
	editable: false
	save value: false
	script: (if is_masterpiece() then set.masterpiece_set_code else set.set_code) + " • " + set.set_language
	show statistics: false
card field:
	type: text
	name: set code 3
	editable: false
	save value: false
	script: (if is_masterpiece() then set.masterpiece_set_code else set.set_code) + " • " + set.set_language
	show statistics: false
########################back Leveler textboxes
card field:
	type: text
	name: level 5 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"lv5")
	show statistics: false
	multi line: true
	description: The fifth level text for the card
card field:
	type: text
	name: level 6 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"lv6")
	show statistics: false
	multi line: true
	description: The sixth level text for the card
card field:
	type: text
	name: level 7 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"lv7")
	show statistics: false
	multi line: true
	description: The seventh level text for the card
card field:
	type: text
	name: level 8 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"lv8")
	show statistics: false
	multi line: true
	description: The eighth level text for the card
card field:
	type: text
	name: level 9 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"lv9")
	show statistics: false
	multi line: true
	description: The ninth level text for the card
card field:
	type: text
	name: level 10 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"lv10")
	show statistics: false
	multi line: true
	description: The tenth level text for the card
card field:
	type: text
	name: level 11 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"lv11")
	show statistics: false
	multi line: true
	description: The eleventh level text for the card
card field:
	type: text
	name: level 12 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias != "" then card.alias else card.name, margin_code:"lv12")
	show statistics: false
	multi line: true
	description: The twelvth level text for the card
card field:
	type: text
	name: level 13 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"lv13")
	show statistics: false
	multi line: true
	description: The thirteenth level text for the card
card field:
	type: text
	name: level 14 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"lv14")
	show statistics: false
	multi line: true
	description: The fourteenth level text for the card
card field:
	type: text
	name: level 15 text
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"lv15")
	show statistics: false
	multi line: true
	description: The fifteenth level text for the card
card field:
	type: text
	name: level 5
	description: The fifth level of a card
	show statistics: false
card field:
	type: text
	name: level 6
	description: The sixth level of a card
	show statistics: false
card field:
	type: text
	name: level 7
	description: The seventh level of a card
	show statistics: false
card field:
	type: text
	name: level 8
	description: The eighth level of a card
	show statistics: false

card field:
	type: text
	name: power 4
	icon: stats/power.png
	show statistics: false
	script: type_over_pt(value)
	description: The power of a creature
card field:
	type: text
	name: toughness 4
	icon: stats/toughness.png
	show statistics: false
	description: The toughness of a creature
card field:
	type: text
	name: pt 4
	save value: false
	script:
		combined_editor(
			field1: card.power_4,
			separator: language().pt_separator,
			field2: card.toughness_4,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list width: 50
	card list name: P/T4
	show statistics: false
	description: Power/Toughness of a creature
card field:
	type: text
	name: power 5
	icon: stats/power.png
	show statistics: false
	script: type_over_pt(value)
	description: The power of a creature
card field:
	type: text
	name: toughness 5
	icon: stats/toughness.png
	show statistics: false
	description: The toughness of a creature
card field:
	type: text
	name: pt 5
	save value: false
	script:
		combined_editor(
			field1: card.power_5,
			separator: language().pt_separator,
			field2: card.toughness_5,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list width: 50
	card list name: P/T5
	show statistics: false
	description: Power/Toughness of a creature
card field:
	type: text
	name: power 6
	icon: stats/power.png
	show statistics: false
	script: type_over_pt(value)
	description: The power of a creature
card field:
	type: text
	name: toughness 6
	icon: stats/toughness.png
	show statistics: false
	description: The toughness of a creature
card field:
	type: text
	name: pt 6
	save value: false
	script:
		combined_editor(
			field1: card.power_6,
			separator: language().pt_separator,
			field2: card.toughness_6,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list width: 50
	card list name: P/T6
	show statistics: false
	description: Power/Toughness of a creature
card field:
	type: text
	name: power 7
	icon: stats/power.png
	show statistics: false
	script: type_over_pt(value)
	description: The power of a creature
card field:
	type: text
	name: toughness 7
	icon: stats/toughness.png
	show statistics: false
	description: The toughness of a creature
card field:
	type: text
	name: pt 7
	save value: false
	script:
		combined_editor(
			field1: card.power_7,
			separator: language().pt_separator,
			field2: card.toughness_7,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list width: 50
	card list name: P/T7
	show statistics: false
	description: Power/Toughness of a creature
card field:
	type: text
	name: power 8
	icon: stats/power.png
	show statistics: false
	script: type_over_pt(value)
	description: The power of a creature
card field:
	type: text
	name: toughness 8
	icon: stats/toughness.png
	show statistics: false
	description: The toughness of a creature
card field:
	type: text
	name: pt 8
	save value: false
	script:
		combined_editor(
			field1: card.power_8,
			separator: language().pt_separator,
			field2: card.toughness_8,
			soft_before_empty: true,
			hide_when_empty:   true
		)
	card list width: 50
	card list name: P/T8
	show statistics: false
	description: Power/Toughness of a creature
card field:
	type: text
	name: cmc
	show statistics: false
	position hint: 2
	script: cmc(card.casting_cost)
	card list visible: true
	card list column: 3
	card list alignment: right
	card list width: 50
	card list name: CMC
	description: The converted mana cost of the card
card field:
	type: image
	name: mainframe image
	show statistics: false
	description: An extra image of the card
card field:
	type: image
	name: mainframe image 2
	show statistics: false
	description: An extra image of the card
card field:
	type: text
	name: special text
	show statistics: false
	script: special_text()
	save value: true
	description: Full text for exporting.
card field:
	type: text
	name: special text 2
	show statistics: false
	script: special_text2()
	save value: true
	description: Full text for exporting.
card field:
	type: text
	name: time modified
	show statistics: false
	save value: false
	script: card.time_modified
card field:
	type: text
	name: time created
	show statistics: false
	save value: false
	script: card.time_created
card field:
	type: text
	name: chapter text
	show statistics: false
	multi line: true
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name, margin_code:"unknown")
	default: if not a_saga() then "" else if card.rule_text != "" then card.rule_text else "<i-auto>(" + saga_reminder() + ")</i-auto>"
	description: The saga reminder text
card field:
	type: text
	name: chapter text 2
	show statistics: false
	multi line: true
	script: text_filter(input: value, card_name: if set.alias_as_cardname and card.alias_2 != "" then card.alias_2 else card.name_2, margin_code:"unknown")
	default: if not b_saga() then "" else "<i-auto>(" + saga_reminderb() + ")</i-auto>"
	description: The saga reminder text

############################# Exposing Internal Fields?
	
card field:
	type: text
	name: time created
	show statistics: false
	save value: false
	editable: false
	script: card.time_created
	card list visible: true
	card list name: Created At
	card list column: 100
	card list width: 150
card field:
	type: text
	name: time modified
	show statistics: false
	save value: false
	editable: false
	script: card.time_modified
	card list visible: true
	card list name: Last Modified At
	card list column: 101
	card list width: 150
