mse version: 0.3.6
game: DC
short name: Standard
full name: Standard
installer group: DC/Standard
icon: card-sample.png
position hint: 001

version: 2008-5-19
depends on:
	package: DC.mse-game
	version: 2008-5-14

card background: white
card width: 564
card height: 770
card dpi: 300

############################################################## Extra scripts
init script:
	text_filter := 
		# step 1 : Remove all automatic tags
		tag_remove_rule(tag: "<sym-auto>") +
		tag_remove_rule(tag: "<i-auto>")   +
		tag_remove_rule(tag: "<b-auto>")   +
		remove_tag@(tag: "<nospellcheck") +
		# step 2 : Reminder text for keywords
		expand_keywords@(
			condition: {
				correct_case
			}
			default_expand: {
				chosen(choice:if correct_case then mode else "lower case")
			},
			combine: {
				# un-bold parameters
				keyword := tag_contents(keyword, tag:"<param",
				              contents: {"</b-auto>{input}<b-auto>"})
				reminder := process_english_hints(reminder)
				# the combined result
				"<b-auto>{keyword}</b-auto>"
				 + if expand then "<atom-reminder-{mode}> ({reminder})</atom-reminder-{mode}>"
			}) +
		# step 3 : Expand shortcut words ~ and CARDNAME
		replace_rule(
			match: "CARDNAME",
			in_context: "(^|[[:space:]])<match>",
			replace: "<atom-cardname>&</atom-cardname>"
			) +
		# step 4 : Fill in atom fields
		tag_contents_rule(
			tag: "<atom-cardname>",
			contents: { if card.name=="" then "CARDNAME" else card.name }
			) +
		replace_rule(
			match: "[*]|0|1|2|3|4|5|6|7|8|9",
			replace: "<sym-auto>&</sym-auto>") +
		replace_rule(
		 	match: "[+]|1|2|3|4|5|6|7|8|9|Heroes|Super-Villains|Villains|Equipment|Locations|Super Powers|Weaknesses|Starters|Artifacts|Events|Punches|Kicks|Vulnerabilities|Counter|Super|Dragon Ball|Stack|Dragon Balls|To Beat",
	 		replace: "<b-auto>&</b-auto>") +
		# step 7a : Bold keywords without reminder text
		replace_rule(
		 	match: "<kw[^>]*>[^<]+</kw-a>",
	 		replace: "<b-auto>&</b-auto>") +
		# step 7b : Bold keywords with reminder text
		replace_rule(
		 	match: "<kw[^>]*>[^<]+</kw-A>",
	 		replace: "<b-auto>&</b-auto>") +
		# step 8 : Italic reminder text
		replace_rule(
		 	match: "[(][^)\n]*[)]?",
			in_context: "(^|[[:space:]])<match>|<atom-keyword><match>",
		 	replace: "<i-auto>&</i-auto>")
		card_shape := { "normal" }
############################################################## Set info fields
set info style:
	title:
		padding left: 2
		font:
			size: 16
############################################################## Extra style
styling field:
	type: boolean
	name: text shadow
	initial: no
