############################################################## Extra scripts
############################################################## Extra scripts
init script:
is_pendulum := {
card.card_type == "pendulum normal monster" or
card.card_type == "pendulum effect monster" or
card.card_type == "pendulum fusion monster" or
card.card_type == "pendulum ritual monster" or
card.card_type == "pendulum synchro monster" or
card.card_type == "pendulum dark synchro monster" or
card.card_type == "pendulum xyz monster" or
card.card_type == "pandemonium monster"
}
############################################################## Extra style
############################################################## Extra style
styling field:
styling field:
type: choice
type: choice
...
@@ -162,7 +151,7 @@ card style:
...
@@ -162,7 +151,7 @@ card style:
left: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" or card.rarity=="ultimate rare" then 0 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and is_pendulum() then 28 else if styling.image_frame then 44 else if styling.artwork_size=="extended" then 28 else 51 }
left: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" or card.rarity=="ultimate rare" then 0 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and is_pendulum() then 28 else if styling.image_frame then 44 else if styling.artwork_size=="extended" then 28 else 51 }
top: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" or card.rarity=="ultimate rare" then 0 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 110 else if styling.image_frame then 106 else if styling.artwork_size=="extended" and card.card_type=="link monster" then 99 else if styling.artwork_size=="extended" then 108 else 113 }
top: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" or card.rarity=="ultimate rare" then 0 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 110 else if styling.image_frame then 106 else if styling.artwork_size=="extended" and card.card_type=="link monster" then 99 else if styling.artwork_size=="extended" then 108 else 113 }
width: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" or card.rarity=="ultimate rare" then 421 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 364 else if styling.image_frame then "333" else if styling.artwork_size=="extended" then 366 else 320 }
width: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" or card.rarity=="ultimate rare" then 421 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 364 else if styling.image_frame then "333" else if styling.artwork_size=="extended" then 366 else 320 }
height: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" or card.rarity=="ultimate rare" then 614 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and is_pendulum() then ( if styling.pendulum_transparency=="yes" then ( if styling.pendulum_size=="more" then 363 else 347 ) else if styling.pendulum_transparency=="no" then ( if styling.pendulum_size=="less" then 293 else 273) ) else if styling.image_frame then 333 else if styling.artwork_size=="extended" and card.card_type=="link monster" then 479 else if styling.artwork_size=="extended" then 470 else 320 }
height: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" or card.rarity=="ultimate rare" then 614 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and is_pendulum() then ( if styling.pendulum_transparency then ( if styling.pendulum_size=="more" then 363 else 347 ) else if styling.pendulum_transparency=="no" then ( if styling.pendulum_size=="less" then 293 else 273) ) else if styling.image_frame then 333 else if styling.artwork_size=="extended" and card.card_type=="link monster" then 479 else if styling.artwork_size=="extended" then 470 else 320 }
#height: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" then 614 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultimate rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 273 else if styling.image_frame then 333 else 320 }
#height: { if card.rarity=="parallel rare" or card.rarity=="star rare" or card.rarity=="mosaic rare" or card.rarity=="gold rare" then 614 else if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultimate rare" or card.rarity=="ultra rare" or card.rarity=="super rare" and card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 273 else if styling.image_frame then 333 else 320 }
z index: 5
z index: 5
render style: image
render style: image
...
@@ -173,7 +162,7 @@ card style:
...
@@ -173,7 +162,7 @@ card style:
if card.rarity=="gold rare" and styling.image_frame then "goldfoil-anniversary.png" else
if card.rarity=="gold rare" and styling.image_frame then "goldfoil-anniversary.png" else
if card.rarity=="gold rare" and styling.artwork_size=="extended" then "goldfoil-anniversary.png" else
if card.rarity=="gold rare" and styling.artwork_size=="extended" then "goldfoil-anniversary.png" else
if card.rarity=="gold rare" and styling.image_frame=="no" then "goldfoil.png" else
if card.rarity=="gold rare" and styling.image_frame=="no" then "goldfoil.png" else
if styling.foil_texture=="yes" then (
if styling.foil_texture then (
if card.rarity=="super rare" then "defaultfoil.png" else
if card.rarity=="super rare" then "defaultfoil.png" else
if card.rarity=="ultra rare" then "ultrafoil.png" else
if card.rarity=="ultra rare" then "ultrafoil.png" else
if card.rarity=="secret rare" then "secretfoil.png" else
if card.rarity=="secret rare" then "secretfoil.png" else
...
@@ -184,7 +173,7 @@ card style:
...
@@ -184,7 +173,7 @@ card style:
if card.rarity=="mosaic rare" then "mosaicfoil.png" else
if card.rarity=="mosaic rare" then "mosaicfoil.png" else
if card.rarity=="promo" then "superfoil.png") else
if card.rarity=="promo" then "superfoil.png") else
"blank2.png"
"blank2.png"
mask: { if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultimate rare" or card.rarity=="ultra rare" or card.rarity=="super rare" then ( if is_pendulum() then ( if styling.pendulum_transparency=="yes" then ( if styling.pendulum_size=="less" then "mask-p_less.png" else if styling.pendulum_size=="more" then "mask-p_more.png" else "mask-p.png" ) else ( if styling.pendulum_size=="less" then "mask-p_opaque_less.png" else "mask-p_opaque.png" ) ) else "mask.png" ) else "" }
mask: { if card.rarity=="promo" or card.rarity=="secret rare" or card.rarity=="ultimate rare" or card.rarity=="ultra rare" or card.rarity=="super rare" then ( if is_pendulum() then ( if styling.pendulum_transparency then ( if styling.pendulum_size=="less" then "mask-p_less.png" else if styling.pendulum_size=="more" then "mask-p_more.png" else "mask-p.png" ) else ( if styling.pendulum_size=="less" then "mask-p_opaque_less.png" else "mask-p_opaque.png" ) ) else "mask.png" ) else "" }
combine: normal
combine: normal
############################# Name line
############################# Name line
name:
name:
...
@@ -314,10 +303,10 @@ card style:
...
@@ -314,10 +303,10 @@ card style:
left: { if is_pendulum() and styling.template_style="actual style" then 27 else if is_pendulum() then 28 else if card.card_type=="pandemonium monster" then 27 else if styling.image_frame then 44 else if card.card_type=="link monster" and ( styling.artwork_size=="extended" and styling.template_style=="actual style" ) then 23 else if card.card_type=="link monster" and styling.artwork_size=="extended" then 28 else if styling.artwork_size=="extended" and styling.template_style=="actual style" then 24 else if styling.artwork_size=="extended" then 28 else if styling.template_style=="actual style" then 47 else 51 }
left: { if is_pendulum() and styling.template_style="actual style" then 27 else if is_pendulum() then 28 else if card.card_type=="pandemonium monster" then 27 else if styling.image_frame then 44 else if card.card_type=="link monster" and ( styling.artwork_size=="extended" and styling.template_style=="actual style" ) then 23 else if card.card_type=="link monster" and styling.artwork_size=="extended" then 28 else if styling.artwork_size=="extended" and styling.template_style=="actual style" then 24 else if styling.artwork_size=="extended" then 28 else if styling.template_style=="actual style" then 47 else 51 }
top: { if is_pendulum() and styling.template_style="actual style" then 111 else if is_pendulum() then 110 else if styling.image_frame then 106 else if card.card_type=="link monster" and ( styling.artwork_size=="extended" and styling.template_style=="actual style" ) then 102 else if card.card_type=="link monster" and styling.artwork_size=="extended" then 99 else if styling.artwork_size=="extended" then 110 else if styling.artwork_size=="extended" and styling.template_style=="actual style" then 111 else if styling.template_style=="actual style" then 110 else 113 }
top: { if is_pendulum() and styling.template_style="actual style" then 111 else if is_pendulum() then 110 else if styling.image_frame then 106 else if card.card_type=="link monster" and ( styling.artwork_size=="extended" and styling.template_style=="actual style" ) then 102 else if card.card_type=="link monster" and styling.artwork_size=="extended" then 99 else if styling.artwork_size=="extended" then 110 else if styling.artwork_size=="extended" and styling.template_style=="actual style" then 111 else if styling.template_style=="actual style" then 110 else 113 }
width: { if is_pendulum() and styling.template_style="actual style" then 368 else if is_pendulum() then 364 else if styling.image_frame then 333 else if card.card_type=="link monster" and ( styling.artwork_size=="extended" and styling.template_style=="actual style" ) then 374 else if styling.artwork_size=="extended" and styling.template_style=="actual style" then 373 else if styling.artwork_size=="extended" then 366 else if styling.template_style=="actual style" then 326 else 320 }
width: { if is_pendulum() and styling.template_style="actual style" then 368 else if is_pendulum() then 364 else if styling.image_frame then 333 else if card.card_type=="link monster" and ( styling.artwork_size=="extended" and styling.template_style=="actual style" ) then 374 else if styling.artwork_size=="extended" and styling.template_style=="actual style" then 373 else if styling.artwork_size=="extended" then 366 else if styling.template_style=="actual style" then 326 else 320 }
height: { if is_pendulum() then ( if styling.pendulum_transparency=="yes" then ( if styling.pendulum_size=="more" then 363 else 347 ) else if styling.pendulum_transparency=="no" then ( if styling.pendulum_size=="less" then 293 else 273) ) else if styling.image_frame then 333 else if card.card_type=="link monster" and ( styling.artwork_size=="extended" and styling.template_style=="actual style" ) then 483 else if card.card_type=="link monster" and styling.artwork_size=="extended" then 479 else if styling.artwork_size=="extended" and styling.template_style=="actual style" then 474 else if styling.artwork_size=="extended" then 470 else if styling.template_style=="actual style" then 326 else 320 }
height: { if is_pendulum() then ( if styling.pendulum_transparency then ( if styling.pendulum_size=="more" then 363 else 347 ) else if styling.pendulum_transparency=="no" then ( if styling.pendulum_size=="less" then 293 else 273) ) else if styling.image_frame then 333 else if card.card_type=="link monster" and ( styling.artwork_size=="extended" and styling.template_style=="actual style" ) then 483 else if card.card_type=="link monster" and styling.artwork_size=="extended" then 479 else if styling.artwork_size=="extended" and styling.template_style=="actual style" then 474 else if styling.artwork_size=="extended" then 470 else if styling.template_style=="actual style" then 326 else 320 }
z index: 1
z index: 1
#mask: { if is_pendulum() then ( if styling.pendulum_transparency=="yes" then ( if styling.pendulum_size=="less" then "mask-p_less.png" else if styling.pendulum_size=="more" then "mask-p_more.png" else "mask-p.png" ) else ( if styling.pendulum_size=="less" then "mask-p_opaque_less.png" else "mask-p_opaque.png" ) ) else if styling.artwork_size=="extended" then "maskex3.png" else "" }
#mask: { if is_pendulum() then ( if styling.pendulum_transparency then ( if styling.pendulum_size=="less" then "mask-p_less.png" else if styling.pendulum_size=="more" then "mask-p_more.png" else "mask-p.png" ) else ( if styling.pendulum_size=="less" then "mask-p_opaque_less.png" else "mask-p_opaque.png" ) ) else if styling.artwork_size=="extended" then "maskex3.png" else "" }
mask: { if is_pendulum() then ( if styling.pendulum_transparency=="yes" then ( if styling.pendulum_size=="less" then "mask-p_less.png" else if styling.pendulum_size=="more" then "mask-p_more.png" else "mask-p.png" ) else ( if styling.pendulum_size=="less" then "mask-p_opaque_less.png" else "mask-p_opaque.png" ) ) else if styling.template_style=="actual style" and styling.artwork_size=="extended" then ( if card.card_type=="spell card" or card.card_type=="trap card" then "new/maskex1.png" else if card.card_type=="link monster" then "new/maskex1.png" else "new/maskex1.png" ) else if styling.artwork_size=="extended" then (if card.card_type=="spell card" or card.card_type=="trap card" then "maskex1.png" else if card.card_type=="link monster" then "maskex2.png" else "maskex.png") else "" }
mask: { if is_pendulum() then ( if styling.pendulum_transparency then ( if styling.pendulum_size=="less" then "mask-p_less.png" else if styling.pendulum_size=="more" then "mask-p_more.png" else "mask-p.png" ) else ( if styling.pendulum_size=="less" then "mask-p_opaque_less.png" else "mask-p_opaque.png" ) ) else if styling.template_style=="actual style" and styling.artwork_size=="extended" then ( if card.card_type=="spell card" or card.card_type=="trap card" then "new/maskex1.png" else if card.card_type=="link monster" then "new/maskex1.png" else "new/maskex1.png" ) else if styling.artwork_size=="extended" then (if card.card_type=="spell card" or card.card_type=="trap card" then "maskex1.png" else if card.card_type=="link monster" then "maskex2.png" else "maskex.png") else "" }
############################# Link Marker Border INDENTS MATTER
############################# Link Marker Border INDENTS MATTER
linkborder:
linkborder:
left:
left:
...
@@ -460,7 +449,7 @@ card style:
...
@@ -460,7 +449,7 @@ card style:
monster type:
monster type:
left: { if styling.template_style=="actual style" then 38 else 40 }
left: { if styling.template_style=="actual style" then 38 else 40 }
top : { if is_pendulum() and ( styling.template_style=="actual style" and styling.pendulum_size=="more" ) then 475 else if is_pendulum() and styling.pendulum_size=="more" then 476 else if styling.template_style=="actual style" then 463 else 462 }
top : { if is_pendulum() and ( styling.template_style=="actual style" and styling.pendulum_size=="more" ) then 475 else if is_pendulum() and styling.pendulum_size=="more" then 476 else if styling.template_style=="actual style" then 463 else 462 }
width: { if styling.large_type=="yes" then card_style.monster_type.content_width + 8 else card_style.monster_type.content_width + 6 }
width: { if styling.large_type then card_style.monster_type.content_width + 8 else card_style.monster_type.content_width + 6 }
height: 15
height: 15
alignment: middle left
alignment: middle left
z index: 2
z index: 2
...
@@ -471,7 +460,7 @@ card style:
...
@@ -471,7 +460,7 @@ card style:
else if styling.language=="chinese simplified" then "方正隶变_GBK"
else if styling.language=="chinese simplified" then "方正隶变_GBK"
else if styling.language=="chinese traditional" then "DFPLiShuW5-B5"
else if styling.language=="chinese traditional" then "DFPLiShuW5-B5"
else "Yu-Gi-Oh!ITCStoneSerifSmallCaps"
else "Yu-Gi-Oh!ITCStoneSerifSmallCaps"
size: { if styling.large_type=="yes" then 13.1 else if styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional" then 13 else 11.4 }
size: { if styling.large_type then 13.1 else if styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional" then 13 else 11.4 }
color: rgb(0,0,0)
color: rgb(0,0,0)
symbol font:
symbol font:
name: yugioh-text-replacements
name: yugioh-text-replacements
...
@@ -534,12 +523,12 @@ card style:
...
@@ -534,12 +523,12 @@ card style:
line height line: { if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height line: { if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height soft: { if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height soft: { if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
##Why..?
##Why..?
#line height hard max: { if is_nmonster() then 0.8 else if styling.max_line_space=="yes" and (styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional") then 1.2 else if styling.max_line_space=="yes" then 1 else if styling.text_size=="large" then 0.72 else 0.76 }
#line height hard max: { if is_nmonster() then 0.8 else if styling.max_line_space and (styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional") then 1.2 else if styling.max_line_space then 1 else if styling.text_size=="large" then 0.72 else 0.76 }
#line height soft max: { if styling.max_line_space=="yes" and (styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional") then 1.2 else if styling.max_line_space=="yes" then 1 else if styling.max_line_space=="yes" and styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional" then 1.5 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
#line height soft max: { if styling.max_line_space and (styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional") then 1.2 else if styling.max_line_space then 1 else if styling.max_line_space and styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional" then 1.5 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
#line height line max: { if styling.max_line_space=="yes" and (styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional") then 1.2 else if styling.max_line_space=="yes" then 1 else if styling.max_line_space=="yes" and styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional" then 1.5 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
#line height line max: { if styling.max_line_space and (styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional") then 1.2 else if styling.max_line_space then 1 else if styling.max_line_space and styling.language=="japanese" or styling.language=="chinese simplified" or styling.language=="chinese traditional" then 1.5 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height hard max: { if styling.max_line_space=="yes" then 1 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height hard max: { if styling.max_line_space then 1 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height soft max: { if styling.max_line_space=="yes" then 1 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height soft max: { if styling.max_line_space then 1 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height line max: { if styling.max_line_space=="yes" then 1 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
line height line max: { if styling.max_line_space then 1 else if is_nmonster() then 0.8 else if styling.text_size=="large" then 0.72 else 0.76 }
left: { if is_nmonster() then 372 else if styling.large_type=="yes" then (card_style.monster_type.content_width + 42) else (card_style.monster_type.content_width + 42) }
left: { if is_nmonster() then 372 else if styling.large_type then (card_style.monster_type.content_width + 42) else (card_style.monster_type.content_width + 42) }
top : { if is_nmonster() then 80 else if styling.pendulum_size=="more" then 479 else if styling.large_type=="yes" then 464 else 464 }
top : { if is_nmonster() then 80 else if styling.pendulum_size=="more" then 479 else if styling.large_type then 464 else 464 }
width: { if is_nmonster() then 6 else 6 }
width: { if is_nmonster() then 6 else 6 }
height: { if is_nmonster() then 19 else if styling.large_type=="yes" then 15 else 14 }
height: { if is_nmonster() then 19 else if styling.large_type then 15 else 14 }