Dreamblade Minis Template

Login or register to post comments
Mon, 2008-12-29 05:07
Kraken Eye
Kraken Eye's picture

Okay; So I've recently gotten beck into DB, due to it's now-low cost of entry. Going back to the website, I discover that, after the game was canceled, wizards released the stats for a set that had been in development at the time - Serrated Dawn. However, without actual minis, the players would have to make some of their own. Also, browsing the forums, I saw a number of design contest threads.

So I set about making a DB cut-out-fold-and-glue template, and I've got it mostly working. I just need to figure out a few things, and it should be up and rolling

Here's the code;

Spoiler:
Style
Spoiler:
mse version: 0.3.7
game: Dreamblade
short name: Minis
full name: Minis
icon: card-sample.png
position hint: 001

version: 2008-12-26
depends on: Dreamblade.mse-game                     2008-12-26
depends on: Dreamblade-symbol.mse-symbol-font 2008-12-26

card width: 450
card height: 2700
card dpi: 300

############################################################## Extra scripts
init script:
	card_background := {
		colors :=
			if chosen(choice:"Valor") then "valor"
			else if chosen(choice:"Fear") then "fear"
			else if chosen(choice:"Madness") then "madness"
			else if chosen(choice:"Passion") then "passion"
			else if chosen(choice:"Multi") then "multi"
			else if chosen(choice:"None") then "none"
			else "none"
		colors + ".png"
	}

############################################################## Extra style options
styling field:
	type: choice
	name: border font color
	initial: White
	choice: Black
	choice: White
styling field:
	type: choice
	name: text size
	initial: normal
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the rules text font.
styling field:
	type: choice
	name: flavor size
	initial: small
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the flavor text font.
styling field:
	type: choice
	name: name size
	initial: normal
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the name font.
styling field:
	type: choice
	name: lineage size
	initial: normal
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the lineage font.
styling field:
	type: choice
	name: summary size
	initial: normal
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the summary font.

############################################################## Card fields
card style:
	background:
		left:	0
		top:	0
		width:	450
		height:	2700
		z index: 0
		render style: image
		popup style: in place
		image: { card_background() }
	name:
		left: 20
		top : 2260
		width: 410
		height: 60
		alignment: middle center shrink-overflow
		z index: 1
		font:
			name: MatrixBoldSmallCaps
			size:
				script:
					if styling.name_size == "small" then 48
					else if styling.name_size == "smaller" then 46
					else if styling.name_size == "tiny" then 44
					else if styling.name_size == "diminutive" then 42
					else 50
			color: rgb(0,0,0)
	topname:
		left: 60
		top : 2205
		width: 365
		height: 35
		alignment: middle left shrink-overflow
		z index: 1
		font:
			name: MatrixBoldSmallCaps
			size: 30
			color:
				script:
					if styling.border_font_color == "Black" then rgb(0,0,0)
					else rgb(255,255,255)
	lineage:
		left: 20
		top : 2315
		width: 410
		height: 25
		alignment: top center shrink-overflow
		z index: 1
		font:
			name: Times New Roman
			style: italic
			size:
				script:
					if styling.lineage_size == "small" then 18
					else if styling.lineage_size == "smaller" then 16
					else if styling.lineage_size == "tiny" then 14
					else if styling.lineage_size == "diminutive" then 12
					else 20
			color: rgb(0,0,0)
	rule:
		left: 20
		top : 2350
		width: 410
		height: 245
		font:
			name: Arial
			#size: 18
			size:
				script:
					if styling.text_size == "small" then 16
					else if styling.text_size == "smaller" then 14
					else if styling.text_size == "tiny" then 12
					else if styling.text_size == "diminutive" then 10
					else 18
			color: rgb(0,0,0)
		symbol font:
			name: Dreamblade-symbol
			size: 25
		alignment: top left
		z index: 1
	summary:
		left: 60
		top : 2165
		width: 365
		height: 35
		alignment: middle left shrink-overflow
		z index: 1
		font:
			name: Arial
			weight: bold
			size:
				script:
					if styling.summary_size == "small" then 25
					else if styling.summary_size == "smaller" then 23
					else if styling.summary_size == "tiny" then 21
					else if styling.summary_size == "diminutive" then 19
					else 27
			color:
				script:
					if styling.border_font_color == "Black" then rgb(0,0,0)
					else rgb(255,255,255)
		symbol font:
			name: Dreamblade-symbol
			size: 27
	flavor:
		left: 20
		top : 2520
		width: 410
		height: 75
		font:
			name: Times New Roman
			style: italic
			size:
				script:
					if styling.flavor_size == "small" then 14
					else if styling.flavor_size == "smaller" then 13
					else if styling.flavor_size == "tiny" then 12
					else if styling.flavor_size == "diminutive" then 11
					else 16
			color: rgb(99,99,99)
		alignment: bottom center
		z index: 2

	cost:
		left: 25
		top: 2605
		height: 40
		width: 175
		alignment: middle left
		symbol font:
			name: Dreamblade-symbol
			size: 30
		always symbol: true
		z index: 1
	topcost:
		left: 40
		top: 460
		height: 35
		width: 210
		angle: 270
		alignment: middle left
		symbol font:
			name: Dreamblade-symbol
			size: 30
		always symbol: true
		z index: 1
	power:
		left: 250
		top : 2602
		width: 40
		height: 35
		alignment: top center shrink-overflow
		z index: 1
		font:
			name: Arial
			weight: bold
			size: 30
			color: rgb(255,255,255)
	toppower:
		left: 20
		top : 2165
		width: 35
		height: 35
		alignment: top center shrink-overflow
		z index: 1
		font:
			name: Arial
			weight: bold
			size: 30
			color:
			color:
				script:
					if styling.border_font_color == "Black" then rgb(0,0,0)
					else rgb(255,255,255)
	defenselife:
		left: 255
		top : 2602
		width: 170
		height: 35
		alignment: top right shrink-overflow
		z index: 1
		font:
			name: Arial
			size: 30
			color: rgb(255,255,255)
	topdefenselife:
		left: 20
		top : 2205
		width: 35
		height: 35
		alignment: top center shrink-overflow
		z index: 1
		font:
			name: Arial
			size: 30
			color:
			color:
				script:
					if styling.border_font_color == "Black" then rgb(0,0,0)
					else rgb(255,255,255)
	imageone:
		left:	20
		top:	1475
		width:	410
		height:	535
		mask: mask.png
		z index: 1
	imagetwo:
		left:	430
		top:	1220
		width:	410
		height:	535
		mask: mask.png
		angle: 180
		z index: 1
	set:
		right: 260
		top : 2655
		width: 35
		height: 35
		z index: 1
		alignment: middle right
	rarity:
		right: 390
		top : 2655
		width: 35
		height: 35
		z index: 1
		alignment: middle right
	number:
		left: 300
		top : 2655
		width: 85
		height: 35
		alignment: top center shrink-overflow
		z index: 1

