mse version: 2.0.0
short name: 5eSpells
full name: D&D 5e Spell Cards
icon: card-back.png
version: 2014-12-06
position hint: 01
installer group: 5e-spellcards/style
# *R*
init script:
	range_filter :=
		tag_remove_rule(tag: "<word-list-") + { "<word-list-range>{input}</word-list-range>" }

	duration_filter :=
		tag_remove_rule(tag: "<word-list-") + { "<word-list-duration>{input}</word-list-duration>" }

	casting_filter :=
		tag_remove_rule(tag: "<word-list-") + { "<word-list-casting time>{input}</word-list-casting time>" }

	is_school_abjuration := 
		{ card.school == "Abjuration" }

############################################################## 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

#################################### Card fields

card field:
	type: choice
	name: background
	choice: background
	default: "background"
	show statistics: false

card field:
	type: choice
	name: card color
	choice: abjuration
	choice: conjuration
	choice: divination
	choice: enchantment
	choice: evocation
	choice: illusion
	choice: necromancy
	choice: transmutation
	default: "evocation"
	show statistics: false

card field:
	type: text
	name: level
	identifying: false
	show statistics: true
	card list visible: true
	card list name: Level
	card list column: 1
	card list width: 20
	description: Spell level

card field:
	type: text
	name: name
	identifying: true
	show statistics: false
	card list visible: true
	card list name: Name
	card list column: 1
	card list width: 150
	description: Spell name

card field:
	type: text
	name: school
	identifying: false
	show statistics: true
	card list visible: true
	card list name: Name
	card list column: 2
	card list width: 150
	description: Spell school

############################# Text box
card field:
	type: text
	name: casting time
	position hint: 30
	description: Casting time
	script: casting_filter(value)
	card list visible: false
	multi line: true
	card list column: 5
	
card field:
	type: text
	name: range
	description: Spell range
	card list visible: true
	script: range_filter(value)
	multi line: true
	card list column: 7
	
card field:
	type: text
	name: duration
	description: Spell duration
	card list visible: true
	script: duration_filter(value)
	multi line: true
	card list column: 8
	
card field:
	type: text
	name: describe
	description: Spell description
	multi line: true
	card list visible: false

card field:
	type: choice
	name: vcomp
	choice: none
	choice: verbal
	default: "none"
	
card field:
	type: choice
	name: scomp
	choice: none
	choice: somatic
	default: "none"
	
card field:
	type: choice
	name: mcomp
	choice: none
	choice: material
	default: "none"

card field:
	type: choice
	name: bard
	choice: none
	choice: bard
	default: "none"	

card field:
	type: choice
	name: cleric
	choice: none
	choice: cleric
	default: "none"	

card field:
	type: choice
	name: druid
	choice: none
	choice: druid
	default: "none"	

card field:
	type: choice
	name: paladin
	choice: none
	choice: paladin
	default: "none"	

card field:
	type: choice
	name: ranger
	choice: none
	choice: ranger
	default: "none"	

card field:
	type: choice
	name: sorcerer
	choice: none
	choice: sorcerer
	default: "none"

card field:
	type: choice
	name: warlock
	choice: none
	choice: warlock
	default: "none"

card field:
	type: choice
	name: wizard
	choice: none
	choice: wizard
	default: "none"	
##################################################### Lists

word list:
	name: school
	word: Abjuration
	word: Conjuration
	word: Divination
	word: Enchantment
	word: Evocation
	word: Illusion
	word: Necromancy
	word: Transmutation

word list:
	name: casting time
	word: 1 action
	word: 1 bonus action
	word: 1 minute
	word: 10 minutes
	word: 1 hour
	word: 8 hours

word list:
	name: range
	word: Self
	word: Touch
	word: 10 feet
	word: 30 feet
	word: 60 feet
	word: 90 feet
	word: 120 feet
	word: 150 feet
	word: 500 feet
	word: Unlimited
	
word list:
	name: duration
	word: Instantaneous
	word: Until dispelled
	word: Until dispelled or triggered
	word: Concentration, up to 1 minute
	word: Concentration, up to 10 minutes
	word: Concentration, up to 1 hour
	word: Concentration, up to 8 hours
	word: Concentration, up to 24 hours
	word: 1 round
	word: 1 minute
	word: 8 hours
	word: 24 hours
	word: 10 days

############################################################## 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
auto replace:
	match: - 
	replace: — 