How to modify template used depending on cardtype?

Login or register to post comments
Fri, 2007-07-13 16:25
tReason
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:
Spell
Unit
Structure
etc

Thanks in advanced.

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

Do you use color at all?


Custom file library for MSE2b: http://pifro.com/mtg/
My custom sets:
The Taint: http://magicseteditor.sourceforge.net/node/183
Mare Harenum: http://magicseteditor.sourceforge.net/node/303
Enigma: http://magicseteditor.sourceforge.net/node/719
Fri, 2007-07-13 17:35
tReason
tReason's picture

Nope.

Fri, 2007-07-13 19:22
Twan
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.
	script:
		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
tReason's picture

Thanks!

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.