Game
Spoiler:
mse version: 0.3.7
short name: DBM
full name: Dreamblade
icon: card-back.png
position hint: 01

version: 2008-12-26

############################################################## Set fields
set field:
	type: info
	name: Set Information
set field:
	type: text
	name: title
	identifying: true
set field:
	type: text
	name: description
	multi line: true

############################# Default style
default set style:
	title:
		padding left: 2
		font:
			size: 16

############################################################## Card fields
card field
	type: text
	name: name
	card list visible: true
	card list column: 1
	card list width: 100
	card list name: Name
	card list alignment: right
	identifying: true
	show statistics: false
card field:
	type: image
	name: imageone
	show statistics: false
card field:
	type: image
	name: imagetwo
	show statistics: false
card field
	type: text
	name: topname
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: lineage
	card list visible: true
	card list column: 2
	card list width: 100
	card list name: Lineage
	card list alignment: right
	identifying: true
	show statistics: false
card field
	type: text
	name: rule
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: summary
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: flavor
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: cost
	card list visible: true
	card list column: 3
	card list width: 100
	card list name: Cost
	card list alignment: right
	identifying: true
	show statistics: false
card field
	type: text
	name: topcost
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: power
	card list visible: true
	card list column: 4
	card list width: 50
	card list name: P
	card list alignment: right
	identifying: true
	show statistics: false
card field
	type: text
	name: defenselife
	card list visible: true
	card list column: 5
	card list width: 50
	card list name: D/L
	card list alignment: right
	identifying: true
	show statistics: false
card field
	type: text
	name: toppower
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: topdefenselife
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: set
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: rarity
	card list visible: false
	identifying: true
	show statistics: false
card field:
	type: choice
	name: background
	save value: true
	choice: Valor
	choice: Fear
	choice: Madness
	choice: Passion
	choice: Multi
	choice: None

############################################################## Card list
card list color script:
	input := card.background
	if input == "Valor" then rgb(0,0,0)
	else if input == "Fear" then rgb(168,0,0)
	else if input == "Madness" then rgb(0,128,0)
	else if input == "Passion" then rgb(0,30,158)
	else if input == "Multi" then rgb(255,153,0)
	else if input == "None" then rgb(102,0,102)
	else rgb(0,0,0)

############################# Card sorting / numbering
card field:
	type: text
	name: number
	save value: false
	script:      card_number() + "/" + card_count()
	card list visible: true
	card list column: 6
	card list width: 50
	card list name: #
	card list alignment: right
	editable: false
	show statistics: false

############################################################## Auto replace
auto replace:
	match: (C)
	replace: ©
auto replace:
	match: AE
	replace: Æ
	whole word: false
auto replace:
	match: TM
	replace:whole word: false
auto replace:
	match: --
	replace:auto replace:
	# note the spaces
	match:
		 - 
	replace:

