From 5fa6cc3db9c5da2246615428aa2a237cfdeb3ceb Mon Sep 17 00:00:00 2001 From: pichoro Date: Sat, 28 Apr 2007 04:50:35 +0000 Subject: [PATCH] Cleaned up keywords section more. Added more fields necessary for FPM temp merger. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@305 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic-new.mse-style/style | 15 ++- data/magic.mse-game/game | 168 +++++++++++++++++++++++++-------- 2 files changed, 137 insertions(+), 46 deletions(-) diff --git a/data/magic-new.mse-style/style b/data/magic-new.mse-style/style index 3841c2df..afdf999c 100644 --- a/data/magic-new.mse-style/style +++ b/data/magic-new.mse-style/style @@ -34,20 +34,17 @@ init script: else if styling.tap_symbol == "diagonal T" then "older" else "new" } + # Use guild mana symbols? guild_mana := { styling.use_guild_mana_symbols } # Does the card have a color that requires a white font for copyright/artist? - white_font_colors := filter_rule(match:"^(hybrid 2 color )?(hybrid 3 color [^/]*/[^/]*/ )?(hybrid vertical [^/]*/ )?(black|land|hybrid 4 color w/u/b/r)") + white_font_colors := filter_rule(match:"^(hybrid 2 color )?(hybrid 3 color [^/]*/[^/]*/ )?(hybrid vertical [^/]*/ )?(black|land|hybrid 4 color white / blue / black / red)") font_color := { - if white_font_colors(input:card.card_color) != "" then - rgb(255,255,255) - else - rgb(0,0,0) + if white_font_colors(input: card.card_color) != "" then rgb(255,255,255) + else rgb(0,0,0) } - - - + ############################################################## Extra style options styling field: @@ -133,7 +130,7 @@ card style: ############################# Name line name: - left: { if card.card_symbol=="none" then 32 else 51 } + left: { if card.card_symbol=="none" then 32 else 51 } top : 30 width: { if card.card_symbol=="none" then 246 else 227 } height: 23 diff --git a/data/magic.mse-game/game b/data/magic.mse-game/game index b3825181..becce982 100644 --- a/data/magic.mse-game/game +++ b/data/magic.mse-game/game @@ -7,36 +7,6 @@ icon: card-back.png # General functions init script: - #character filter for copyright line - copyright_filter := - # step 1 : Æ replacement rule - replace_rule( - match: "AE", - replace: "Æ") + - # step 2 : longdash for keywords - replace_rule( - match: "--| - ", - replace: "—") + - # step 3 : trademark symbol - replace_rule( - match: "TM", - replace: "™") + - # step 4 : copyright symbol - replace_rule( - match: "CR", - replace: "©") - - #character filter for title line - name_filter := - # step 1 : Æ replacement rule - replace_rule( - match: "AE", - replace: "Æ") + - # step 2 : longdash for keywords - replace_rule( - match: "--| - ", - replace: "—") - # correctly sort a mana symbol (no guild mana) mana_sort := sort_rule(order: "XYZ[0123456789]S(WUBRG)") # correctly sort guild mana @@ -254,9 +224,39 @@ init script: # step 8 : post ( capitalization replace_rule( match: "[a-z]", - in_context: "[(]()?|[ ]*: ", + in_context: "[(]()?|[ ]*: |—", replace: { to_upper() }) + #character filter for title line + name_filter := + # step 1 : Æ replacement rule + replace_rule( + match: "AE", + replace: "Æ") + + # step 2 : longdash for keywords + replace_rule( + match: "--| - ", + replace: "—") + + #character filter for copyright line + copyright_filter := + # step 1 : Æ replacement rule + replace_rule( + match: "AE", + replace: "Æ") + + # step 2 : longdash for keywords + replace_rule( + match: "--| - ", + replace: "—") + + # step 3 : trademark symbol + replace_rule( + match: "TM", + replace: "™") + + # step 4 : copyright symbol + replace_rule( + match: "CR", + replace: "©") + # the flavor text filter # - makes all text italic flavor_text_filter := @@ -265,6 +265,27 @@ init script: # step 2 : surround by tags { "" + input + "" } + # paintbrush symbol sorting, ordering rule, and context; needed for FPM temps + brush_sort := sort_rule(order: "OP") + brush_context := + "(?ix) # case insensitive, ignore whitespace + (^|[[:space:]\"(]) # start of a word + ( (^)(A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z) + ) + "; + artist_line_filter := + tag_remove_rule(tag: "") + + replace_rule( + match: "\\][OP]+\\[", + replace: {"" + brush_sort() + ""} ) + + replace_rule( + match: "[OP|]+", + in_context: brush_context, + replace: {"" + brush_sort() + ""} ) + + replace_rule( + match: "\\[[OP]+\\]", + replace: {"" + brush_sort() + ""} ); + # Move the cursor past the separator in the p/t and type boxes type_over_pt := replace_rule(match:"/$", replace:"") type_over_type := replace_rule(match:" ?-$", replace:"") @@ -616,6 +637,18 @@ card field: icon: stats/toughness.png editable: false #needed for FPM temps +card field: + type: text + name: fpmpower + icon: stats/power.png + card list column:5 +#needed for FPM temps +card field: + type: text + name: fpmtoughness + icon: stats/toughness.png + card list column:6 +#needed for FPM temps card field: type: choice name: ptsymbols @@ -797,6 +830,48 @@ card field: show statistics: false script: combined_editor(field1: card.rule_text_2, separator: "\n", field2: card.flavor_text_2) +card field: + type: choice + name: watermark 2 + choice: none + choice: + name: mana symbol + choice: white + choice: blue + choice: black + choice: red + choice: green + choice: snow + choice: tap + choice: + name: xander hybrid mana + choice: B/R + choice: U/B + choice: B/G + choice: R/G + choice: G/U + choice: U/R + choice: W/B + choice: G/W + choice: R/W + choice: W/U + choice: + name: guild symbol + choice: Azorius Senate (W/U) + choice: House Dimir (U/B) + choice: Cult of Rakdos (B/R) + choice: Gruul Clans (R/G) + choice: Selesnya Conclave (G/W) + choice: Orzhov Syndicate (W/B) + choice: The Izzet (U/R) + choice: The Golgari (B/G) + choice: Boros Legion (R/W) + choice: The Simic (G/U) + choice: + name: promo symbol + choice: DCI + choice: FNM + description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, a special symbol, or a guild symbol card field: type: text name: power 2 @@ -811,6 +886,20 @@ card field: editable: false show statistics: false #needed for FPM temps +card field: + type: text + name: fpmpower 2 + icon: stats/power.png + editable: false + show statistics: false +#needed for FPM temps +card field: + type: text + name: fpmtoughness 2 + icon: stats/toughness.png + editable: false + show statistics: false +#needed for FPM temps card field: type: choice name: ptsymbols 2 @@ -1255,7 +1344,12 @@ keyword: reminder: This comes into play with a +1/+1 counter on it for each color of mana used to pay its cost. If it is not a creature, use charge counters instead. keyword: keyword: Splice - match: Splice onto name cost + match: Splice onto name mana + mode: expert + reminder: As you play a {param1} spell, you may reveal this card from your hand and pay its splice cost. If you do, add this card’s effects to that spell. +keyword: + keyword: Splice + match: Splice onto nameaction mode: expert reminder: As you play a {param1} spell, you may reveal this card from your hand and pay its splice cost. If you do, add this card’s effects to that spell. keyword: @@ -1309,16 +1403,16 @@ keyword: mode: expert reminder: When you play this spell, copy it for each time you paid its replicate cost. You may choose new targets for the copies. #Denimwalk was a casualty of my fixing landwalk to work right -keyword: - keyword: Denimwalk - match: Denimwalk - mode: core - reminder: If defending player is wearing any clothing made of denim, this creature is unblockable. keyword: keyword: Landwalk match: namewalk mode: core reminder: This creature is unblockable as long as defending player controls a {param1}. +keyword: + keyword: Denimwalk + match: Denimwalk + mode: core + reminder: If defending player is wearing any clothing made of denim, this creature is unblockable. keyword: keyword: Protection from match: Protection from name