mse version: 2.1.2 game: magic short name: Golden Age full name: Capenna Showcase 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: 744 card height: 1039 card dpi: 297 ### blanks by Card Conjurer and GenevensiS ### code by GenevensiS ############################################################## Extra scripts init script: swap_fonts_pt_default := [ name: {"Beleren Bold"}, size: {30.0}, color: {"white"}, vertical: {0}, italic: {"Beleren Bold"} ] swap_fonts_body_default := [ name: {"MPlantin"}, size: {26.0}, color: {"white"}, vertical: {0}, italic: {"MPlantin-Italic"} ] typeline_offset_width_1 := { -2 } typeline_offset_left_1 := { 1 } rarity_offset_top_1 := { 2 } swap_fonts_type_default := [ name: {"Beleren Bold"}, size: {26.0}, color: {"white"}, vertical: {0}, italic: {""} ] transform_symbol_disabled_1 := { true } name_offset_top_1 := { -1 } swap_fonts_name_default := [ name: {"Beleren Bold"}, size: {29.0}, color: {"white"}, vertical: {0}, italic: {""} ] card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 } alias_offset_top_1 := {-1} invert_watermark_1 := { true } foil_mask_base_image := { if is_crowned() then "foil_mask_crown.png" else "foil_mask.png" } foil_mask_removed_sections := { output := [] if is_stamped() then output := output + ["foil_mask_round.png"] output }@(face:1) template_prefix := [ card: "card/", identity: "/magic-modules.mse-include/indicators/" ] template_suffix := [ card: "card.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", multicolor_blend: "white") } 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") ) } 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] != "" and split[0] != "-" then clamp(split[0], maximum:500, minimum:-500) else 0 } chop_bottom := { split := split_comma(styling.chop_text_box); if length(split) > 1 and split[1] != "" and split[1] != "-" then clamp(split[1], maximum:500, minimum:-500) else 0 } chop_right := { split := split_comma(styling.chop_text_box); if length(split) > 2 and split[2] != "" and split[2] != "-" then clamp(split[2], maximum:500, minimum:-500) else 0 } popout_left := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.0 != "" then clamp(split.0, minimum: -500, maximum: 1500) else 0 } popout_top := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.1 != "" then clamp(split.1, minimum: -500, maximum: 2000) else 0 } popout_width := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.2 != "" then clamp(split.2, minimum: 0, maximum: 1500) else 0 } popout_height := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.3 != "" then clamp(split.3, minimum: 0, maximum: 2000) else 0 } ############################################################## Extra style options styling field: type: text name: popout art 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: boolean name: stretch art to whole card description: Make the image span the whole card instead of just the visible part. Use this to help make popout effects. initial: no styling field: type: text name: namebox opacity percentage description: Set the opacity percentage for the name background. Opaque is 100, transparent is 0, default is 70. styling field: type: text name: typebox opacity percentage description: Set the opacity percentage for the type background. Opaque is 100, transparent is 0, default is 70. styling field: type: text name: textbox opacity percentage description: Set the opacity percentage for the textbox background. Opaque is 100, transparent is 0, default is 70. include file: /magic-modules.mse-include/texts/styling_fields styling field: type: boolean name: colored pinlines description: Adapt the pinlines to card color? initial: no styling field: type: choice name: legend crown description: Use the legend crown? choice: yes choice: if legendary choice: no initial: if legendary 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 include file: /magic-modules.mse-include/foils/card_fields include file: /magic-modules.mse-include/alias/card_fields card style: ############################# Background stuff border color: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 100 mask: { if is_crowned() then "border_crown_mask.png" else "border_mask.png" } card color: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 200 popup style: in place render style: image image: { if styling.colored_pinlines then card_background() else "card/mcard.png" } mask: { if is_crowned() then "card_crown_mask.png" else "card_mask.png" } ############################# Image image: left: { if styling.stretch_art_to_whole_card then 0 else if get_alpha_percentage(styling.namebox_opacity_percentage, default: 70) <= 0.995 or get_alpha_percentage(styling.typebox_opacity_percentage, default: 70) <= 0.995 then 47 else 56 } width: { if styling.stretch_art_to_whole_card then stylesheet.card_width else if get_alpha_percentage(styling.namebox_opacity_percentage, default: 70) <= 0.995 or get_alpha_percentage(styling.typebox_opacity_percentage, default: 70) <= 0.995 then 649 else 632 } top: { if styling.stretch_art_to_whole_card then 0 else if get_alpha_percentage(styling.namebox_opacity_percentage, default: 70) > 0.99 then 118 else if is_crowned() then 49 else 58 } bottom: { if styling.stretch_art_to_whole_card then stylesheet.card_height else if get_alpha_percentage(styling.textbox_opacity_percentage, default: 70) <= 0.985 then 957 else if get_alpha_percentage(styling.typebox_opacity_percentage, default: 70) <= 0.995 then 636 else 578 } z index: 0 mainframe image: left: { popout_left() } top: { popout_top() } width: { popout_width() } height: { popout_height() } z index: 1010 ############################# Text box text: left: 65 top: { 657 + chop_top() + (if is_stamped() then 7 else 0) + body_font_vertical() } right: { 677 - chop_right() } bottom: { 953 - chop_bottom() - if is_stamped() then 7 else 0 } z index: 900 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: 12 color: { body_font_color() } symbol font: name: { styling.text_box_mana_symbols } size: { body_font_size() } scale down to: 12 ############################# PT pt: left: 591 top: { 929 + pt_font_vertical() } width: 92 height: 48 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: card background script: card.card_color editable: false save value: false show statistics: false 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: pt shadow editable: false save value: false show statistics: false choice: pt shadow extra card field: type: choice name: card stamp rim script: card.card_color editable: false save value: false show statistics: false 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: namebox background editable: false save value: false show statistics: false choice: namebox background extra card field: type: choice name: typebox background editable: false save value: false show statistics: false choice: typebox background extra card field: type: choice name: textbox background editable: false save value: false show statistics: false choice: textbox background extra card field: type: choice name: textbox editable: false save value: false show statistics: false choice: textbox extra card field: type: choice name: textbox dark editable: false save value: false show statistics: false choice: textbox dark extra card field: type: choice name: girder editable: false save value: false show statistics: false choice: girder extra card field: type: choice name: alias bar gild script: card.card_color save value: false editable: false extra card style: card background: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 420 render style: image image: { if is_crowned() then "card_crown.png" else "card.png" } pt box: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 810 visible: { card.pt != "" } render style: image image: pt.png pt shadow: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 800 visible: { card.pt != "" } render style: image image: pt_shadow.png card stamp rim: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 610 visible: { is_stamped() } render style: image image: { if is_stamped() then "stamprim.png" else "" } card stamp border: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 600 visible: { is_stamped() } mask: border_stamp_mask.png namebox background: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 120 render style: image image: { set_alpha("background.png", alpha: get_alpha_percentage(styling.namebox_opacity_percentage, default: 70)) } mask: namebox_mask.png typebox background: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 120 render style: image image: { set_alpha("background.png", alpha: get_alpha_percentage(styling.typebox_opacity_percentage, default: 70)) } mask: typebox_mask.png textbox background: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 120 render style: image image: { set_alpha("background.png", alpha: get_alpha_percentage(styling.textbox_opacity_percentage, default: 70)) } mask: textbox_mask.png textbox: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 100 render style: image image: textbox.png textbox dark: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 130 visible: { get_alpha_percentage(styling.textbox_opacity_percentage, default: 70) > 0.99 } render style: image image: textbox_dark.png girder: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } z index: 110 render style: image image: { if is_crowned() then "crown_girder.png" else "girder.png" } alias bar gild: left: { alias_left_1() } top: { alias_top_1() } width: { alias_width_1() } height: { alias_height_1() } z index: 881 render style: image visible: { alias_enabled() } image: alias.png