mse version: 2.1.2 game: magic short name: Equinox full name: Innistrad Showcase Midnight Hunt icon: card_sample.png position hint: 095 version: 2024-10-01 depends on: package: magic.mse-game version: 2014-06-25 depends on: package: magic-mana-large.mse-symbol-font version: 2007-09-23 depends on: package: magic-mana-small.mse-symbol-font version: 2007-09-23 depends on: package: magic-modules.mse-include version: 2024-10-01 depends on: package: magic-mainframe-extras.mse-include version: 2007-09-23 card width: 646 card height: 902 card dpi: 258.5 ### blanks by GenevensiS ### code by GenevensiS ############################################################## Extra scripts init script: swap_fonts_pt_default := [ name: {"Beleren Bold"}, size: {26.0}, color: {"black"}, vertical: {0}, italic: {"Beleren Bold"} ] swap_fonts_body_default := [ name: {"MPlantin"}, size: {24.0}, color: {"black"}, vertical: {0}, italic: {"MPlantin-Italic"} ] typeline_offset_width_1 := { -14 } typeline_offset_left_1 := { 7 } swap_fonts_type_default := [ name: {"Beleren Bold"}, size: {22.5}, color: {"black"}, vertical: {0}, italic: {""} ] transform_symbol_disabled_1 := { true } card_symbol_offset_left_1 := { 2 } nameline_offset_top_1 := { 2 } nameline_offset_width_1 := { -8 } nameline_offset_left_1 := { 4 } swap_fonts_name_default := [ name: {"Beleren Bold"}, size: {26.0}, color: {"black"}, vertical: {0}, italic: {""} ] card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 } card_hybrid_2 := { masked_blend(mask: "special_blend_card.png", dark: template(colors.0), light: template(colors.1)) } horizontal_card_hybrid := [ 0: horizontal_card_hybrid[0] 1: horizontal_card_hybrid[1] 2: card_hybrid_2 3: horizontal_card_hybrid[3] 4: horizontal_card_hybrid[4] 5: horizontal_card_hybrid[5] 6: horizontal_card_hybrid[6] 7: horizontal_card_hybrid[7] ] card_hybrid := [ radial: card_hybrid["radial"] horizontal: horizontal_card_hybrid overlay: card_hybrid["overlay"] vertical: card_hybrid["vertical"] ] template_prefix := [card: "card/", textboxes: "textboxes/", pt: "pt/", crown: "crown/", stamp: "stamp/", identity: "/magic-modules.mse-include/indicators/"] template_suffix := [card: "card.png", textboxes: "textboxes.png", pt: "pt.png", crown: "crown.png", stamp: "stamp.png", identity: "identity.png"] template := { template_prefix[type] + input + template_suffix[type] } land_template := { template_prefix[type] + (if input == "a" then "c" else input) + template_suffix[type] } card_background := { color_background(input: card.card_color, type: "card", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white") } card_crown := { color_background(input: card.card_color, type: "crown", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white") } card_ptbox := { color_background(input: card.card_color, type: "pt", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "white") } card_stamp := { color_background(input: card.card_color, type: "stamp", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "black") } card_textboxes := { color_background(input: card.card_color, type: "textboxes", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white") } image_left := { if styling.image_location == "portrait only" then 55 else if styling.image_location == "portrait + name" then 49 else if styling.image_location == "portrait + name + type" then 49 else if styling.image_location == "portrait + name + type + text" then 48 else if styling.image_location == "portrait + type" then 52 else if styling.image_location == "portrait + type + text" then 48 else 0 } image_top := { if styling.image_location == "portrait only" then 114 else if styling.image_location == "portrait + name" then 49 else if styling.image_location == "portrait + name + type" then 49 else if styling.image_location == "portrait + name + type + text" then 49 else if styling.image_location == "portrait + type" then 114 else if styling.image_location == "portrait + type + text" then 114 else 0 } image_right := { if styling.image_location == "portrait only" then 594 else if styling.image_location == "portrait + name" then 603 else if styling.image_location == "portrait + name + type" then 603 else if styling.image_location == "portrait + name + type + text" then 603 else if styling.image_location == "portrait + type" then 597 else if styling.image_location == "portrait + type + text" then 597 else 646 } image_bottom := { if styling.image_location == "portrait only" then 500 else if styling.image_location == "portrait + name" then 500 else if styling.image_location == "portrait + name + type" then 561 else if styling.image_location == "portrait + name + type + text" then 832 else if styling.image_location == "portrait + type" then 561 else if styling.image_location == "portrait + type + text" then 832 else 901 } pure_colors := { sort_text( order: if card_is_wedge(input) then "(wbgur)" else "(wubrg)", (if chosen(card.card_color, choice:"white") then "w") + (if chosen(card.card_color, choice:"blue") then "u") + (if chosen(card.card_color, choice:"black") then "b") + (if chosen(card.card_color, choice:"red") then "r") + (if chosen(card.card_color, choice:"green") then "g") ) } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" } is_promo := { styling.promo } is_unsorted := { styling.remove_from_autocount } is_crowned := { styling.legend_crown == "yes" or (styling.legend_crown == "if legendary" and lang_setting("is_legendary")(card.super_type)) } chop_top := { split := split_comma(styling.chop_text_box); if length(split) > 0 and split.0 != "" then clamp(split.0, maximum: 1500, minimum: -1500) else 0 } chop_bot := { split := split_comma(styling.chop_text_box); if length(split) > 1 and split.1 != "" then clamp(split.1, maximum: 1500, minimum: -1500) else 0 } popout_left := { split := split_comma(styling.popout_image_coordinates); if length(split) > 3 and split.0 != "" then clamp(split.0, maximum: 1500, minimum: -500) else 0 } popout_top := { split := split_comma(styling.popout_image_coordinates); if length(split) > 3 and split.1 != "" then clamp(split.1, maximum: 2000, minimum: -500) else 0 } popout_width := { split := split_comma(styling.popout_image_coordinates); if length(split) > 3 and split.2 != "" then clamp(split.2, maximum: 1500, minimum: 0) else 0 } popout_height := { split := split_comma(styling.popout_image_coordinates); if length(split) > 3 and split.3 != "" then clamp(split.3, maximum: 2000, minimum: 0) else 0 } ############################################################## Extra style options styling field: type: text name: popout image coordinates description: The coordinates for the popout image field, formatted as "left,top,width,height". Used to make the illustration jump in front of the frame. styling field: type: choice name: image location description: Make the image span more or less of the card. Use this to make the image visible behing the name, type, text, or to help make popout effects. choice: portrait only choice: portrait + name choice: portrait + name + type choice: portrait + name + type + text choice: portrait + type choice: portrait + type + text choice: whole card initial: portrait + name + type + text styling field: type: text name: nameline opacity percentage description: Set the opacity percentage for the nameline. Opaque is 100, transparent is 0. Default is 70. Only active if the image can be seen behind the name. styling field: type: text name: typeline opacity percentage description: Set the opacity percentage for the typeline. Opaque is 100, transparent is 0. Default is 70. Only active if the image can be seen behind the type. styling field: type: text name: textbox opacity percentage description: Set the opacity percentage for the rules textbox. Opaque is 100, transparent is 0. Default is 80. Only active if the image can be seen behind the text. include file: /magic-modules.mse-include/texts/styling_fields styling field: type: choice name: PT color scheme description: Use the selected color scheme for the PT box on two color cards. Canon is "land" on hybrid cards, "gold" otherwise. choice: canon choice: gold choice: hybrid choice: colored choice: land initial: canon styling field: type: choice name: legend crown description: Use the legend crown? choice: yes choice: if legendary choice: no initial: yes include file: /magic-modules.mse-include/stamps/styling_fields include file: /magic-modules.mse-include/rarities/styling_fields include file: /magic-modules.mse-include/watermarks/styling_fields styling field: type: package choice name: overlay description: Should there be an overlay applied, such as foil? match: magic-overlay-*.mse-include required: false include file: /magic-modules.mse-include/information/styling_fields include file: /magic-modules.mse-include/symbol-fonts/styling_fields include file: /magic-modules.mse-include/fonts/styling_fields ############################################################## Card fields include file: /magic-modules.mse-include/information/card_fields include file: /magic-modules.mse-include/stamps/card_fields include file: /magic-modules.mse-include/corners/card_fields include file: /magic-modules.mse-include/watermarks/card_fields include file: /magic-modules.mse-include/separators/card_fields include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields card style: ############################# Background stuff border color: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } left width: 44 right width: 42 top width: 45 bottom width: 66 z index: 0 card color: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 1 render style: image popup style: in place image: { card_background() } mask: foil_mask.png ############################# Image image: left: { image_left() } top: { image_top() } right: { image_right() } bottom: { image_bottom() } z index: 10 mask: { crop("image_mask.png", offset_x: image_left(), offset_y: image_top(), width: image_right()-image_left(), height: image_bottom()-image_top()) } mainframe image: left: { popout_left() } top: { popout_top() } width: { popout_width() } height: { popout_height() } z index: 1010 ############################# Text box text: left: 55 top: { 574 + chop_top() + body_font_vertical() } right: 589 bottom: { 824 - chop_bot() } z index: 900 padding left: 6 padding right: 4 line height hard: { if is_modal(card.rule_text) then 0.9 else 1.2 } line height line: 1.5 line height soft: 0.9 line height hard max: { if is_modal(card.rule_text) then 1.0 else 1.3 } line height line max: 1.6 alignment: script: if (styling.center_text == "short text only" and not contains(match:"\n", card.rule_text) and card.flavor_text == "" and card_style.text.content_lines <= 2) or styling.center_text == "always" then "middle center" else "middle left" font: name: { body_font() } italic name: { body_font_italic() } size: { body_font_size() } scale down to: 11 color: { body_font_color() } symbol font: name: { styling.text_box_mana_symbols } size: { body_font_size() } scale down to: 11 ############################# PT pt: left: 516 top: { 810 + pt_font_vertical() } width: 80 height: 37 z index: 900 alignment: center middle shrink-overflow font: name: { pt_font() } size: { pt_font_size() } color: { pt_font_color() } separator color: red ############################################################## Extra card fields extra card field: type: choice name: pt box script: card.card_color editable: false save value: false show statistics: false extra card field: type: choice name: crown script: card.card_color editable: false save value: false show statistics: false extra card field: type: choice name: foil layer editable: false save value: false show statistics: false choice: foil layer extra card field: type: color name: card stamp border script: card.border_color editable: false save value: false show statistics: false extra card field: type: choice name: card stamp rim editable: false save value: false show statistics: false choice: card stamp rim extra card field: type: choice name: nameline box editable: false save value: false show statistics: false choice: nameline box extra card field: type: choice name: typeline box editable: false save value: false show statistics: false choice: typeline box extra card field: type: choice name: rules box editable: false save value: false show statistics: false choice: rules box extra card style: pt box: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 40 visible: { card.pt != "" } render style: image image: script: pure := pure_colors() count := length(pure) color := pt_colors() if color == "gold" and count > 1 then template("m", type: "pt") else if color == "land" and count > 1 then template("c", type: "pt") else if color == "hybrid" and count == 2 then masked_blend(mask: "special_blend_pt.png", dark: template(pure.0, type: "pt"), light: template(pure.1, type: "pt")) else card_ptbox() mask: pt_mask.png crown: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 40 visible: { is_crowned() } render style: image image: { card_crown() } mask: crown_mask.png foil layer: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 1050 visible: { styling.overlay != "none" and styling.overlay != "" } render style: image image: { if styling.overlay == "" then "" else styling.overlay + "/overlay.png" } mask: { "foil_mask" + (if is_stamped() then "_rare" else "") + (if card.pt != "" then "_pt" else "") + (if is_crowned() then "_crown" else "") + ".png"} card stamp border: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 30 visible: { is_stamped() } mask: stamp_border_mask.png card stamp rim: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 31 render style: image image: { if is_stamped() then card_stamp() else "" } nameline box: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 12 render style: image image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "name") then set_alpha(card_textboxes(), alpha: get_alpha_percentage(styling.nameline_opacity_percentage, default: 70)) else card_textboxes() } mask: name_mask.png typeline box: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 12 render style: image image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "type") then set_alpha(card_textboxes(), alpha: get_alpha_percentage(styling.typeline_opacity_percentage, default: 70)) else card_textboxes() } mask: type_mask.png rules box: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 12 render style: image image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "text") then set_alpha(card_textboxes(), alpha: get_alpha_percentage(styling.textbox_opacity_percentage, default: 80)) else card_textboxes() } mask: text_mask.png