From c7b9382929fab4b891e9a3c807b839b3e27cce37 Mon Sep 17 00:00:00 2001 From: cajun Date: Sun, 26 May 2024 14:51:49 -0500 Subject: [PATCH] update sister games (#52) Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com> --- data/archenemy.mse-game/game | 15 ++++++++-- data/herospath.mse-game/game | 51 ++++++++++++++++++++++++++++++++-- data/planechase.mse-game/game | 27 ++++++++++++------ data/saga.mse-game/game | 15 ++++++++-- data/space.mse-game/script | 30 ++++++++++---------- data/space.mse-game/set_fields | 15 ++++++++-- data/vanguard.mse-game/game | 15 ++++++++-- 7 files changed, 132 insertions(+), 36 deletions(-) diff --git a/data/archenemy.mse-game/game b/data/archenemy.mse-game/game index 69b4c20ad..919825a4a 100644 --- a/data/archenemy.mse-game/game +++ b/data/archenemy.mse-game/game @@ -282,8 +282,8 @@ set field: initial: old, expert, pseudo, custom # Convert from older mse versions script: - if value = "yes" then "old, core, expert, custom" - else if value = "no" then "" + if value == "yes" then "old, core, expert, custom" + else if value == "no" then "" else value description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword. set field: @@ -291,6 +291,9 @@ set field: name: automatic card numbers initial: yes description: Should card numbers be shown on the cards? +set field: + type: info + name: custom mana set field: type: text name: custom mana symbol name @@ -302,11 +305,15 @@ set field: choice: enable in text boxes choice: colored mana symbols choice: hybrid with colors +set field: + type: text + name: number hybrid variants + description: Change each number hybrid (0/X, 1/X, 2/X ... 11/X) up to this number to a specific variant instead of a hybrid symbol. set field: type: choice name: mana symbol help choice: Click here for mana symbol help! - choice: In your mainframe-extrasfolder, create folders named "large" and/or "small" depending on your usage + choice: In your mainframe-extras folder, create folders named "large" and/or "small" depending on your usage choice: Large is for only mana costs, small for only text, create both if you use both choice: Additionally, you can create a "future" folder for M15 Future mana costs choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows @@ -317,6 +324,8 @@ set field: choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.] choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look. choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols). + choice: You can change number hybrids (2/V etc) to different mana symbols for even more custom symbols. + choice: Put the highest number to change (from 0 to 11) in "number hybrid variants" and save as NAME_0.png etc. ############################# Default style default set style: title: diff --git a/data/herospath.mse-game/game b/data/herospath.mse-game/game index 7fe0eb67d..2e5c3007b 100644 --- a/data/herospath.mse-game/game +++ b/data/herospath.mse-game/game @@ -209,6 +209,18 @@ init script: # Move the cursor past the separator in the p/t and type boxes type_over_pt := replace@(match:"/$", replace:"") + ############################################################## Mainframe mana + use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")} + use_large_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"enable in casting costs")} + use_small_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"enable in text boxes")} + use_color_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"colored mana symbols") and not use_hybrid_v_mana()} + use_hybrid_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"hybrid with colors")} + v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")} + v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")} + v_mana_num := {max(to_number(set.number_hybrid_variants),0) or else -1} + ancestral_mana := {false} + white_text := {false} + ############################################################## Set fields set field: type: info @@ -260,8 +272,8 @@ set field: initial: old, pseudo, custom # Convert from older mse versions script: - if value = "yes" then "old, core, expert, custom" - else if value = "no" then "" + if value == "yes" then "old, core, expert, custom" + else if value == "no" then "" else value description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword. set field: @@ -269,6 +281,41 @@ set field: name: automatic card numbers initial: no description: Should card numbers be shown on the cards? +set field: + type: info + name: custom mana +set field: + type: text + name: custom mana symbol name + description: Use mana symbols from magic-mainframe-extras.mse-include. Input NAME.png here, check help below for file instructions. +set field: + type: multiple choice + name: mana symbol options + choice: enable in casting costs + choice: enable in text boxes + choice: colored mana symbols + choice: hybrid with colors +set field: + type: text + name: number hybrid variants + description: Change each number hybrid (0/X, 1/X, 2/X ... 11/X) up to this number to a specific variant instead of a hybrid symbol. +set field: + type: choice + name: mana symbol help + choice: Click here for mana symbol help! + choice: In your mainframe-extras folder, create folders named "large" and/or "small" depending on your usage + choice: Large is for only mana costs, small for only text, create both if you use both + choice: Additionally, you can create a "future" folder for M15 Future mana costs + choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows + choice: For the name option above, set the address of the image, minus mainframe-extras and large/small/future + choice: Ex: magic-mainframe-extras/cajun/large/hazard.png would use cajun/hazard.png + choice: Standard size is 160x160 for small, 200x200 for small hybrid and future, 165x178 for large, 205x218 for large hybrid + choice: If your symbol mixes with colors (such as Phyrexian mana): Save NAME_w.png, NAME_u.png, etc to those folders too. + choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.] + choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look. + choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols). + choice: You can change number hybrids (2/V etc) to different mana symbols for even more custom symbols. + choice: Put the highest number to change (from 0 to 11) in "number hybrid variants" and save as NAME_0.png etc. ############################# Default style default set style: title: diff --git a/data/planechase.mse-game/game b/data/planechase.mse-game/game index c289065fe..c7f1cc072 100644 --- a/data/planechase.mse-game/game +++ b/data/planechase.mse-game/game @@ -272,14 +272,16 @@ init script: is_nom := {card.supertype == "Phenomenon"} ancestral_mana := {"false"} + white_text := {false} + ############################################################## Mainframe mana use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")} - use_large_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"casting")} - use_small_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"text")} - use_color_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"colored") and not use_hybrid_v_mana()} - use_hybrid_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"hybrid")} + use_large_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"enable in casting costs")} + use_small_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"enable in text boxes")} + use_color_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"colored mana symbols") and not use_hybrid_v_mana()} + use_hybrid_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"hybrid with colors")} v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")} v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")} - white_text := {false} + v_mana_num := {max(to_number(set.number_hybrid_variants),0) or else -1} ############################################################## Set fields set field: type: info @@ -347,8 +349,8 @@ set field: initial: old, pseudo, custom # Convert from older mse versions script: - if value = "yes" then "old, core, expert, custom" - else if value = "no" then "" + if value == "yes" then "old, core, expert, custom" + else if value == "no" then "" else value description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword. set field: @@ -368,6 +370,9 @@ set field: choice: after other cards choice: separate numbering initial: after other cards +set field: + type: info + name: custom mana set field: type: text name: custom mana symbol name @@ -379,11 +384,15 @@ set field: choice: enable in text boxes choice: colored mana symbols choice: hybrid with colors +set field: + type: text + name: number hybrid variants + description: Change each number hybrid (0/X, 1/X, 2/X ... 11/X) up to this number to a specific variant instead of a hybrid symbol. set field: type: choice name: mana symbol help choice: Click here for mana symbol help! - choice: In your mainframe-extrasfolder, create folders named "large" and/or "small" depending on your usage + choice: In your mainframe-extras folder, create folders named "large" and/or "small" depending on your usage choice: Large is for only mana costs, small for only text, create both if you use both choice: Additionally, you can create a "future" folder for M15 Future mana costs choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows @@ -394,6 +403,8 @@ set field: choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.] choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look. choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols). + choice: You can change number hybrids (2/V etc) to different mana symbols for even more custom symbols. + choice: Put the highest number to change (from 0 to 11) in "number hybrid variants" and save as NAME_0.png etc. ############################# Default style default set style: diff --git a/data/saga.mse-game/game b/data/saga.mse-game/game index 2b6f68ff2..bd09221c0 100644 --- a/data/saga.mse-game/game +++ b/data/saga.mse-game/game @@ -320,8 +320,8 @@ set field: initial: old, pseudo, custom # Convert from older mse versions script: - if value = "yes" then "old, core, expert, custom" - else if value = "no" then "" + if value == "yes" then "old, core, expert, custom" + else if value == "no" then "" else value description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword. set field: @@ -333,6 +333,9 @@ set field: type: boolean name: mark errors description: Marks errors on cards, for example wording and spelling errors, non unique card names, etc. +set field: + type: info + name: custom mana set field: type: text name: custom mana symbol name @@ -344,11 +347,15 @@ set field: choice: enable in text boxes choice: colored mana symbols choice: hybrid with colors +set field: + type: text + name: number hybrid variants + description: Change each number hybrid (0/X, 1/X, 2/X ... 11/X) up to this number to a specific variant instead of a hybrid symbol. set field: type: choice name: mana symbol help choice: Click here for mana symbol help! - choice: In your mainframe-extrasfolder, create folders named "large" and/or "small" depending on your usage + choice: In your mainframe-extras folder, create folders named "large" and/or "small" depending on your usage choice: Large is for only mana costs, small for only text, create both if you use both choice: Additionally, you can create a "future" folder for M15 Future mana costs choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows @@ -359,6 +366,8 @@ set field: choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.] choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look. choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols). + choice: You can change number hybrids (2/V etc) to different mana symbols for even more custom symbols. + choice: Put the highest number to change (from 0 to 11) in "number hybrid variants" and save as NAME_0.png etc. ############################# Default style default set style: title: diff --git a/data/space.mse-game/script b/data/space.mse-game/script index 3e6410bab..c6e148046 100644 --- a/data/space.mse-game/script +++ b/data/space.mse-game/script @@ -26,11 +26,11 @@ psi_filter_t := replace@( # Remove [] used for forcing psi symbols ############################################################## Determine card color # Names of colors color_name := { - if input = "W" then "crystal" - else if input = "U" then "cryo" - else if input = "B" then "shadow" - else if input = "R" then "pyre" - else if input = "G" then "xeno" + if input == "W" then "crystal" + else if input == "U" then "cryo" + else if input == "B" then "shadow" + else if input == "R" then "pyre" + else if input == "G" then "xeno" else "" } color_names_1 := { color_name(colors.0) } @@ -90,7 +90,7 @@ text_to_color := { if text != "" then ( if contains(text, match: "all colors") then ( colors := "WUBRG" - if resource = "resource" then resource_multicolor() + if resource == "resource" then resource_multicolor() else psi_to_color(hybrid: "") ) else ( colors := "" @@ -99,11 +99,11 @@ text_to_color := { if contains(text, match: "shadow") then colors := colors + "B" if contains(text, match: "pyre") then colors := colors + "R" if contains(text, match: "xeno") then colors := colors + "G" - if resource = "resource" then resource_multicolor() + if resource == "resource" then resource_multicolor() else psi_to_color(hybrid: "") ) - ) - ) + ) else "" + ) else "" } # The color of a card @@ -389,6 +389,7 @@ sub_type_filter := else if is_device(type) then "device" else if is_augment(type) then "augment" else if is_action(type) then "action" + else "" if is_unit(type) or is_tribal(type) then ( first := "{ only_first(input) }" next := only_next(input) @@ -473,11 +474,12 @@ word_count := break_text@(match:"[^[:space:]]+") + length # Mana font scripts ancestral_mana := {false} +white_text := {false} use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")} -use_large_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"casting")} -use_small_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"text")} -use_color_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"colored") and not use_hybrid_v_mana()} -use_hybrid_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"hybrid")} +use_large_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"enable in casting costs")} +use_small_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"enable in text boxes")} +use_color_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"colored mana symbols") and not use_hybrid_v_mana()} +use_hybrid_v_mana := { use_v_mana() and chosen(set.mana_symbol_options, choice:"hybrid with colors")} v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")} v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")} -white_text := {false} +v_mana_num := {max(to_number(set.number_hybrid_variants),0) or else -1} diff --git a/data/space.mse-game/set_fields b/data/space.mse-game/set_fields index 269fa9393..0bae2964e 100644 --- a/data/space.mse-game/set_fields +++ b/data/space.mse-game/set_fields @@ -52,8 +52,8 @@ set field: initial: old, core, expert, pseudo, action, custom # Convert from older mse versions script: - if value = "yes" then "old, core, expert, custom" - else if value = "no" then "" + if value == "yes" then "old, core, expert, custom" + else if value == "no" then "" else value description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword. set field: @@ -80,6 +80,9 @@ set field: choice: no description: Use gradients on multicolor cards by default, you can always change it be clicking on the card border. initial: no +set field: + type: info + name: custom mana set field: type: text name: custom mana symbol name @@ -91,11 +94,15 @@ set field: choice: enable in text boxes choice: colored mana symbols choice: hybrid with colors +set field: + type: text + name: number hybrid variants + description: Change each number hybrid (0/X, 1/X, 2/X ... 11/X) up to this number to a specific variant instead of a hybrid symbol. set field: type: choice name: mana symbol help choice: Click here for mana symbol help! - choice: In your mainframe-extrasfolder, create folders named "large" and/or "small" depending on your usage + choice: In your mainframe-extras folder, create folders named "large" and/or "small" depending on your usage choice: Large is for only mana costs, small for only text, create both if you use both choice: Additionally, you can create a "future" folder for M15 Future mana costs choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows @@ -106,6 +113,8 @@ set field: choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.] choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look. choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols). + choice: You can change number hybrids (2/V etc) to different mana symbols for even more custom symbols. + choice: Put the highest number to change (from 0 to 11) in "number hybrid variants" and save as NAME_0.png etc. ############################# Default style default set style: diff --git a/data/vanguard.mse-game/game b/data/vanguard.mse-game/game index a2800300a..e3135a233 100644 --- a/data/vanguard.mse-game/game +++ b/data/vanguard.mse-game/game @@ -261,8 +261,8 @@ set field: initial: old, pseudo, custom # Convert from older mse versions script: - if value = "yes" then "old, core, expert, custom" - else if value = "no" then "" + if value == "yes" then "old, core, expert, custom" + else if value == "no" then "" else value description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword. set field: @@ -270,6 +270,9 @@ set field: name: automatic card numbers initial: no description: Should card numbers be shown on the cards? +set field: + type: info + name: custom mana set field: type: text name: custom mana symbol name @@ -281,11 +284,15 @@ set field: choice: enable in text boxes choice: colored mana symbols choice: hybrid with colors +set field: + type: text + name: number hybrid variants + description: Change each number hybrid (0/X, 1/X, 2/X ... 11/X) up to this number to a specific variant instead of a hybrid symbol. set field: type: choice name: mana symbol help choice: Click here for mana symbol help! - choice: In your mainframe-extrasfolder, create folders named "large" and/or "small" depending on your usage + choice: In your mainframe-extras folder, create folders named "large" and/or "small" depending on your usage choice: Large is for only mana costs, small for only text, create both if you use both choice: Additionally, you can create a "future" folder for M15 Future mana costs choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows @@ -296,6 +303,8 @@ set field: choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.] choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look. choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols). + choice: You can change number hybrids (2/V etc) to different mana symbols for even more custom symbols. + choice: Put the highest number to change (from 0 to 11) in "number hybrid variants" and save as NAME_0.png etc. ############################# Default style default set style: