How to modify template used depending on cardtype?

Fri, 2007-07-13 16:25
tReason's picture

I am trying to develop the game and style files for my own card game, Warzone.

The current problem I have at the moment is what I can do to make MSE change the template depending on the card type.

For example, currently, under M:tg, it automatically changes the template to the land kind when you type in Land for the type line.
What I'm trying to do is to not have it change the template for just lands, but for anything else I happen to want it to change for, such as:

Thanks in advanced.

Fri, 2007-07-13 16:55
Pichoro's picture

Do you use color at all?

Custom file library for MSE2b:
My custom sets:
The Taint:
Mare Harenum:
Fri, 2007-07-13 17:35
tReason's picture


Fri, 2007-07-13 19:22
Site and Project Owner
Twan's picture

You could have a field, card type and have its value determined by a script:

card field:
	type: text
	name: card type
card field:
	type: choice
	name: card background
	choice: spell
	choice: unit
	choice: structure
	editable: false
	# etc.
		if      card.card_type == "Spell" then "spell"
		else if card.card_type == "Unit"  then "unit"
		else "unknown"

The VS template also does something similair. You could use 'default' instead of script and make the card background editable to allow the user to select a different background.

Sat, 2007-07-14 01:59
tReason's picture


It turns out, I went back and re-based my game file on the VS system, and tweaked it, and now it works the way it should.