mse version: 0.3.8
game: meccg
full name: Rewrite
short name: RW
icon: icon.png
position hint: 002

version: 2010-12-01
depends on:
	package: meccg.mse-game
	version: 2009-03-25
depends on:
	package: meccg-dc-icons.mse-symbol-font
	version: 2010-11-08

#By: karmi

card width: 420
card height: 590
card dpi: 169.8

#Fonts used:
#  Arial
#  Cirth Erebor
#  Lithos Light
#  Times New Roman
#  Times New Roman 180
#  Times Small Caps & Old Style Fi 

############################################################ Style Scripts
init script:
	is_region := { contains(card.background, match: "Region") }
	is_hazard := { contains(card.background, match: "Hazard") }
	is_hero := { contains(card.background, match: "Hero") }
	is_minionhero := { contains(card.background, match: "MinionHero") }
	is_minion := { contains(card.background, match: "Minion") and not contains(card.background, match: "Balrog") }
	is_stage := { contains(card.background, match: "Stage") }
	is_ally := { contains(card.background, match: "Ally") }
	is_faction := { contains(card.background, match: "Faction") }
	is_avatar := { contains(card.background, match: "Avatar") }
	is_character := { contains(card.background, match: "Character") }
	is_agent := { contains(card.background, match: "Agent") }
	is_hazard := { contains(card.background, match: "Hazard") }
	is_creature := { contains(card.background, match: "Creature") }
	is_site := { contains(card.background, match: "Site") }
	is_event := { contains(card.background, match: "Event") }
	is_item := { contains(card.background, match: "Item") }
	is_resource := { not is_character() and not is_site() and not is_hazard() and not is_avatar() }
	has_mind := { is_resource() or is_ally() or is_faction() or is_character() or is_avatar() or is_agent() or (is_hazard() and is_event()) }
	has_influence := { is_resource() or is_character() or is_avatar() or is_agent() or (is_hazard() and is_event()) }
	has_influencep := { is_avatar() }
	has_influenceg := { is_avatar() and is_stage() }
	has_sp := { is_resource() or (is_site() and is_stage()) or (is_hazard() and is_event()) }
	has_home_site := { is_character() or is_avatar() or is_agent() or is_ally() or is_faction() }
	has_cp := { is_character() or is_event() or is_item() }

############################################################ Card Fields
card style:
	background:
		left: 0
		top: 0
		width: 420
		height: 590
		z index: -1
		render style: image
		popup style: in place
		choice images:
			Region: Region.jpg
			Hazard Agent: Hazard Agent Hazard.jpg
#		Hazard Agent Hazard: Hazard Agent Hazard.jpg
#			Hazard Agent Minion: Hazard Agent Minion.jpg
			Hazard Creature: Hazard Creature.jpg
			Hazard Event: Hazard Event.jpg
			Hero Ally: Hero Ally.jpg
			MinionHero Ally: MinionHero-Ally.jpg
			Hero Avatar Alatar: Hero-Character-A.jpg
			Hero Avatar Gandalf: Hero-Character-G.jpg
			Hero Avatar Pallando: Hero-Character-P.jpg
			Hero Avatar Radagast: Hero-Character-R.jpg
			Hero Avatar Saruman: Hero-Character-S.jpg
			Hero Character: Hero Character.jpg
			Hero Event: Hero Event.jpg
			MinionHero Event: MinionHero-Event.jpg
			Hero Faction: Hero Faction.jpg
			MinionHero Faction: MinionHero-Faction.jpg
			Hero Item: Hero Item.jpg
			MinionHero Item: MinionHero-Item.jpg
			MinionHero Character: MinionHero-Character.jpg
			MinionHero Grey Agent: Grey-Agent.jpg
			MinionHero Site: MinionHero-Site.jpg
			Hero Site: Hero Site.jpg
			Minion Ally: Minion Ally.jpg
			Minion Avatar Balrog: Minion Avatar Balrog.jpg
			Minion Avatar Ringwraith: Minion Avatar Ringwraith.jpg
			Minion Character: Minion Character.jpg
			Minion MECA Character: MECA-character.jpg
			Minion Event: Minion Event.jpg
			Minion Faction: Minion Faction.jpg
			Minion Item: Minion Item.jpg
			Minion Site Balrog: Minion Site Balrog.jpg
			Minion Site Minion: Minion Site Minion.jpg
			Stage Ally: Stage Ally.jpg
			Stage Avatar Dunadanlord: Dunadan-lord.jpg
			Stage Avatar Manlord: Man-lord.jpg
			Stage Avatar Elflord: Elf-lord.jpg
			Stage Avatar Dwarflord: Dwarf-lord.jpg
			Stage Avatar Alatar: Fallen-Character-A.jpg
			Stage Avatar Gandalf: Fallen-Character-G.jpg
			Stage Avatar Pallando: Fallen-Character-P.jpg
			Stage Avatar Radagast: Fallen-Character-R.jpg
			Stage Avatar Saruman: Fallen-Character-S.jpg
			Stage Avatar Dragonlord: Dragon-Character.jpg
#			Stage Character: Stage Character.jpg
			Stage Event: Stage Event.jpg
			Stage Faction: Stage Faction.jpg
			Stage Item: Stage Item.jpg
			Stage Site: Stage Site.jpg
	name:
		left: {if is_region() then 43 else 91}
		top: { if is_site() then 44 else if is_region() then 46 else if is_hero() and is_character() or (is_minionhero() and is_agent() ) then 32 else 37 }
		width: {if is_region() then 330 else 280}
		height: 27
		z index: 1
		alignment: center middle shrink-overflow
		font:
			name: Times Small Caps & Old Style Fi
			color: { if is_avatar() or is_region() or (is_minionhero() and is_agent() ) or ( is_hero() and ( is_character() or is_site() ) ) then rgb(0,0,0) else rgb(255,255,255) }
			size: 16
			weight: bold
			scale down to: 6
			shadow color: { if is_avatar() or is_region() or (is_minionhero() and is_agent() ) or ( is_hero() and ( is_character() or is_site() ) ) then rgb(255,255,255) else rgb(0,0,0) }
			shadow displacement x: 1
			shadow displacement y: 1
	text:
		left: { if is_hazard() then 51 else if is_region() then 85 else if not is_site() then 52 else 600 }
		top: { if is_region() then 495 else if not is_site() then 369 else  600 }
		width: {if is_region () then 279 else 321}
		height: {if is_region() then 77 else 178}
		alignment: {if is_region() then "top center" else if card.rules_text == "" then "middle left" else "top left" }
		z index: 2
		alignment: top left
		visible: { not is_site()}
		font:
			name: Times New Roman
			color: rgb(0,0,0)
			size: {if is_region() then 10 else 12}
			scale down to: 6
		symbol font:
			name: meccg-dc-icons
			size: 12
			alignment: middle center
		padding left:	6
		padding top:		2
		padding right:	4
		padding bottom: 2
		line height hard: 1.3
		line height line: 1.1
		mask: mask_text.png
	flavor text:
		font:
			name: Times New Roman
			color: rgb(0,0,0)
			size: 10
			scale down to: 6
		padding top:		2
	region type:
		left: 44
		top: 445
		width: 33
		height: 40
		z index: 4
		alignment: "top center"
		visible: { is_region() }
		always symbol: true
		symbol font:
			name: meccg-dc-icons
			size: 26
		direction: top to bottom
	site text:
		left: { if is_site() then 52 else 600 }
		top: { if is_site() then 369 else 600 }
		width: 321
		height: 178
		z index: 2
		alignment: top left
		visible: { is_site() }
		font:
			name: Times New Roman
			color: rgb(0,0,0)
			size: 12
			scale down to: 6
		symbol font:
			name: meccg-dc-icons
			size: 12
			alignment: middle center
		padding left:	6
		padding top:		2
		padding right:	4
		padding bottom: 2
		line height hard: 1.3
		line height line: 1.1
		mask: mask_site.png
	picture:
		left: { if is_site() then 79 else 76 }
		top: { if is_site() then 86 else 75 }
		width: { if is_site() then 290 else 299 }
		height: { if is_site() then 245 else 256 }
		visible: { not is_region() }
	region picture:
		left: { if is_region() then 0 else 600 }
		top:  0
		width: 420
		height: 590
		visible: { is_region() }
		mask: regionmask.png
	playable:
		left: { if is_creature() then 33 else 600 }
		top: { if is_creature() then 86 else 600 }
		width: 40
		height: 214
		z index: 4
		alignment: top center
		visible: { is_creature() }
		always symbol: true
		font:
			name: Lithos Light
			color: rgb(0,0,0)
			size: 13
			weight: bold
			scale down to: 8
		symbol font:
			name: meccg-dc-icons
			size: 18
			alignment: middle center
		direction: top to bottom
	site type:
		left: { if is_site() then 43 else 600 }
		top: { if is_site() then 43 else 600 }
		width: 28
		height: 30
		z index: 1
		alignment: top center
		visible: { is_site() }
		always symbol: true
		font:
			name: Lithos Light
			color: rgb(0,0,0)
			size: 13
			weight: bold
			scale down to: 8
		symbol font:
			name: meccg-dc-icons
			size: 22
			alignment: middle center
	site path:
		left: { if is_site() then 37 else 600 }
		top: { if is_site() then 105 else 600 }
		width: 38
		height: 210
		z index: 1
		alignment: top center
		visible: { is_site() }
		line height soft: 1.2
		always symbol: true
		font:
			name: Lithos Light
			color: rgb(0,0,0)
			size: 13
			weight: bold
			scale down to: 8
		symbol font:
			name: meccg-dc-icons
			size: 18
			alignment: middle center
		direction: top to bottom
	mind:
		left: { if has_mind() then 46 else 600 }
		top: { if is_avatar() and is_stage() then 155 else 115 }
		width: 14
		height: 30
		z index: 4
		alignment: center shrink-overflow
		visible: { not is_region() }
		font:
			name: Lithos Light
			color: rgb(0,0,0)
			size: 13
			#weight: bold
			scale down to: 8
			
	influenceg:
		left: { if has_influenceg() then 46 else 600 }
		top: 104
		width: 14
		height: 30
		z index: 4
		alignment: center shrink-overflow
		visible: { not is_region() }
		font:
			name: Lithos Light
			color: rgb(0,0,0)
			size: 13
			#weight: bold
			scale down to: 8		
			
	influence:
		left: { if has_influence() then 46 else 600 }
		top: { if is_avatar() and is_stage() then 212 else 180 }
		width: 14
		height: 30
		z index: 4
		alignment: center shrink-overflow
		visible: { not is_region() }
		font:
			name: Lithos Light
			color: rgb(255,255,255)
			size: 11
			scale down to: 8
			
	influencep:
		left: { if has_influencep() and is_stage() then 46 else 600 }
		top: 267
		width: 14
		height: 30
		z index: 4
		alignment: center shrink-overflow
		visible: { not is_region() }
		font:
			name: Lithos Light
			color: rgb(255,255,255)
			size: 11
			scale down to: 8
	
	sp:
		left: { if is_stage() and is_site() then 49 else if has_sp() then 46 else 600 }
		top: 245
		width: 14
		height: 30
		z index: 4
		alignment: center shrink-overflow
		visible: { not is_region() }
		font:
			name: Lithos Light
			color: rgb(0,0,0)
			size: 13
			#weight: bold
			scale down to: 8
	class:
		left: 80
		top: 342
		width: { if is_site() then 294 else 300 }
		height: 18
		z index: 1
		alignment: right shrink-overflow
		visible: { not is_region() }
		font:
			name: Times Small Caps & Old Style Fi
			color: { if is_avatar() or ( is_hero() and ( is_character() or is_site() ) ) then rgb(0,0,0) else rgb(255,255,255) }
			size: 20
			scale down to: 8
			shadow color: { if is_avatar() or ( is_hero() and ( is_character() or is_site() ) ) then rgb(255,255,255) else rgb(0,0,0) }
			shadow displacement x: 1
			shadow displacement y: 1
	artist:
		left: 198
		top: { if is_site() then 536 else 542 }
		width: { if is_site() then 142 else 144 }
		height: 15
		z index: 4
		alignment: center shrink-overflow
		visible: { not is_region() }
		font:
			name: Times Small Caps & Old Style Fi
			color: { if is_avatar() or (is_minionhero() and is_agent() ) or ( is_hero() and is_character() or is_site() ) then rgb(0,0,0) else rgb(255,255,255) }
			size: 9
			scale down to: 6
	mp:
		left: { if is_site() then 600 else if is_hero() then 38 else 39 }
		top: { if is_site() then 600 else 34 }
		width: 30
		height: 30
		z index: 1
		alignment: middle center
		visible: { not is_site() } 
		visible: { not is_region() }
		font:
			name: Times New Roman
			color: { if (is_minionhero() and is_agent() ) then rgb(0,0,0) else if is_minionhero() then rgb(255,255,255) else if is_hero() or is_stage() or (is_minionhero() and is_agent() ) then rgb(0,0,0) else rgb(255,255,255)}
			size: { if is_item() then (24 - (length(card.mp) * 2)) else (24 - (length(card.mp) * 3)) }
			scale down to: 8
	pb:
		left: { if is_minion() and is_character() then 36 else if is_hero() then 35 else if is_hazard() then 31 else 37 }
		top: { if is_minion() and is_character() then 528 else if is_hero() then 525 else 527 }
		width: { if is_creature() then 34 else 30 }
		height: 27
		z index: 1
		alignment: center
		visible: { not is_site() } 
		visible: { not is_region() }
		font:
			name: Times New Roman
			color: rgb(255,255,255)
			size: { 18 - (length(card.prowess) + length(card.body)) }
			scale down to: 8
			separator color: rgb(200,0,0)
	random:
		left: { if is_hero() and is_resource() then 367 else if is_site() then 600 else 368 }
		top: { if is_minion() and is_character() then 399 else 397 }
		width: 20
		height: 20
		z index: 1
		alignment: center
		visible: { not is_site() } 
		visible: { not is_region() }
		font:
			name: Lithos Light
			color: { if is_hero() or is_stage() then rgb(0,0,0) else rgb(255,255,255) }
			size: 9
			scale down to: 8
			#weight: bold
	set:
		left: { if is_site() then 362 else if is_hero() and is_resource() then 367 else 368 }
		top: { if is_minion() and is_site() then 482 else if is_minion() and is_character() then 487 else if is_hero() and is_character() then 486 else if is_site() then 481 else 485 }
		width: 20
		height: 20
		z index: 1
		alignment: center
		visible: { not is_region() }
		font:
			name: Cirth Erebor
			color: rgb(48,37,55)
			size: 10
			scale down to: 8
	copyright:
		left: 69
		top: { if is_site() then 562 else 567 }
		width: 144
		height: 11
		z index: 1
		alignment: left
		font:
			name: Arial
			#color: { if is_hero() then rgb(0,0,0) else rgb(255,255,255) }
			color: rgb(255,255,255)
			size: 9
			scale down to: 6
			#shadow color: rgb(0,0,0)
			#shadow displacement x: { if is_site() then 1 else 0 }
			#shadow displacement y: { if is_site() then 1 else 0 }
	cp:
		left: { if is_hero() then 358 else 359 }
		top: { if is_hero() then 538 else if is_minion() and is_character() then 539 else 537 }
		width: 30
		height: 27
		z index: 3
		alignment: center shrink-overflow
		visible: { not is_site() } 
		visible: { not is_region() }
		font:
			name: Times New Roman
			color: { if is_hero() or is_stage() then rgb(0,0,0) else rgb(255,255,255) }
			size: 14
			scale down to: 8
	home site:
		left: { if has_home_site() then 84 else 600 }
		top: { if has_home_site() then 518 else 600 }
		width: 260
		height: 30
		z index: 3
		alignment: right
		visible: { has_home_site() }
		font:
			name: Times New Roman
			color: rgb(0,0,0)
			size: 10
			scale down to: 8
		line height hard: 1.3
		line height line: 1.1
		#mask: mask_home_site.png
	draw opp:
		left: { if is_site() and is_minion() then 39 else if is_site() then 40 else 600 }
		top: { if is_site() and is_minion() then 499 else if is_site() then 497 else 600 }
		width: 35
		height: 27
		z index: 1
		alignment: middle center
		visible: { is_site() }
		font:
			name: Times New Roman 180
			color: rgb(255,255,255)
			size: 12
			scale down to: 8
			weight: bold
	draw:
		left: { if is_site() and is_minion() then 39 else if is_site() then 40 else 600 }
		top: { if is_site() and is_minion() then 527 else if is_site() then 525 else 600 }
		width: 35
		height: 27
		z index: 1
		alignment: middle center
		visible: { is_site() }
		font:
			name: Times New Roman
			color: rgb(0,0,0)
			size: 12
			scale down to: 8
			weight: bold
	rarity:
		left: { if is_site() then 362 else 368 }
		top: { if is_site() then 502 else 505 }
		width: 20
		height: 20
		z index: 1
		render style: image
		popup style: in place
		choice images:
			C: empty.png
			U: empty.png
			R: empty.png
			P: empty.png
			
	fw:
		left: { if is_stage() then 33 else 600 }
		top: 314
		width: 39
		height: 37
		z index: 1

