Commit 24687e90 authored by pichoro's avatar pichoro

Added invertedcommon styling choice to magic-extendedart, magic-future, and magic-future-textless.

More font color cleanup in futureshifts.
Added some scripting to magic-future; working towards scripting type symbol.
Big Yu-Gi-Oh update courtesy of artfreakwiu.
parent 16317904
...@@ -37,6 +37,16 @@ init script: ...@@ -37,6 +37,16 @@ init script:
# Use guild mana symbols? # Use guild mana symbols?
guild_mana := { styling.use_guild_mana_symbols } guild_mana := { styling.use_guild_mana_symbols }
############################################################## Set info fields
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)
############################################################## Extra style ############################################################## Extra style
styling field: styling field:
...@@ -73,6 +83,11 @@ styling field: ...@@ -73,6 +83,11 @@ styling field:
choice: short text only choice: short text only
choice: never choice: never
initial: never initial: never
styling field:
type: boolean
name: inverted common symbol
description: Should the common rarity symbol be inverted, like in Coldsnap?
initial: no
styling style: styling style:
popup mana symbols: popup mana symbols:
...@@ -173,15 +188,21 @@ card style: ...@@ -173,15 +188,21 @@ card style:
rarity: rarity:
right: 344 right: 344
top : 445 top : 445
width: 44 width: 40
height: 22 height: 20
z index: 3 z index: 3
alignment: middle right alignment: middle right
render style: image render style: image
choice images: choice images:
# Images based on the set symbol # Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common") basic land:
common: script: symbol_variation(symbol: set.symbol, variation: "common") script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
common:
script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon") uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon")
rare: script: symbol_variation(symbol: set.symbol, variation: "rare") rare: script: symbol_variation(symbol: set.symbol, variation: "rare")
special: script: symbol_variation(symbol: set.symbol, variation: "special") special: script: symbol_variation(symbol: set.symbol, variation: "special")
......
...@@ -77,6 +77,16 @@ init script: ...@@ -77,6 +77,16 @@ init script:
else "white" else "white"
} }
############################################################## Set info fields
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)
############################################################## Extra style options ############################################################## Extra style options
styling field: styling field:
...@@ -97,13 +107,10 @@ styling field: ...@@ -97,13 +107,10 @@ styling field:
choice: old choice: old
choice: diagonal T choice: diagonal T
styling field: styling field:
type: choice type: boolean
name: font color name: inverted common symbol
description: What color should the font on cards be? description: Should the common rarity symbol be inverted, like in Coldsnap?
initial: automatic initial: no
choice: automatic
choice: black
choice: white
styling style: styling style:
use guild mana symbols: use guild mana symbols:
...@@ -156,13 +163,19 @@ card style: ...@@ -156,13 +163,19 @@ card style:
size: 18 size: 18
color: color:
script: script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0) if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0) else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then ( else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255) contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0) else rgb(0,0,0)
) else font_color(card.card_color) ) else font_color(card.card_color)
casting cost: casting cost:
...@@ -213,13 +226,19 @@ card style: ...@@ -213,13 +226,19 @@ card style:
size: 14 size: 14
color: color:
script: script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0) if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0) else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then ( else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255) contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0) else rgb(0,0,0)
) else font_color(card.card_color) ) else font_color(card.card_color)
separator color: rgb(128,128,128) separator color: rgb(128,128,128)
...@@ -233,8 +252,14 @@ card style: ...@@ -233,8 +252,14 @@ card style:
render style: image render style: image
choice images: choice images:
# Images based on the set symbol # Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common") basic land:
common: script: symbol_variation(symbol: set.symbol, variation: "common") script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
common:
script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon") uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon")
rare: script: symbol_variation(symbol: set.symbol, variation: "rare") rare: script: symbol_variation(symbol: set.symbol, variation: "rare")
special: script: symbol_variation(symbol: set.symbol, variation: "special") special: script: symbol_variation(symbol: set.symbol, variation: "special")
...@@ -253,13 +278,19 @@ card style: ...@@ -253,13 +278,19 @@ card style:
weight: bold weight: bold
color: color:
script: script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0) if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0) else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then ( else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255) contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0) else rgb(0,0,0)
) else font_color(card.card_color) ) else font_color(card.card_color)
separator color: rgb(200,0,0) separator color: rgb(200,0,0)
......
...@@ -103,10 +103,56 @@ init script: ...@@ -103,10 +103,56 @@ init script:
) )
} }
paintbrush_font:= { if contains(card.card_color, match:"land") then "white" paintbrush_color:= { if contains(card.card_color, match:"land") then "white"
else if contains(card.card_color, match:"artifact") or contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"white") then "black" else if contains(card.card_color, match:"artifact") or contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"white") then "black"
else "white" else "white"
} }
typesymbol_color:= { if contains(card.card_color, match:"artifact") then "black"
else if card.card_color == "multicolor" then "black"
else if card.card_color == "white" then "black"
else if card.card_color == "land" then (
if contains(card.card_color, match:"black") or
contains(card.card_color, match:"blue") or
contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then "white"
else "black"
) else "white"
}
#Use of "Enchant" rather than "Enchantment" below is intentional, to allow functionality for users who wish to use "Enchant Creature" and the like.
typesymbol_type:= { if contains(card.type, match:"Instant") then "instant"
else if contains(card.type, match:"Sorcery") then "sorcery"
else if contains(card.type, match:"Tribal") then "multitype"
else if contains(card.type, match:"Planeswalker") then "multitype"
else if contains(card.type, match:"Creature") and
not contains(card.type, match:"Land") and
not contains(card.type, match:"Artifact") and
not contains(card.type, match:"Enchant") then "creature"
else if contains(card.type, match:"Artifact") and
not contains(card.type, match:"Land") and
not contains(card.type, match:"Creature") and
not contains(card.type, match:"Enchant") then "artifact"
else if contains(card.type, match:"Land") and
not contains(card.type, match:"Creature") and
not contains(card.type, match:"Artifact") and
not contains(card.type, match:"Enchant") then "land"
else if contains(card.type, match:"Enchant") and
not contains(card.type, match:"Land") and
not contains(card.type, match:"Artifact") and
not contains(card.type, match:"Creature") then "enchantment"
else "multitype"
}
############################################################## Set info fields
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)
############################################################## Extra style options ############################################################## Extra style options
...@@ -140,6 +186,11 @@ styling field: ...@@ -140,6 +186,11 @@ styling field:
choice: short text only choice: short text only
choice: never choice: never
initial: never initial: never
styling field:
type: boolean
name: inverted common symbol
description: Should the common rarity symbol be inverted, like in Coldsnap?
initial: no
styling style: styling style:
use guild mana symbols: use guild mana symbols:
...@@ -196,13 +247,19 @@ card style: ...@@ -196,13 +247,19 @@ card style:
size: 18 size: 18
color: color:
script: script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0) if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0) else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then ( else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255) contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0) else rgb(0,0,0)
) else font_color(card.card_color) ) else font_color(card.card_color)
casting cost: casting cost:
...@@ -254,13 +311,19 @@ card style: ...@@ -254,13 +311,19 @@ card style:
size: 14 size: 14
color: color:
script: script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0) if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0) else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then ( else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255) contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0) else rgb(0,0,0)
) else font_color(card.card_color) ) else font_color(card.card_color)
separator color: rgb(128,128,128) separator color: rgb(128,128,128)
...@@ -274,8 +337,14 @@ card style: ...@@ -274,8 +337,14 @@ card style:
render style: image render style: image
choice images: choice images:
# Images based on the set symbol # Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common") basic land:
common: script: symbol_variation(symbol: set.symbol, variation: "common") script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
common:
script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon") uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon")
rare: script: symbol_variation(symbol: set.symbol, variation: "rare") rare: script: symbol_variation(symbol: set.symbol, variation: "rare")
special: script: symbol_variation(symbol: set.symbol, variation: "special") special: script: symbol_variation(symbol: set.symbol, variation: "special")
...@@ -341,13 +410,19 @@ card style: ...@@ -341,13 +410,19 @@ card style:
weight: bold weight: bold
color: color:
script: script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0) if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0) else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then ( else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255) contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0) else rgb(0,0,0)
) else font_color(card.card_color) ) else font_color(card.card_color)
separator color: rgb(200,0,0) separator color: rgb(200,0,0)
...@@ -432,7 +507,7 @@ extra card field: ...@@ -432,7 +507,7 @@ extra card field:
extra card field: extra card field:
type: choice type: choice
name: paintbrush name: paintbrush
script: paintbrush_font(value) script: paintbrush_color(value)
editable: false editable: false
choice: black choice: black
choice: white choice: white
...@@ -487,7 +562,7 @@ extra card style: ...@@ -487,7 +562,7 @@ extra card style:
black multitype: /magic-future-common.mse-include/multitype_black.png black multitype: /magic-future-common.mse-include/multitype_black.png
white sorcery: /magic-future-common.mse-include/sorcery_white.png white sorcery: /magic-future-common.mse-include/sorcery_white.png
black sorcery: /magic-future-common.mse-include/sorcery_black.png black sorcery: /magic-future-common.mse-include/sorcery_black.png
paintbrush: paintbrush
right: { ( if card.pt != "" then 275 else 338 ) - card_style.illustrator.content_width } right: { ( if card.pt != "" then 275 else 338 ) - card_style.illustrator.content_width }
top : 476 top : 476
width: 40 width: 40
......
mse version: 0.3.2 mse version: 0.3.4
# Symbol font for level symbols # Symbol font for level symbols
image font size: 16 image font size: 16
...@@ -21,6 +21,14 @@ symbol: ...@@ -21,6 +21,14 @@ symbol:
symbol: symbol:
code: # code: #
image: ritual.png image: ritual.png
symbol:
code: [
image: leftbracket.png
image font size: 24
symbol:
code: ]
image: rightbracket.png
image font size: 24
symbol: symbol:
code: * code: *
image: star.png image: star.png
......
mse version: 0.3.2 mse version: 0.3.4
game: yugioh game: yugioh
short name: Standard short name: Standard
icon: card-sample.png icon: card-sample.png
card width: 361 card width: 375
card height: 523 card height: 523
card dpi: 152.6265 card dpi: 300
############################################################## Extra scripts ############################################################## Extra scripts
############################################################## Extra style ############################################################## Extra style
styling field:
type: choice
name: foil image
description: What foil should be on the cards?
initial: none
choice: none
choice: holo image
choice: secret holo image
choice: parallel holo image
styling field:
type: choice
name: foil name
description: What color foil should be used on the name?
initial: normal
choice: normal
choice: silver
choice: gold
styling style:
foil image:
render style: text
foil name:
render style: text
############################################################## Card fields ############################################################## Card fields
card style: card style:
############################# Background stuff ############################# Background stuff
card type: card type:
left: 0 left: 0
top: 0 top: 0
width: 361 width: 375
height: 523 height: 523
z index: -2 z index: -2
render style: image render style: image
...@@ -34,180 +57,211 @@ card style: ...@@ -34,180 +57,211 @@ card style:
legendary dragons: card-dragons.jpg legendary dragons: card-dragons.jpg
spell card: card-spell.jpg spell card: card-spell.jpg
trap card: card-trap.jpg trap card: card-trap.jpg
foils:
left: { if styling.foil_image=="parallel holo image" then 0 else 53}
top: { if styling.foil_image=="parallel holo image" then 0 else 113}
width: { if styling.foil_image=="parallel holo image" then 375 else 269}
height: { if styling.foil_image=="parallel holo image" then 523 else 261}
z index: 5
visible: { styling.foil_image!="none" }
render style: image
popup style: in place
image:
script: if styling.foil_image=="parallel holo image" then "parallelfoil.png" else
if styling.foil_image=="secret holo image" then "secretfoil.png" else "superfoil.png"
############################# Name line ############################# Name line
name: name:
left: 34 left: 35
top : 31 top : 28
width: 250 width: 265
height: 35 height: 35
alignment: bottom shrink-overflow alignment: bottom shrink-overflow
padding bottom: 0 padding bottom: 0
z index: 2 z index: 2
font: font:
name: MatrixRegularSmallCaps name: MatrixRegularSmallCaps
size: 24 size: 24
color: color:
script: if is_nmonster() then rgb(255,255,255) script: if is_nmonster() then rgb(255,255,255)
else rgb(0,0,0) else if styling.foil_name=="silver" then rgb(230,230,230)
else if styling.foil_name=="gold" then rgb(216,199,53)
else rgb(0,0,0)
attribute: attribute:
left: 290 left: 302
top : 31 top : 32
width: 37 width: 35
height: 37 height: 35
z index: 2 z index: 2
render style: image render style: image
popup style: in place popup style: in place
choice images: choice images:
earth: earth.png earth: earth.png
water: water.png water: water.png
fire: fire.png fire: fire.png
wind: wind.png wind: wind.png
light: light.png light: light.png
dark: dark.png dark: dark.png
divine: divine.png divine: divine.png
spell: spell.png spell: spell.png
trap: trap.png trap: trap.png
level: level:
left: 43 left: 45
top : 78 top : 78
height: 25 height: 25
width: 275 width: 285
z index: 2 z index: 2
alignment: middle right alignment: middle right
font: font:
name: MatrixBoldSmallCaps name: MatrixRegularSmallCaps
italic name: Matrix-Bold italic name: Matrix
scale down to: 17 size: 18
size: 17
color: rgb(0,0,0) color: rgb(0,0,0)
symbol font: symbol font:
name: yugioh-standard-levels name: yugioh-standard-levels
alignment: middle center alignment: middle center
size: 7 scale down to: 1
size: 8
############################# Image ############################# Image
image: image:
left: 51 left: 53
top: 114 top: 113
width: 257 width: 269
height: 261 height: 261
z index: 1 z index: 1
############################# Card type ############################# Card type
monster type: monster type:
left: 37 left: 38
top : 401 top : 399
width: 193 width: 200
height: 14 height: 14
alignment: top left alignment: top left
z index: 2 z index: 2
font: font:
name: MatrixBoldSmallCaps name: MatrixRegularSmallCaps
italic name: Matrix italic name: Matrix
size: 12 size: 12
color: rgb(0,0,0) color: rgb(0,0,0)
symbol font:
name: yugioh-text-replacements
alignment: middle center
size: 3
visible: script: if is_nmonster() then false else true visible: script: if is_nmonster() then false else true
############################# Edition and Card ID ############################# Edition and Card ID
number: number:
left: 202 left: 210
top : 383 top : 380
width: 116 width: 120
height: 28 height: 28
z index: 2 z index: 2
alignment: top right alignment: top right
font: font:
name: Times New Roman name: Palatino Linotype
size: 8 size: 8
color: rgb(0,0,0) color: rgb(0,0,0)
edition: edition:
left: 43 left: 45
top: 383 top: 380
width: 116 width: 120
height: 18 height: 18
z index: 2 z index: 2
font: font:
name: Times New Roman name: Palatino Linotype
size: 8 size: 8
color: rgb(0,0,0) color: rgb(0,0,0)
############################# Text box ############################# Text box
rule text: rule text:
left: 34 left: 35
top : top :
script: if is_nmonster() then 400 else 413 script: if is_nmonster() then 400 else 413
width: 287 width: 304
height: height:
script: if is_nmonster() then 90 else 63 script: if is_nmonster() then 90 else 63
font: font:
name: Times New Roman name: Palatino Linotype
italic name: Times New Roman Italic italic name: Palatino Linotype Italic
size: 9 size: 9
scale down to: 4 scale down to: 4
color: rgb(0,0,0) color: rgb(0,0,0)
symbol font:
name: yugioh-text-replacements
alignment: middle center
size: 8
alignment: top left alignment: top left
z index: 3 z index: 3
padding left: 2 padding left: 2
padding top: 2 padding top: 2
padding right: -3 padding right: -3
padding bottom: 0 padding bottom: 0
line height hard: 1.1 line height hard: 1.2
line height line: 1.5
line height soft: 0.9
############################# Attack/Defense ############################# Attack/Defense
attack: attack:
left: 194 left: 209
top: 477 top: 474
width: 48 width: 50
height: 18 height: 18
z index: 2 z index: 2
alignment: left middle alignment: right middle
font: font:
name: MatrixBoldSmallCaps name: MatrixRegularSmallCaps
size: 12 size: 12
color: rgb(0,0,0) color: rgb(0,0,0)
symbol font:
name: yugioh-text-replacements
alignment: middle center
size: 8
visible: script: if is_nmonster() then false else true visible: script: if is_nmonster() then false else true
defense: defense:
z index: 4 z index: 4
left: 263 left: 283
top: 477 top: 474
width: 48 width: 50
height: 18 height: 18
z index: 2 z index: 2
alignment: left middle alignment: right middle
font: font:
name: MatrixBoldSmallCaps name: MatrixRegularSmallCaps
size: 12 size: 12
color: rgb(0,0,0) color: rgb(0,0,0)
symbol font:
name: yugioh-text-replacements
alignment: middle center
size: 8
visible: script: if is_nmonster() then false else true visible: script: if is_nmonster() then false else true
############################# Card sorting / numbering ############################# Card sorting / numbering
############################# Copyright stuff ############################# Copyright stuff
gamecode: gamecode:
left: 14 left: 15
top : 499 top : 497
width: 96 width: 100
height: 18 height: 18
alignment: top left alignment: top left
z index: 2 z index: 2
font: font:
name: Times New Roman name: Palatino Linotype
size: 8 size: 8
color: rgb(0,0,0) color: rgb(0,0,0)
copyright: copyright:
left: 188 left: 195
top : 499 top : 497
width: 145 width: 150
height: 18 height: 18
z index: 2 z index: 2
alignment: top right alignment: top right
font: font:
name: Times New Roman name: Palatino Linotype
size: 8 size: 8
color: rgb(0,0,0) color: rgb(0,0,0)
mse version: 0.3.4
# Symbol font for missing characters
image font size: 16
horizontal space: 2
symbol:
code: [
image: leftbracket.png
symbol:
code: ]
image: rightbracket.png
symbol:
code: @
image: infinity.png
symbol:
code: `
image: dot.png
\ No newline at end of file
mse version: 0.3.2 mse version: 0.3.4
short name: Yu-Gi-Oh! short name: Yu-Gi-Oh!
icon: card-back.png icon: card-back.png
position hint: 04 position hint: 4
############################################################## Functions & filters ############################################################## Functions & filters
## Copied and Pasted from vs.mse-game, with a few modifications ## Copied and Pasted from vs.mse-game, with a few modifications
# General functions # General functions
init script: init script:
# level codes # level codes
level_sort := sort_rule(order: "%!+&$#*") level_sort := sort_rule(order: "[%!+&$#*@]")
# the rule text filter # the rule text filter
# - adds continuous symbols # - adds continuous symbols
# - adds counter symbols # - adds counter symbols
...@@ -17,27 +17,58 @@ init script: ...@@ -17,27 +17,58 @@ init script:
# - adds quickplay symbols # - adds quickplay symbols
# - adds ritual symbols # - adds ritual symbols
# - adds level symbols # - adds level symbols
# - adds infinity symbols
# - makes text in parentheses italic # - makes text in parentheses italic
text_filter := text_filter :=
# step 1 : remove all automatic tags # step 1 : remove all automatic tags
tag_remove_rule(tag: "<sym-auto>") + tag_remove_rule(tag: "<sym-auto>") +
tag_remove_rule(tag: "<i-auto>") + tag_remove_rule(tag: "<i-auto>") +
# step 2 : fill in atom fields # step 2a : fill in atom fields
tag_contents_rule( tag_contents_rule(
tag: "<atom-cardname>", tag: "<atom-cardname>",
contents: { if card.name=="" then "CARDNAME" else card.name } contents: { if card.name=="" then "CARDNAME" else card.name }
) + ) +
# step 3a : explict non symbols # step 2b : explict non symbols
replace_rule( replace_rule(
match: "\\][%!+&$#*]+\\[", match: "\\][\\[@\\]]+\\[",
replace: {"<nosym>" +level_sort() + "</nosym>"} ) + replace: {"<nosym>" +level_sort() + "</nosym>"} ) +
# step 3b : add symbols # step 2c : add symbols
replace_rule( replace_rule(
match: "[%!+&$#*]+", match: "[\\[@\\]]+",
replace: {"<sym-auto>" + level_sort() + "</sym-auto>"} ) + replace: {"<sym-auto>" + level_sort() + "</sym-auto>"} ) +
# step 3c : add explict symbols # step 2d : add explict symbols
replace_rule( replace_rule(
match: "\\[[%!+&$#*]+\\]", match: "\\[[\\[@\\]]+\\]",
replace: {"<sym>" + level_sort() + "</sym>"} );
level_filter :=
# step 1 : remove all automatic tags
tag_remove_rule(tag: "<sym-auto>") +
# step 3b : explict non symbols
replace_rule(
match: "\\][\\[%!+&$#*\\]]+\\[",
replace: {"<nosym>" +level_sort() + "</nosym>"} ) +
# step 3c : add symbols
replace_rule(
match: "[\\[%!+&$#*\\]]+",
replace: {"<sym-auto>" + level_sort() + "</sym-auto>"} ) +
# step 3d : add explict symbols
replace_rule(
match: "\\[[\\[%!+&$#*\\]]+\\]",
replace: {"<sym>" + level_sort() + "</sym>"} );
a_and_d_filter :=
# step 1 : remove all automatic tags
tag_remove_rule(tag: "<sym-auto>") +
# step 2b : explict non symbols
replace_rule(
match: "\\][\\[@\\]]+\\[",
replace: {"<nosym>" +level_sort() + "</nosym>"} ) +
# step 2c : add symbols
replace_rule(
match: "[\\[@\\]]+",
replace: {"<sym-auto>" + level_sort() + "</sym-auto>"} ) +
# step 2d : add explict symbols
replace_rule(
match: "\\[[\\[@\\]]+\\]",
replace: {"<sym>" + level_sort() + "</sym>"} ); replace: {"<sym>" + level_sort() + "</sym>"} );
# the flavor text filter # the flavor text filter
...@@ -49,14 +80,35 @@ init script: ...@@ -49,14 +80,35 @@ init script:
# Determine type of card # Determine type of card
card_type := { card_type := {
if card.attribute == "spell" then "spell card" if card.type2 == "Effect]" then "effect monster"
else if card.attribute == "trap" then "trap card" else if card.type2 == "Fusion]" then "fusion monster"
else "normal monster" else if card.type2 == "Fusion/Effect]" then "fusion monster"
else if card.type2 == "Ritual]" then "ritual monster"
else if card.type2 == "Ritual/Effect]" then "ritual monster"
else if card.type1 == "[Legendary Dragon" then "legendary dragon"
else if card.type1 == "[Divine-Beast" then "obelisk"
else if card.attribute == "spell" then "spell card"
else if card.level == "[Spell Card]" then "spell card"
else if card.level == "[Spell Card%]" then "spell card"
else if card.level == "[Spell Card!]" then "spell card"
else if card.level == "[Spell Card+]" then "spell card"
else if card.level == "[Spell Card&]" then "spell card"
else if card.level == "[Spell Card$]" then "spell card"
else if card.level == "[Spell Card#]" then "spell card"
else if card.attribute == "trap" then "trap card"
else if card.level == "[Trap Card]" then "trap card"
else if card.level == "[Trap Card%]" then "trap card"
else if card.level == "[Trap Card!]" then "trap card"
else if card.level == "[Trap Card+]" then "trap card"
else if card.level == "[Trap Card&]" then "trap card"
else if card.level == "[Trap Card$]" then "trap card"
else if card.level == "[Trap Card#]" then "trap card"
else "normal monster"
} }
# Default 'attribute' of card # Default 'attribute' of card
attribute := { attribute := {
if is_spell_card() then "spell" if is_spell_card() then "Spell"
else if is_trap_card() then "trap" else if is_trap_card() then "Trap"
else "" else ""
} }
...@@ -84,10 +136,14 @@ init script: ...@@ -84,10 +136,14 @@ init script:
card.card_type == "legendary dragons" card.card_type == "legendary dragons"
} }
is_spell_card := { is_spell_card := {
card.card_type == "spell card" card.card_type == "spell card" or
card.attribute == "spell" or
card.level == "Spell"
} }
is_trap_card := { is_trap_card := {
card.card_type == "trap card" card.card_type == "trap card" or
card.attribute == "trap" or
card.level == "Trap"
} }
############################################################## Set fields ############################################################## Set fields
...@@ -158,6 +214,14 @@ card field: ...@@ -158,6 +214,14 @@ card field:
legendary dragons: rgb(26,26,26) legendary dragons: rgb(26,26,26)
spell card: rgb(80,80,80) spell card: rgb(80,80,80)
trap card: rgb(30,110,0) trap card: rgb(30,110,0)
card field:
type: choice
name: foils
editable: false
choice: none
choice: holo image
choice: secret holo image
choice: parallel holo card
############################# Name line ############################# Name line
card field: card field:
...@@ -186,7 +250,7 @@ card field: ...@@ -186,7 +250,7 @@ card field:
type: text type: text
name: level name: level
description: Level, * = star, % = continuous, ! = counter, + = equipment, & = field, $ = quickplay, # = ritual description: Level, * = star, % = continuous, ! = counter, + = equipment, & = field, $ = quickplay, # = ritual
script: text_filter(value) script: level_filter(value)
############################# Image ############################# Image
card field: card field:
...@@ -198,10 +262,12 @@ card field: ...@@ -198,10 +262,12 @@ card field:
card field: card field:
type: text type: text
name: type1 name: type1
script: a_and_d_filter(value)
editable: false editable: false
card field: card field:
type: text type: text
name: type2 name: type2
script: a_and_d_filter(value)
editable: false editable: false
card field: card field:
type: text type: text
...@@ -210,12 +276,10 @@ card field: ...@@ -210,12 +276,10 @@ card field:
# Either just monster, monster / type1 # Either just monster, monster / type1
combined_editor( combined_editor(
field1: card.type1, field1: card.type1,
separator: " ", separator: "/",
field2: card.type2, field2: card.type2,
grey_until_needed: true, soft_before_empty: true,
hide_when_both_empty: true, hide_when_empty: true,
type_over1: "/",
type_over2: "/"
) )
card list visible: true card list visible: true
card list column: 3 card list column: 3
...@@ -276,7 +340,7 @@ card field: ...@@ -276,7 +340,7 @@ card field:
type: text type: text
name: attack name: attack
save value: true save value: true
script: to_upper(value) script: a_and_d_filter(value)
card list visible: true card list visible: true
card list column: 4 card list column: 4
card list width: 33 card list width: 33
...@@ -285,7 +349,7 @@ card field: ...@@ -285,7 +349,7 @@ card field:
type: text type: text
name: defense name: defense
save value: true save value: true
script: to_upper(value) script: a_and_d_filter(value)
card list visible: true card list visible: true
card list column: 5 card list column: 5
card list width: 33 card list width: 33
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment