From 1abd78f9c5840173392394970a3dbf980b2896b3 Mon Sep 17 00:00:00 2001 From: GenevensiS <66968533+G-e-n-e-v-e-n-s-i-S@users.noreply.github.com> Date: Sun, 9 Aug 2026 18:18:21 +0200 Subject: [PATCH 1/3] add meld 3 in 1 update script --- data/magic-m15-meld-3in1.mse-style/style | 94 +++++++++++++++++++++++- 1 file changed, 93 insertions(+), 1 deletion(-) diff --git a/data/magic-m15-meld-3in1.mse-style/style b/data/magic-m15-meld-3in1.mse-style/style index b2853ca911..2a3fa1b4e6 100644 --- a/data/magic-m15-meld-3in1.mse-style/style +++ b/data/magic-m15-meld-3in1.mse-style/style @@ -6,7 +6,7 @@ icon: card-sample.png position hint: 066 installer group: magic/m15 style/double faced -version: 2024-06-07 +version: 2026-07-14 depends on: package: magic.mse-game version: 2014-06-25 @@ -56,6 +56,98 @@ card region: y: 0 width: 375 height: 523 + +############################################################## Update scripts +update cards script: + before version: 2026-07-15 + description: Breaks the card down into three cards that use magic-m15-altered.mse-style + script: + new_stylesheet := "magic-m15-altered.mse-style" + new_version := "2025-10-05" + if version_is_older(exists_as_package(new_stylesheet), than: new_version) then [] else ( + + styling_data := if not card.has_styling then nil else [hybrid_name: if styling.grey_hybrid_name then "grey" else "hybrid"] + styling + + top_card := new_card(set:set, + copy_from: card, + ignore_field_not_found: true, + [ + uid: if card.uid == "" then new_uid() else card.uid, + transformation: if is_default(card.transformation) then nil else transform_symbol_backwards_compatibility(card.transformation), + pt_2: "", + pt_3: "", + stylesheet: new_stylesheet, + stylesheet_version: new_version, + styling_data: styling_data + ] + ) + + bottom_card := new_card( + ignore_field_not_found: true, + [ + corners: if is_default(card.corners_2) then nil else card.corners_2, + card_color: if is_default(card.card_color_2) then nil else card.card_color_2, + name: card.name_2, + casting_cost: card.casting_cost_2, + image: if is_default(card.image_2) then nil else import_image(card.image_2), + indicator: if is_default(card.indicator_2) then nil else card.indicator_2, + type: card.type_2, + rarity: card.rarity_2, + stamp: if is_default(card.card_stamp_2) then nil else card.card_stamp_2, + text: card.text_2, + separator: card.separator_2, + pt: card.pt_2, + watermark: if is_default(card.watermark_2) then nil else card.watermark_2, + card_code_text: card.card_code_text_2, + custom_card_number: card.custom_card_number, + copyright: card.copyright_2, + illustrator: card.illustrator_2, + illustrator_brush: if is_default(card.illustrator_brush_2) then nil else card.illustrator_brush_2, + additional_credit: card.additional_credit_4, + additional_credit_brush: if is_default(card.additional_credit_brush_4) then nil else card.additional_credit_brush_4, + vorthos_box: card.vorthos_box_2, + the_list_icon: card.the_list_icon_2, + transformation: if is_default(card.transformation_2) then nil else transform_symbol_backwards_compatibility(card.transformation_2), + stylesheet: new_stylesheet, + stylesheet_version: new_version, + styling_data: styling_data + ] + ) + + meld_card := new_card( + ignore_field_not_found: true, + [ + corners: if is_default(card.corners_3) then nil else card.corners_3, + name: card.name_3, + image: if is_default(extra_card.meld_image) then nil else import_image(extra_card.meld_image), + type: card.type_3, + rarity: card.rarity_3, + stamp: if is_default(card.card_stamp_3) then nil else card.card_stamp_3, + text: card.text_3, + separator: card.separator_3, + pt: card.pt_3, + watermark: if is_default(card.watermark_3) then nil else card.watermark_3, + card_code_text: card.card_code_text_3, + custom_card_number: card.custom_card_number, + copyright: card.copyright_3, + illustrator: card.illustrator_3, + illustrator_brush: if is_default(card.illustrator_brush_3) then nil else card.illustrator_brush_3, + additional_credit: card.additional_credit_5, + additional_credit_brush: if is_default(card.additional_credit_brush_5) then nil else card.additional_credit_brush_5, + the_list_icon: card.the_list_icon_3, + transformation: if is_default(card.transformation_3) then nil else transform_symbol_backwards_compatibility(card.transformation_3), + stylesheet: new_stylesheet, + stylesheet_version: new_version, + styling_data: [frames: "clear"] + styling_data + ] + ) + + add_link(top_card, selected_relation: "Meld Base", linked_card: bottom_card, linked_relation: "Meld Catalyst") + add_link(top_card, selected_relation: "Meld Base", linked_card: meld_card, linked_relation: "Meld Result") + add_link(bottom_card, selected_relation: "Meld Catalyst", linked_card: meld_card, linked_relation: "Meld Result") + + [top_card, bottom_card, meld_card]) + ############################################################## Extra scripts init script: # Load scripts for image box From d4db3b37f28abac3a8aa6520ce8dafe62b3013fb Mon Sep 17 00:00:00 2001 From: GenevensiS <66968533+G-e-n-e-v-e-n-s-i-S@users.noreply.github.com> Date: Sun, 9 Aug 2026 18:22:19 +0200 Subject: [PATCH 2/3] change version --- data/magic-m15-meld-3in1.mse-style/style | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/magic-m15-meld-3in1.mse-style/style b/data/magic-m15-meld-3in1.mse-style/style index 2a3fa1b4e6..6a9120c41c 100644 --- a/data/magic-m15-meld-3in1.mse-style/style +++ b/data/magic-m15-meld-3in1.mse-style/style @@ -6,7 +6,7 @@ icon: card-sample.png position hint: 066 installer group: magic/m15 style/double faced -version: 2026-07-14 +version: 2026-07-15 depends on: package: magic.mse-game version: 2014-06-25 From 879965b5bad6aeb6570d4a26b6c0b121a7fddbb5 Mon Sep 17 00:00:00 2001 From: GenevensiS <66968533+G-e-n-e-v-e-n-s-i-S@users.noreply.github.com> Date: Sun, 9 Aug 2026 18:46:17 +0200 Subject: [PATCH 3/3] Update style --- data/magic-m15-meld-3in1.mse-style/style | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/magic-m15-meld-3in1.mse-style/style b/data/magic-m15-meld-3in1.mse-style/style index 6a9120c41c..64d779dcf9 100644 --- a/data/magic-m15-meld-3in1.mse-style/style +++ b/data/magic-m15-meld-3in1.mse-style/style @@ -66,9 +66,9 @@ update cards script: new_version := "2025-10-05" if version_is_older(exists_as_package(new_stylesheet), than: new_version) then [] else ( - styling_data := if not card.has_styling then nil else [hybrid_name: if styling.grey_hybrid_name then "grey" else "hybrid"] + styling + styling_data := [hybrid_name: if styling.grey_hybrid_name then "grey" else "hybrid"] + styling - top_card := new_card(set:set, + top_card := new_card( copy_from: card, ignore_field_not_found: true, [