############################################################ Extra Card Fields
extra card field:
	type: choice
	name: cp icon
	editable: false
	choice: default

extra card style:
	cp icon:
		left: 350
		top: 530
		width: 45
		height: 39
		z index: 2
		visible: { card.cp != "" and has_cp() }
		render style: image
		choice images: 
			default: { if is_minionhero() and is_character() then "cp_icon_hero_character.png" else if is_minionhero() then "cp_icon_hero.png" else if is_hero() and is_character() then "cp_icon_hero_character.png" else if is_minion() and is_character() then "cp_icon_minion_character.png" else if is_hazard() then "cp_icon_hazard.png" else if is_minion() then "cp_icon_minion.png" else if is_stage() then "cp_icon_stage.png" else "cp_icon_hero.png"}

extra card field:
	type: choice
	name: mind icon
	editable: false
	choice: default

extra card style:
	mind icon:
		left: 39
		top: { if is_avatar() and is_stage() then 150 else if is_avatar() then 107 else 111 }
		width: 27
		height: 33
		z index: 2
		visible: { has_mind() and card.mind != "" }
		render style: image
		choice images: 
			default: { if is_avatar() and is_stage() then "mind.png" else if is_avatar() then "influence_general.png" else "mind.png" }

extra card field:
	type: choice
	name: influenceg icon
	editable: false
	choice: default