Error
Spoiler:
• variable not set: card_number
while updating card value 'number'

What I need help with
Spoiler:
• I need the set field to display a set symbol like in the magic template, but it only needs to display in black.
• I need the number field to display the collectors number of the card. That is wherefrom the sole error originates, my attempts at this.
• I need the rarity field to display one's choice of common, uncommon, and rare symbols. I have the images, it's just that building the choice field was confusing me.
• In both the rules text and flavor text fields, text doesn't wrap. It extends beyond the bounds of the field. How can I get the text to wrap properly?

Anyone able to help? Thanks!


Edit by Pichoro: I'm editing this first post to include the links to a sample image and the actual template by Siberys, so that everything is a little more centrally located.

Example
Template

Formerly Siberys

Mon, 2008-12-29 05:46
Pichoro
Pichoro's picture

Your error is arising because you deleted the "card_number" script. Search the Magic game/script file, and you'll find it. Problem is, it'll probably be dependant on some variable that no longer matter for this template, and its probably going to throw more errors when you paste it in. What is the sorting pattern for Dreamblade? That is, what order should these sort in?

Is this template for cards, or for something else? I've never played Dreamblade, so be gentle in your explanation. A happy smile

For the set symbol field, copy the rarity field from Magic, and rename it "symbol" or something like that. Delete all options except "common", and in the game file, give it "editable: false". You'll also need to copy the symbol set field from the Magic game file.

For wrapping text, give the fields "multi line: true" in the game file.

For the rarity field in the style file:

	rarity:
		right: #
		top : #
		width: #
		height: #
		z index: #
		render style: image
		choice images:
			common: common.png
			uncommon: uncommon.png
			rare: rare.png

For the rarity field in the game file:

card field:
	type: choice
	name: rarity
	icon: stats/rarity.png
	position hint: 100
	choice: common
	choice: uncommon
	choice: rare
	description: The rarity of the card, to edit the symbol switch to the 'set info' tab

I hope you'll post a complete version of this when you're done, as it is apparently for a real, and now cancelled game. I also hope you'll post the Serrated Dawn expansion. I've been doing something similar, working on the unreleased expansion for Hecatomb.

Did anything ever come of your Magi-Nation template?

Mon, 2008-12-29 06:41
Kraken Eye
Kraken Eye's picture

The sorting order is by aspect (color, essentially), then alphabetically; Valor, Madness, Fear, Passion, Multi, None

The template is for fold-up miniatures; It prints a strip, which you cut out, fold, and glue. It should turn out like an upside-down "T"; Instead of a mini, there will be a standing bit with a picture. For reference of what an actual DB mini looks like, see HERE and HERE

I'll try your code and suggestions. Hopefully they'll work...

As for posting it, sure, once it's finished. I made no real effort to stick to actual formatting, though; I just went with what looked nice.

For MND, I think I've gotten enough of an understanding of MSE coding to be able to do it, but finding blank images remains a problem.

Formerly Siberys

Mon, 2008-12-29 07:43
Pichoro
Pichoro's picture

Then your sort script should look something like this:

init script:
	sort_index := {
		aspect := card.background
		if aspect == "Valor" then "A"
		else if aspect == "Madness" then "B"
		else if aspect == "Fear" then "C"
		else if aspect == "Passion" then "D"
		else if aspect == "Multi" then "E"
		else "F"
	}
	# Process the name for sorting rules (specifically, remove "The", "A", and "And" at the beginning, and make lowercase)
	sort_name :=
		replace@(match: "^(The|An?) ", replace: "") +
		to_lower
	
	card_number := {
		position (
			of: card
			in: set
			order_by: { sort_index() + sort_name(card.name) }
		) + 1
	}
	card_count := {
		number_of_items(in: set)
	}

Other Advice:
- I highly recommend de-capitalizing all instances of "Valor", "Madness", "Fear", "Passion", "Multi", "None", and "Dreamblade" in your game file, style file, symbol-font file, and file and folder names. Using capitalization can sometimes lead to unexpected errors, including errors in the future that do not currently occur. What's more, when such errors arise, fixing them by de-capitalizing the words can cause loss of set file information for users of the template. Thus, it is always recommended to follow standard procedure and use lower case only for choices in choice fields, field names, and all file names.

Mon, 2008-12-29 16:40
Kraken Eye
Kraken Eye's picture

Okay; I've got everything working except the set symbol. I get no error messages, but just can't change the symbol - it doesn't even show up. What am I messing up?

Game

Spoiler:
mse version: 0.3.7
short name: DBM
full name: Dreamblade
icon: card-back.png
position hint: 01

version: 2008-12-26

############################################################## Set fields
set field:
	type: info
	name: Set Information
set field:
	type: text
	name: title
	identifying: true
set field:
	type: text
	name: description
	multi line: true
set field:
	type: symbol
	name: symbol
	description: The symbol for this set, double click to edit

############################# Default style
default set style:
	title:
		padding left: 2
		font:
			size: 16
init script:
	sort_index := {
		aspect := card.background
		if aspect == "valor" then "A"
		else if aspect == "madness" then "B"
		else if aspect == "fear" then "C"
		else if aspect == "passion" then "D"
		else if aspect == "multi" then "E"
		else "F"
	}
	# Process the name for sorting rules (specifically, remove "The", "A", and "And" at the beginning, and make lowercase)
	sort_name :=
		replace@(match: "^(The|An?) ", replace: "") +
		to_lower
	
	card_number := {
		position (
			of: card
			in: set
			order_by: { sort_index() + sort_name(card.name) }
		) + 1
	}
	card_count := {
		number_of_items(in: set)
	}

############################################################## Card fields
card field
	type: text
	name: name
	card list visible: true
	card list column: 1
	card list width: 100
	card list name: Name
	card list alignment: right
	identifying: true
	show statistics: false
card field:
	type: image
	name: imageone
	show statistics: false
card field:
	type: image
	name: imagetwo
	show statistics: false
card field
	type: text
	name: topname
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: lineage
	card list visible: true
	card list column: 2
	card list width: 100
	card list name: Lineage
	card list alignment: right
	identifying: true
	show statistics: false
card field
	type: text
	name: rule
	card list visible: false
	multi line: true
	identifying: true
	show statistics: false
card field
	type: text
	name: summary
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: flavor
	card list visible: false
	multi line: true
	identifying: true
	show statistics: false
card field
	type: text
	name: cost
	card list visible: true
	card list column: 3
	card list width: 100
	card list name: Cost
	card list alignment: right
	identifying: true
	show statistics: false
card field
	type: text
	name: topcost
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: power
	card list visible: true
	card list column: 4
	card list width: 50
	card list name: P
	card list alignment: right
	identifying: true
	show statistics: false
card field
	type: text
	name: defenselife
	card list visible: true
	card list column: 5
	card list width: 50
	card list name: D/L
	card list alignment: right
	identifying: true
	show statistics: false
card field
	type: text
	name: toppower
	card list visible: false
	identifying: true
	show statistics: false
card field
	type: text
	name: topdefenselife
	card list visible: false
	identifying: true
	show statistics: false
card field:
	type: choice
	name: set
	position hint: 100
	choice: common
	initial: common
	card list visible: true
	card list column: 6
	description: The rarity of the card, to edit the symbol switch to the 'set info' tab
	choice colors:
		common:     rgb(33,33,33)
card field
	type: choice
	name: rarity
	choice: common
	choice: uncommon
	choice: rare
card field:
	type: choice
	name: background
	save value: true
	choice: valor
	choice: fear
	choice: madness
	choice: passion
	choice: multi
	choice: none

############################################################## Card list
card list color script:
	input := card.background
	if input == "valor" then rgb(0,0,0)
	else if input == "fear" then rgb(51,102,0)
	else if input == "madness" then rgb(139,137,137)
	else if input == "passion" then rgb(68,0,0)
	else if input == "multi" then rgb(221,204,0)
	else if input == "none" then rgb(0,0,0)
	else rgb(0,0,0)

############################# Card sorting / numbering
card field:
	type: text
	name: card number
	save value: false
	script:      card_number() + "/" + card_count()
	sort script: card.card_number
	card list visible: true
	card list column: 6
	card list width: 50
	card list name: #
	card list alignment: right
	editable: false
	show statistics: false

############################################################## Auto replace
auto replace:
	match: (C)
	replace: ©
auto replace:
	match: AE
	replace: Æ
	whole word: false
auto replace:
	match: TM
	replace:whole word: false
auto replace:
	match: --
	replace:auto replace:
	# note the spaces
	match:
		 - 
	replace:

Style
Spoiler:
mse version: 0.3.7
game: Dreamblade
short name: Minis
full name: Minis
icon: card-sample.png
position hint: 001

version: 2008-12-26
depends on: Dreamblade.mse-game                     2008-12-26
depends on: Dreamblade-symbol.mse-symbol-font 2008-12-26

card width: 450
card height: 2700
card dpi: 300

############################################################## Extra scripts
init script:
	card_background := {
		colors :=
			if chosen(choice:"valor") then "valor"
			else if chosen(choice:"fear") then "fear"
			else if chosen(choice:"madness") then "madness"
			else if chosen(choice:"passion") then "passion"
			else if chosen(choice:"multi") then "multi"
			else if chosen(choice:"none") then "none"
			else "none"
		colors + ".png"
	}
set info style:
	symbol:
		variation:
			name: invertedcommon
			border radius: 0.10
			fill type: solid
			fill color:   rgb(255,255,255)
			border color: rgb(0,0,0)
	symbol:
		variation:
			name: common
			border radius: 0.10
			fill type: solid
			fill color:   rgb(0,0,0)
			border color: rgb(255,255,255)
############################################################## Extra style options
styling field:
	type: choice
	name: border font color
	initial: White
	choice: Black
	choice: White
styling field:
	type: choice
	name: text size
	initial: normal
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the rules text font.
styling field:
	type: choice
	name: flavor size
	initial: small
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the flavor text font.
styling field:
	type: choice
	name: name size
	initial: normal
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the name font.
styling field:
	type: choice
	name: lineage size
	initial: normal
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the lineage font.
styling field:
	type: choice
	name: summary size
	initial: normal
	choice: normal
	choice: small
	choice: smaller
	choice: tiny
	choice: diminutive
	description: Set the size of the summary font.
styling field:
	type: boolean
	name: inverted common symbol
	description: Should the common rarity symbol be inverted, like in Coldsnap?
	initial: no
styling style:
	inverted common symbol:
		choice images:
			no:  { symbol_variation(symbol: set.symbol, variation: "common") }
			yes: { symbol_variation(symbol: set.symbol, variation: "invertedcommon") }

############################################################## Card fields
card style:
	background:
		left:	0
		top:	0
		width:	450
		height:	2700
		z index: 0
		render style: image
		popup style: in place
		image: { card_background() }
	name:
		left: 20
		top : 2260
		width: 410
		height: 60
		alignment: middle center shrink-overflow
		z index: 1
		font:
			name: MatrixBoldSmallCaps
			size:
				script:
					if styling.name_size == "small" then 48
					else if styling.name_size == "smaller" then 46
					else if styling.name_size == "tiny" then 44
					else if styling.name_size == "diminutive" then 42
					else 50
			color: rgb(0,0,0)
	topname:
		left: 60
		top : 2205
		width: 365
		height: 35
		alignment: middle left shrink-overflow
		z index: 1
		font:
			name: MatrixBoldSmallCaps
			size: 30
			color:
				script:
					if styling.border_font_color == "Black" then rgb(0,0,0)
					else rgb(255,255,255)
	lineage:
		left: 20
		top : 2315
		width: 410
		height: 25
		alignment: top center shrink-overflow
		z index: 1
		font:
			name: Times New Roman
			style: italic
			size:
				script:
					if styling.lineage_size == "small" then 18
					else if styling.lineage_size == "smaller" then 16
					else if styling.lineage_size == "tiny" then 14
					else if styling.lineage_size == "diminutive" then 12
					else 20
			color: rgb(0,0,0)
	rule:
		left: 20
		top : 2350
		width: 410
		height: 245
		font:
			name: Arial
			#size: 18
			size:
				script:
					if styling.text_size == "small" then 16
					else if styling.text_size == "smaller" then 14
					else if styling.text_size == "tiny" then 12
					else if styling.text_size == "diminutive" then 10
					else 18
			color: rgb(0,0,0)
		symbol font:
			name: Dreamblade-symbol
			size: 25
		alignment: top left
		z index: 1
	summary:
		left: 60
		top : 2165
		width: 365
		height: 35
		alignment: middle left shrink-overflow
		z index: 1
		font:
			name: Arial
			weight: bold
			size:
				script:
					if styling.summary_size == "small" then 25
					else if styling.summary_size == "smaller" then 23
					else if styling.summary_size == "tiny" then 21
					else if styling.summary_size == "diminutive" then 19
					else 27
			color:
				script:
					if styling.border_font_color == "Black" then rgb(0,0,0)
					else rgb(255,255,255)
		symbol font:
			name: Dreamblade-symbol
			size: 27
	flavor:
		left: 20
		top : 2520
		width: 410
		height: 75
		font:
			name: Times New Roman
			style: italic
			size:
				script:
					if styling.flavor_size == "small" then 14
					else if styling.flavor_size == "smaller" then 13
					else if styling.flavor_size == "tiny" then 12
					else if styling.flavor_size == "diminutive" then 11
					else 16
			color: rgb(99,99,99)
		alignment: bottom center
		z index: 2

	cost:
		left: 25
		top: 2605
		height: 40
		width: 175
		alignment: middle left
		symbol font:
			name: Dreamblade-symbol
			size: 30
		always symbol: true
		z index: 1
	topcost:
		left: 40
		top: 460
		height: 35
		width: 210
		angle: 270
		alignment: middle left
		symbol font:
			name: Dreamblade-symbol
			size: 30
		always symbol: true
		z index: 1
	power:
		left: 250
		top : 2602
		width: 40
		height: 35
		alignment: top center shrink-overflow
		z index: 1
		font:
			name: Arial
			weight: bold
			size: 30
			color: rgb(255,255,255)
	toppower:
		left: 20
		top : 2165
		width: 35
		height: 35
		alignment: top center shrink-overflow
		z index: 1
		font:
			name: Arial
			weight: bold
			size: 30
			color:
			color:
				script:
					if styling.border_font_color == "Black" then rgb(0,0,0)
					else rgb(255,255,255)
	defenselife:
		left: 255
		top : 2602
		width: 170
		height: 35
		alignment: top right shrink-overflow
		z index: 1
		font:
			name: Arial
			size: 30
			color: rgb(255,255,255)
	topdefenselife:
		left: 20
		top : 2205
		width: 35
		height: 35
		alignment: top center shrink-overflow
		z index: 1
		font:
			name: Arial
			size: 30
			color:
				script:
					if styling.border_font_color == "Black" then rgb(0,0,0)
					else rgb(255,255,255)
	imageone:
		left:	20
		top:	1475
		width:	410
		height:	535
		mask: mask.png
		z index: 1
	imagetwo:
		left:	430
		top:	1220
		width:	410
		height:	535
		mask: mask.png
		angle: 180
		z index: 1
	set:
		right: 210
		top : 2655
		width: 35
		height: 35
		render style: image
		alignment: middle right
		choice images:
			# Images based on the set symbol
			common:
				script:
					if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
					else symbol_variation(symbol: set.symbol, variation: "common")
	rarity:
		right: 390
		top : 2655
		width: 35
		height: 35
		z index: 1
		render style: image
		choice images:
			common: common.png
			uncommon: uncommon.png
			rare: rare.png
	card number:
		left: 250
		top : 2655
		width: 135
		height: 35
		alignment: middle center shrink-overflow
		z index: 1
		font:
			name: Arial
			size: 20

Formerly Siberys

Mon, 2008-12-29 19:09
Pichoro
Pichoro's picture

I'm not sure.

Questions:

1.) Is the symbol field visible on the set tab? If so, are you able to edit it there? If the answer to either of these questions is "No.", then the problem is in the set field in the game file.

2.) Is the symbol field visible on the card image when you have the template loaded? Note that this does not equate to being able to see a symbol. What I'm asking is more like "Can you hover the mouse where the field should be and see a description in the bottom bar of MSE?" If the answer to that is "No.", then its an error in the style file, possibly an error dealing with z indexes. Perhaps the z index is too low and its below something?

Other Unrelated Miscellaneous Suggestions:
1.) Give the symbol field in the game file "show statistics: false". This would clean up the stats screen a little.
2.) Include a booster generator. They're very easy to do, if you know the booster contents (as far as common-uncommon-rare numbers). I would be happy to help you with this, as well as show you a simple one. Here's one from Hecatomb:

############################################################## Card pack items
pack item:
	name: common
	filter: card.rarity == "common"
pack item:
	name: uncommon
	filter: card.rarity == "uncommon"
pack item:
	name: rare
	filter: card.rarity == "rare"
############################################################## Card packs
pack type:
	name: tournament pack
	item:
		name: rare
		amount: 2
	item:
		name: uncommon
		amount: 10
	item:
		name: common
		amount: 28
pack type:
	name: booster pack
	item:
		name: rare
		amount: 1
	item:
		name: uncommon
		amount: 3
	item:
		name: common
		amount: 9
pack type:
	name: additional common
	item:
		name: common
pack type:
	name: additional uncommon
	item:
		name: uncommon
pack type:
	name: additional rare
	item:
		name: rare

Pack types are the available packs that can be added or subtracted on the "Random" tab in the editor. Pack types use pre-defined pack items, such as common, uncommon, rare, and promo to build packs.

Mon, 2008-12-29 20:03
Kraken Eye
Kraken Eye's picture

For one and two, the answers are yes, no. It turned out to be the z index... Gotta say, that's sorta embarrassing. Stick out your tongue

Other suggestions:
1) implemented
2) I'm not sure how boosters are distributed; there are 7 to a pack, so I think it's 1 Rare, 2 Uncommons, and 4 Commons, or else 1-3-3. I'll add it in once I figure out the distribution. That would go in the game file, no?

Now, it's definitely not perfectly formatted, so I'll talk to some people on the dreamblade forums about formatting it properly. Here's the template and a print example, in PDF format. It prints 5 minis to a page, as shown.

Example
Template

NOTE: The template picture is very long. On my computer (which has screen dimensions of 1440*900), I have to set the card to display at 50% size, hen have the orientation set to 90 or 270. You may have to shrink it even farther if you've a smaller screen.

Formerly Siberys

Mon, 2008-12-29 20:09
Pichoro
Pichoro's picture

If every pack has a rare, its probably 1-2-4. If it were 1-3-3, uncommons and commons would really be about the same rarity. In fact, if there were fewer uncommons in the set with that distribution, uncommons would be more common than commons. A happy smile

The symbol font is rather messy. If you're using strange characters like brackets and tildes and such, you really need to include an insert symbol menu, like in the bottom of Magic symbol fonts. And is there a reason that "\" is 15, rather than just, I dunno... "15"? It might have seemed like 15 couldn't be used because you used 1 and 5, but if you put 15 higher in the list, it'll work, similar to the way "W/U" and "W" can both work in Magic, as long as "W/U" is higher. Why ` instead of 0?