############################################################## Card fields
card style:
	############################# Background stuff
	card type:
		left:	0
		top:	0
		width:	564
		height:	770
		z index: -2
		render style: image
		popup style: in place
		choice images:
			starter:		card-starter.png
			playable hero blue:		card-sbhero.png
			playable hero crisis blue:		card-csbhero.png
			playable hero red:		card-srhero.png
			playable hero crisis red:		card-csrhero.png
			playable villain blue:	card-sbvillain.png
			playable villain crisis blue:	card-csbvillain.png
			playable villain red:	card-srvillain.png
			playable villain crisis red:	card-csrvillain.png
			playable hero rival blue:	card-rbhero.png
			playable hero rival red:	card-rrhero.png
			playable villain rival blue:	card-rbvillain.png
			playable villain rival red:	card-rrvillain.png
			type hero:			card-hero.png
			type villain:		card-villain.png
			type equipment:		card-equip.png
			type location:		card-location.png
			type superpower:		card-power.png
			type artifact:		card-artifact.png
			type event:			card-event.png
			type ultra:			card-ultra.png
			defeatable superhero:		card-shero.png
			defeatable supervillain:	card-svillain.png
			weakness:		card-weakness.png
			special:			card-special.png
			crisis blue:		card-crisisb.png
			crisis red:			card-crisisr.png
			
	############################# Name line
	name:
		left: 20
		top :
			script: if card.card_type=="playable hero rival blue" then 462
			else if card.card_type=="playable hero rival red" then 462
			else if card.card_type=="playable villain rival blue" then 462
			else if card.card_type=="playable villain rival red" then 462
			else 30
		width: 
			script: if card.card_type=="playable hero rival blue" then 240
			else if card.card_type=="playable hero rival red" then 240
			else if card.card_type=="playable villain rival blue" then 240
			else if card.card_type=="playable villain rival red" then 240
			else 415
		height: 70
		alignment: middle shrink-overflow
		padding bottom: 0
		z index: 5
		font:
			name: Compacta Bd BT
			style: italic
			size: 
				script: if card.card_type=="playable hero rival blue" then 26
				else if card.card_type=="playable hero rival red" then 26
				else if card.card_type=="playable villain rival blue" then 26
				else if card.card_type=="playable villain rival red" then 26
				else 40
			color: 
				script: if card.card_type=="playable hero blue" then rgb(254,242,0)
					else if card.card_type=="playable hero red"		then rgb(254,242,0)
					else if card.card_type=="playable villain blue"		then rgb(254,242,0)
					else if card.card_type=="playable villain red"		then rgb(254,242,0)
					else if card.card_type=="playable hero crisis blue" then rgb(254,242,0)
					else if card.card_type=="playable hero crisis red"		then rgb(254,242,0)
					else if card.card_type=="playable hero rival blue"		then rgb(254,242,0)
					else if card.card_type=="playable hero rival red"		then rgb(254,242,0)
					else if card.card_type=="playable villain crisis blue"		then rgb(254,242,0)
					else if card.card_type=="playable villain crisis red"		then rgb(254,242,0)
					else if card.card_type=="playable villain rival blue"		then rgb(254,242,0)
					else if card.card_type=="playable villain rival red"		then rgb(254,242,0)
					else if card.card_type=="type hero"		then rgb(4,178,247)
					else if card.card_type=="type villain"	then rgb(235,0,11)
					else if card.card_type=="type equipment"	then rgb(255,255,255)
					else if card.card_type=="type location" 	then rgb(233,10,139)
					else if card.card_type=="type superpower"	then rgb(247,130,34)
					else if card.card_type=="type artifact"	then rgb(187,0,255)
					else if card.card_type=="type event"		then rgb(10,233,165)
					else if card.card_type=="type ultra"		then rgb(111,111,111)
					else if card.card_type=="defeatable superhero"	then rgb(4,178,247)
					else if card.card_type=="defeatable supervillain"	then rgb(235,0,11)
					else if card.card_type=="special"		then rgb(255,255,255)
					else if card.card_type=="weakness"	then rgb(141,199,63)
					else if card.card_type=="crisis blue"		then rgb(255,255,255)
					else if card.card_type=="crisis red"		then rgb(255,255,255)
					else                                         rgb(254,242,0)
			shadow color: rgb(0,0,0)
			shadow displacement x: 2
			shadow displacement y: 2
	############################# Image
	image:
		left: 0
		top:
			script: if card.card_type=="playable hero blue" then 140
			else if card.card_type=="playable hero red" then 140
			else if card.card_type=="playable villain blue" then 140
			else if card.card_type=="playable villain red" then 140
			else if card.card_type=="playable hero crisis blue" then 140
			else if card.card_type=="playable hero crisis red" then 140
			else if card.card_type=="playable hero rival blue" then 0
			else if card.card_type=="playable hero rival red" then 0
			else if card.card_type=="playable villain crisis blue" then 140
			else if card.card_type=="playable villain crisis red" then 140
			else if card.card_type=="playable villain rival blue" then 0
			else if card.card_type=="playable villain rival red" then 0
			else if card.card_type=="crisis blue" then 0
			else if card.card_type=="crisis red" then 0
			else 104
		width: 564
		height:	
			script: if card.card_type=="playable hero blue" then 471
			else if card.card_type=="playable hero red" then 471
			else if card.card_type=="playable villain blue" then 471
			else if card.card_type=="playable villain red" then 471
			else if card.card_type=="playable hero crisis blue" then 369
			else if card.card_type=="playable hero crisis red" then 369
			else if card.card_type=="playable hero rival blue" then 443
			else if card.card_type=="playable hero rival red" then 443
			else if card.card_type=="playable villain crisis blue" then 369
			else if card.card_type=="playable villain crisis red" then 369
			else if card.card_type=="playable villain rival blue" then 443
			else if card.card_type=="playable villain rival red" then 443
			else if card.card_type=="crisis blue" then 524
			else if card.card_type=="crisis red" then 524
			else 360
		mask:
			script: if card.card_type=="crisis blue" then "mask-crisis.png"
			else if card.card_type=="crisis red" then "mask-crisis.png"
			else ""
		z index: 1
	card symbol:
		left: 397
		top: 37
		width: 129
		height: 123
		render style: image
		choice images:
			Marvel:	logo-marvel.png
			DC: logo-dc.png
			DBZ: logo-dbz.png
		z index: 2
	impossible:
		left: 25
		top: 446
		width:
			script: if card.card_type=="defeatable superhero" then 514
			else if card.card_type=="defeatable supervillain" then 514
			else 0
		height: 18
		render style: image
		choice images:
			Impossible Blue: card-bimpossible.png
			Impossible Red: card-rimpossible.png
		z index: 3
	############################# Subtype line
	subtype:
		left: 406
		top : 482
		width: 
			script: if card.card_type=="weakness" then 0
			else if card.card_type=="defeatable supervillain" then 0
			else if card.card_type=="defeatable superhero" then 0
			else if card.card_type=="playable hero blue" then 0
			else if card.card_type=="playable hero red" then 0
			else if card.card_type=="playable villain blue" then 0
			else if card.card_type=="playable villain red" then 0
			else if card.card_type=="playable hero crisis blue" then 0
			else if card.card_type=="playable hero crisis red" then 0
			else if card.card_type=="playable hero rival blue" then 0
			else if card.card_type=="playable hero rival red" then 0
			else if card.card_type=="playable villain crisis blue" then 0
			else if card.card_type=="playable villain crisis red" then 0
			else if card.card_type=="playable villain rival blue" then 0
			else if card.card_type=="playable villain rival red" then 0
			else if card.card_type=="special" then 0
			else if card.card_type=="crisis blue" then 0
			else if card.card_type=="crisis red" then 0
			else 132
		height: 28
		alignment: right shrink-overflow
		padding bottom: 0
		z index: 2
		font:
			name: Compacta Bd BT
			style: italic
			size: 20
			color: 
				script: if card.card_type=="type ultra"	then rgb(111,111,111)
					else if card.card_type=="weakness"	then rgb(0,0,0)
					else if card.card_type=="type equipment"	then rgb(0,0,0)
					else if card.card_type=="type superpower"	then rgb(0,0,0)
					else                                         rgb(255,255,255)
		padding right:  5
	############################# Text box
	text:
		left: 25
		top : 
			script: if card.card_type=="type event" then 580
			else if card.card_type=="playable hero blue" then 620
			else if card.card_type=="playable hero red" then 620
			else if card.card_type=="playable villain blue" then 620
			else if card.card_type=="playable villain red" then 620
			else if card.card_type=="playable hero crisis blue" then 532
			else if card.card_type=="playable hero crisis red" then 532
			else if card.card_type=="playable hero rival blue" then 532
			else if card.card_type=="playable hero rival red" then 532
			else if card.card_type=="playable villain crisis blue" then 532
			else if card.card_type=="playable villain crisis red" then 532
			else if card.card_type=="playable villain rival blue" then 532
			else if card.card_type=="playable villain rival red" then 532
			else 517
		width: 514
		height: 
			script: if card.card_type=="type event" then 67
			else if card.card_type=="playable hero blue" then 100
			else if card.card_type=="playable hero red" then 100
			else if card.card_type=="playable villain blue" then 100
			else if card.card_type=="playable villain red" then 100
			else if card.card_type=="playable hero crisis blue" then 126
			else if card.card_type=="playable hero crisis red" then 126
			else if card.card_type=="playable hero rival blue" then 126
			else if card.card_type=="playable hero rival red" then 126
			else if card.card_type=="playable villain crisis blue" then 126
			else if card.card_type=="playable villain crisis red" then 126
			else if card.card_type=="playable villain rival blue" then 126
			else if card.card_type=="playable villain rival red" then 126
			else if card.card_type=="crisis blue" then 160
			else if card.card_type=="crisis red" then 160
			else 145
		mask:
			script: if card.card_type=="type event" then "text-mask-location2.png"
			else if card.card_type=="playable hero blue" then "text-plmask.png"
			else if card.card_type=="playable hero red" then "text-plmask.png"
			else if card.card_type=="playable villain blue" then "text-plmask.png"
			else if card.card_type=="playable villain red" then "text-plmask.png"
			else if card.card_type=="playable hero crisis blue" then "text-plmask.png"
			else if card.card_type=="playable hero crisis red" then "text-plmask.png"
			else if card.card_type=="playable villain crisis blue" then "text-plmask.png"
			else if card.card_type=="playable villain crisis red" then "text-plmask.png"
			else "text-mask.png"
		font:
			name: TradeGothic LT CondEighteen
			size: 18
			scale down to: 8
			color: 
				script: if card.card_type=="defeatable supervillain" then rgb(255,255,255)
				else if card.card_type=="defeatable superhero" then rgb(255,255,255)
				else if card.card_type=="defeatable superhero" then rgb(255,255,255)
				else if card.card_type=="playable hero blue" then rgb(255,255,255)
				else if card.card_type=="playable hero red" then rgb(255,255,255)
				else if card.card_type=="playable villain blue" then rgb(255,255,255)
				else if card.card_type=="playable villain red" then rgb(255,255,255)
				else if card.card_type=="playable hero crisis blue" then rgb(255,255,255)
				else if card.card_type=="playable hero crisis red" then rgb(255,255,255)
				else if card.card_type=="playable hero rival blue" then rgb(255,255,255)
				else if card.card_type=="playable hero rival red" then rgb(255,255,255)
				else if card.card_type=="playable villain crisis blue" then rgb(255,255,255)
				else if card.card_type=="playable villain crisis red" then rgb(255,255,255)
				else if card.card_type=="playable villain rival blue" then rgb(255,255,255)
				else if card.card_type=="playable villain rival red" then rgb(255,255,255)
				else if card.card_type=="type artifact" then rgb(255,255,255)
				else if card.card_type=="crisis blue" then rgb(255,255,255)
				else if card.card_type=="crisis red" then rgb(255,255,255)
				else if card.card_type=="type event" then rgb(167,13,37)
				else rgb(0,0,0)
		alignment: 
			script:	if card.card_type=="playable hero blue" then "middle center"
				else if card.card_type=="playable hero red" then "middle center"
				else if card.card_type=="playable villain blue" then "middle center"
				else if card.card_type=="playable villain red" then "middle center"
				else if card.card_type=="playable hero crisis blue" then "middle center"
				else if card.card_type=="playable hero crisis red" then "middle center"
				else if card.card_type=="playable hero rival blue" then "middle center"
				else if card.card_type=="playable hero rival red" then "middle center"
				else if card.card_type=="playable villain crisis blue" then "middle center"
				else if card.card_type=="playable villain crisis red" then "middle center"
				else if card.card_type=="playable villain rival blue" then "middle center"
				else if card.card_type=="playable villain rival red" then "middle center"
				else "top left"
		z index: 3
		padding left:   27
		padding top:    4
		padding right:  27
		padding bottom: 2
		line height hard: .9
		line height line: 1.2
	############################# Card Fields
	honor:
		left: 82
		top : 695
		width: 
			script: if card.card_type=="type event"then 0
			else if card.card_type=="playable hero blue" then 0
			else if card.card_type=="playable hero red" then 0
			else if card.card_type=="playable villain blue" then 0
			else if card.card_type=="playable villain red" then 0
			else if card.card_type=="playable hero crisis blue" then 0
			else if card.card_type=="playable hero crisis red" then 0
			else if card.card_type=="playable villain crisis blue" then 0
			else if card.card_type=="playable villain crisis red" then 0
			else if card.card_type=="crisis blue" then 0
			else if card.card_type=="crisis red" then 0
			else 11
		height: 20
		alignment: center middle shrink-overflow
		z index: 2
		font:
			name: Compacta BT
			size: 20
			color: rgb(0,0,0)
		symbol font:
			name: /DC-standard.mse-style/DC-standard
			size: 19
			alignment: middle center
		alignment: middle center
	honortype:
		left: 44
		top: 660
		width: 
			script: if card.card_type=="type event"then 0
			else if card.card_type=="playable hero blue" then 0
			else if card.card_type=="playable hero red" then 0
			else if card.card_type=="playable villain blue" then 0
			else if card.card_type=="playable villain red" then 0
			else if card.card_type=="playable hero crisis blue" then 0
			else if card.card_type=="playable hero crisis red" then 0
			else if card.card_type=="playable villain crisis blue" then 0
			else if card.card_type=="playable villain crisis red" then 0
			else if card.card_type=="crisis blue" then 0
			else if card.card_type=="crisis red" then 0			
			else 89
		height: 84
		z index: 1
		render style: image
		popup style: in place
		choice images:
			positive: vp-positive.png
			weakness: vp-weakness.png
			negative: vp-negative.png
			win: vp-youwin.png
	expansion:
		left:
			script: if card.card_type=="crisis blue" then 420
			else if card.card_type=="crisis red" then 420
			else 290
		top :
			script: if card.card_type=="playable hero blue" then 680
			else if card.card_type=="playable hero red" then 680
			else if card.card_type=="playable villain blue" then 680
			else if card.card_type=="playable villain red" then 680
			else if card.card_type=="playable hero crisis blue" then 680
			else if card.card_type=="playable hero crisis red" then 680
			else if card.card_type=="playable villain crisis blue" then 680
			else if card.card_type=="playable villain crisis red" then 680
			else if card.card_type=="playable hero rival blue" then 710
			else if card.card_type=="playable hero rival red" then 710
			else if card.card_type=="playable villain rival blue" then 710
			else if card.card_type=="playable villain rival red" then 710
			else if card.card_type=="crisis blue" then 680
			else if card.card_type=="crisis red" then 680
			else 646
		height: 22
		width: 107
		z index: 4
		popup style: in place
		render style: image list
		choice images:
			custom: exp-custom.png
	cost:
		left: 412
		top : 642
		height: 114
		width: 
			script: if card.card_type=="playable hero blue" then 0
			else if card.card_type=="playable hero red" then 0
			else if card.card_type=="playable villain blue" then 0
			else if card.card_type=="playable villain red" then 0
			else if card.card_type=="playable hero crisis blue" then 0
			else if card.card_type=="playable hero crisis red" then 0
			else if card.card_type=="playable villain crisis blue" then 0
			else if card.card_type=="playable villain crisis red" then 0
			else if card.card_type=="crisis blue" then 0
			else if card.card_type=="crisis red" then 0
			else 115
		z index: 4
		popup style: in place
		render style: image list
		choice images:
			Star:  star.png
			Regular 0:	0.png
			Star 0:	0star.png
			Regular 1:	1.png
			Star 1:	1star.png
			Regular 2: 	2.png
			Star 2: 	2star.png
			Regular 3: 	3.png
			Star 3: 	3star.png
			Regular 4: 	4.png
			Star 4: 	4star.png
			Regular 5: 	5.png
			Star 5: 	5star.png
			Regular 6: 	6.png
			Star 6: 	6star.png
			Regular 7: 	7.png
			Star 7: 	7star.png
			Regular 8: 	8.png
			Star 8: 	8star.png
			Regular 9: 	9.png
			Star 9: 	9star.png
			Regular 10: 	10.png
			Star 10: 	10star.png
			Regular 11: 11.png
			Star 11: 11star.png
			Regular 12: 12.png
			Star 12: 12star.png
			Regular 13: 13.png
			Star 13: 13star.png
			Regular 14: 14.png
			Star 14: 14star.png
			Regular 15:  15.png
			Star 15:  15star.png
			Regular 16:  16.png
			Star 16:  16star.png
			Regular 17:  17.png
			Star 17:  17star.png
			Regular 18:  18.png
			Star 18:  18star.png
			Regular 19:  19.png
			Star 19:  19star.png
			Regular 20:  20.png
			Star 20:  20star.png
			Regular 21:  21.png
			Star 21:  21star.png
			Regular 22:  22.png
			Star 22:  22star.png
			Regular 23:  23.png
			Star 23:  23star.png
			Regular 24:  24.png
			Star 24:  24star.png
			Regular 25:  25.png
			Star 25:  25star.png