extra card style:
	influenceg icon:
		left: 39
		top: { if is_avatar() and is_stage() then 93 }
		width: 27
		height: 39
		z index: 2
		visible: { has_influenceg() and card.influenceg != "" }
		render style: image
		choice images: 
			default: { if is_avatar() and is_stage() then "influence_general.png" }

extra card field:
	type: choice
	name: influence icon
	editable: false
	choice: default

extra card style:
	influence icon:
		left: 39
		top: { if is_avatar() and is_stage() then 199 else 167 }
		width: 27
		height: 39
		z index: 2
		visible: { has_influence() and	card.influence != "" }
		render style: image
		choice images: 
			default: influence.png

extra card field:
	type: choice
	name: influencep icon
	editable: false
	choice: default
			
extra card style:
	influencep icon:
		left: 38
		top: { if is_avatar() and is_stage() then 260 else 600 }
		width: 30
		height: 30
		z index: 2
		visible: { has_influencep() and card.influencep != "" }
		render style: image
		choice images: 
			default: influencep.png

		
			
extra card field:
	type: choice
	name: sp icon
	editable: false
	choice: default

extra card style:
	sp icon:
		left: { if is_site() then 39 else 36 }
		top: 238
		width: 34
		height: 34
		z index: 2
		visible: { has_sp() and card.sp != "" }
		render style: image
		choice images: 
			default: sp.png
			
extra card field:
	type: choice
	name: influence bracket icon
	choice: Unrestricted
	choice: Restricted

extra card style:
	influence bracket icon:
		left: { if has_influence() then 34 else 600 }
		top: { if is_avatar() and is_stage() then 205 else 173 }
		width: 40
		height: 30
		z index: 3
		visible: { has_influence() and card.influence != "" }
		render style: image
		popup style: in place
		choice images:
			Unrestricted: empty.png
			Restricted: restricted.png