Mon, 2008-12-29 20:43
Kraken Eye
Kraken Eye's picture

I set it up so a single character represented a single symbol, and a capital character represented a white symbol. I could do it with longer strings, I guess.

Formerly Siberys

Mon, 2008-12-29 21:24
Pichoro
Pichoro's picture

Well, its just that if you look at a text output for something like what you're doing, it looks like gibberish, and its rather unintuitive. With longer strings, people familiar with the game can make sense of it from text. That may seem minor, to be worrying about text outputs, but people commonly set rules text to show in their card list, and people tend to communicate card ideas via text spoilers in forums. And the problem with it being unintuitive is that nobody else can use it, unless they think exactly like you. A happy smile

Why did you shut off all the stats? And there are no descriptions, so people can't find their way around the template. The "topname" could be scripted to be identical to the regular name, so you only enter that information once. The second image could be a copy of the first, without having to enter it twice. I did this with Mausoleum, using a bit of code by Idle Muse. Mausoleum: http://mtg.pifro.com/viewtopic.php?f=20&t=482

I dunno. I mean, I know it probably sounds like I'm complaining a lot, I was just hoping for a better functioning template. The problem is that with stuff like that going on, nobody can really provide a better version without looking like the bad guy stepping on your toes and stealing your code. But at the same time, this is a template for an actual game; it deserves to be well functioning.

Edit: I've found confirmation of rarity distributions in packs, thanks to some "virtual booster"s WotC released.

Booster: 1 rare, 2 uncommon, 4 common.
Starter: 1 rare, 3 uncommon, 12 common.

Tue, 2008-12-30 02:02
Kraken Eye
Kraken Eye's picture

With most of the stuff, if it's not there it's because I'm not really skilled in MSE. I can hack something together, but stats aren't there because I'm not sure how to work them.

As for matching thing like name and topname, it's something I wanted to do, but, again, it seemed a bit complicated. Also, Locations don't have that information on the top - their sculpt takes up the whole space on minis - and the summary field is essentially a toprule field with truncated rules text. What would the code look like?

And I understand the "complaining". It's all for the betterment of the code, so I can take it. A happy smile

I'll change the symbol font. Not a big change, anyway, though a white 15 is gonna end up looking like !%...

EDIT: I got the pic to duplicate properly. Now I just need it to apply to text... How can I do that?

Formerly Siberys

Tue, 2008-12-30 02:32
Pichoro
Pichoro's picture

Well, the summary field I noticed was different; you can't really copy it. Copying a field somewhere else is easy; just give the copy "script: {card.whatever}" in the game file, where whatever is the name of the field. But its more complicated now; I didn't know Locations didn't have it. Two alternatives:

1.) Act like they do have it.
2.) Is there any way to use the other fields to tell which minis are locations? Like, do they have a typeline or a keyword or something that identifies them?

Any field that is a copy should also be given "editable: false", "show statistics: false" and "save value: false" in the game file. They can also lose descriptions.

Why does white 15 need to be complicated? My advice would be to make either white or black 15 just "15", and the other "o15". You know, like the way WotC officially uses a lower case o to denote a mana circle.

The stats aren't complicated at all; just go through fields that are useful to be able to view graphs on and remove "show statistics: false" from them.

Tue, 2008-12-30 03:07
Kraken Eye
Kraken Eye's picture

Well, I went with option 1, but it seems that I'm missing a step because an error says "can't convert from function to string". How can I fix this?

As for the font, I changed it, but when I type, say, o15, it displays each character separately - and I see the white 1 (o1) and the black 5 (5).

Didn't realize stats were so simple. Fixed.

The new update is downloadable at the same location as the previous.

Formerly Siberys

Tue, 2008-12-30 03:25
Idle Muse
Idle Muse's picture

Quote:
Well, I went with option 1, but it seems that I'm missing a step because an error says "can't convert from function to string". How can I fix this?

My personal experience is that these are the worst types of errors... not necessarily because you've done something bad, but because they are difficult to track down and slay. Basically it means what it says; somewhere in the script it indicates, the program expected a string (which is program-speak for data in the form of text), but instead it got a 'function', such as a call to a method or whatever... its kinda dumb, because the method is probably returning a string anyway (as long as your script logic is sound), so you just need to stick in a 'to_text(...)' somewhere to force the program to recognise it as a string. If you can't find it, post the whole script section indicated.

Formerly known as Lordpenguin.
Download DraftWithMSE to draft custom MSE sets!

Tue, 2008-12-30 03:40
Kraken Eye
Kraken Eye's picture

All I did to call down the error was add "script: {card.whatever}" to each of the duplicate fields in the game file, so I'm pretty certain that's where the error is coming from. Stick out your tongue

How would I make this convert to a string? "script: to_text(card.whatever)", maybe?

Formerly Siberys

Tue, 2008-12-30 03:43
Idle Muse
Idle Muse's picture

That would makes sense. Actually, to_text is a bit different (it cleans tagged text), you should use to_string instead.

script: to_string(card.whatever)

Formerly known as Lordpenguin.
Download DraftWithMSE to draft custom MSE sets!

Tue, 2008-12-30 03:52
Kraken Eye
Kraken Eye's picture

That worked. I still have the symbol problem, though.

Also, the download link has been updated.

Edit: Updated again, with booster generator.

Formerly Siberys

Tue, 2008-12-30 04:16
Pichoro
Pichoro's picture

That's interesting that you found yourself with that error, Siberys, as I had made the change I prescribed myself and got no such error.

Tue, 2008-12-30 15:00
Kraken Eye
Kraken Eye's picture

here's the current symbol-font

What should I do to fix it? Like I said, typing "o15" produces a white 1 and a black 5, not a white 15 as intended.

EDIT: I fixed it! just had to move o15 to before o1, as you explained earlier. The updated template is now uploaded, same link as before.

EDIT EDIT: I just realized I made another stupid mistake with the symbol-font. Fixed and uploaded, and this should be the last time besides formatting changes.

Formerly Siberys

Tue, 2008-12-30 16:44
Pichoro
Pichoro's picture

Pretty sweet. Are you going to announce this over on the Wizards board? Are there bandwidth concerns with your download location, or anything? I ask because if its okay, I think it should be announced over there, and I'd like to move your download link into the first post, and link to this in the MSE template listings. What do you think?

Tue, 2008-12-30 17:15
Kraken Eye
Kraken Eye's picture

I already have - here.

Go ahead and link to this in the template listing. I don't mind at all. The formatting and symbols will likely be changed in the future, though. The formatting isn't really "official", and the symbols in the symbol font are rather low quality.

Formerly Siberys

Wed, 2009-01-28 21:36
Kraken Eye
Kraken Eye's picture

An update;

I have found much better quality symbols, and incorporated them into the template. I have also finished modifying the formatting to match the official minis - except for the name-font, because I don't have it, so I used MatrixBoldSmallCaps instead.

A more full explanation can be found HERE

Formerly Siberys

Wed, 2009-01-28 21:46
Pichoro
Pichoro's picture

Siberys, if you tell me where I can e-mail you, I may be able to help you with your font problem. I'll even delete your e-mail addy after I grab it.

Thu, 2009-01-29 01:20
Kraken Eye
Kraken Eye's picture

I'm not sure how you can help with the font, though; From everything I can tell, the fonts used on the minis are rather expensive and aren't freeware, so I couldn't distribute them along with the template.

Formerly Siberys

Tue, 2009-02-03 02:10
Pichoro
Pichoro's picture

Insert symbol menu, please... Its really easy and makes your template about a billion times easier for others to use. I'll even hand you one that works. Just tack it on the end of the symbol-font file, and update it when you change things.

Spoiler:
##############################################################
# Insert-symbol menu
insert symbol menu:
	item: 0
	item: 1
	item: 2
	item: 3
	item: 4
	item: 5
	item: 6
	item: 7
	item: 8
	item: 9
	item: 10
	item: 11
	item: 12
	item: 13
	item:
		type: line
	item: o0
	item: o1
	item: o2
	item: o3
	item: o4
	item: o5
	item: o6
	item: o7
	item: o8
	item: o9
	item: o10
	item: o11
	item: o12
	item: o13
	item:
		type: line
	item: v
	item: p
	item: m
	item: f
	item: b
	item: d
	item: t
	item: q
	item: u
	item: r
	item: a
	item: s
	item: c
	item: h
	item: x
	item: e
	item: i
	item: o
	item:
		type: line
	item: ov
	item: op
	item: om
	item: of
	item: ob
	item: od
	item: ot
	item: oq
	item: ou
	item: or
	item: oa
	item: os
	item: oc
	item: oh
	item: ox
	item: oe
	item: oi
	item: oo

Sun, 2010-01-31 19:49
Disposable Hero
Disposable Hero's picture

When I use this template, I cannot type anything, insert images, or anything at all. Please help!

Tue, 2010-02-02 19:18
Kraken Eye
Kraken Eye's picture

In order for it to print at the right size and res, I had to make the image kinda large. Try doing the following;

Cards ==> Orientation ==> 180 degrees

This'll flip the strip so the text boxes are visible.

Then Edit ==> Preferences ==> Display

Change the zoom until you can see everything you need to. On my computer, 50% works, but I have a 17" screen, so you may need more or less zoom.

This does mean you'd have to type upside-down, unfortunately.

Oh, and remember to change it back before going to another template. Otherwise, you magic cards'll have the same preferences applied to them.

Formerly Siberys

Tue, 2010-02-02 21:26
Disposable Hero
Disposable Hero's picture

Thanks a load.

Sat, 2013-09-07 01:41
Zetan

Does anyone still have this? It looks like the template link is broken now, and I'd really like to get my hands on this one...