diff --git a/data/vs-common.mse-include/include b/data/vs-common.mse-include/include index 066190af..9f68be5b 100644 --- a/data/vs-common.mse-include/include +++ b/data/vs-common.mse-include/include @@ -1,11 +1,11 @@ -mse version: 0.3.8 +mse version: 0.3.9 full name: VS System, textbox watermarks -version: 2010-03-25 +version: 2011-01-08 depends on: package: vs-standard-official.mse-symbol-font - version: 2010-03-25 + version: 2008-10-23 # This file doesn't do anything, other files in this directory can be included # in game/style files: -# watermarks Includes references to the watermark images, to be used in a style file +# watermarks Includes references to the watermark images, to be used in a style file \ No newline at end of file diff --git a/data/vs.mse-game/game b/data/vs.mse-game/game index 2598430a..a366d8ac 100644 --- a/data/vs.mse-game/game +++ b/data/vs.mse-game/game @@ -1,14 +1,14 @@ -mse version: 0.3.8 +mse version: 0.3.9 full name: VS System short name: VS installer group: VS System/game files icon: card-back.png position hint: 3 -version: 2010-08-13 +version: 2011-01-08 depends on: package: vs-common.mse-include - version: 2009-02-04 + version: 2011-01-08 ############ some scripts copied and altered from magic.mse-game ############################################################## The script @@ -24,4 +24,4 @@ include file: keywords include file: word_lists include file: auto_replace -############################################################## Other stuff +############################################################## Other stuff \ No newline at end of file diff --git a/data/vs.mse-game/script b/data/vs.mse-game/script index 10b19457..a2bba978 100644 --- a/data/vs.mse-game/script +++ b/data/vs.mse-game/script @@ -37,8 +37,7 @@ tag_remove_rule(tag: "") + tag_remove_rule(tag: "") + tag_remove_rule(tag: "") + - remove_tag@(tag: "{input}"}) - reminder := process_english_hints(reminder) - # the combined result - "{keyword}" - + if expand then " ({reminder})" - }) + + combine: { + if mode == "real" then "{keyword}" + (if expand then " ({process_english_hints(reminder)})" else "") + else "{keyword}" } + ) + + # step 2b : remove duplicate reminder text + replace@( + match: "(]*>[^)]+[)]]*>)([^\n]+)\\1" + replace: "\\2\\1" + ) + # step 3 : Expand shortcut words ~ and CARDNAME replace_rule( match: "~|~THIS~|CARDNAME", @@ -70,19 +69,11 @@ replace_rule( match: "->|>>>|@|<>|•", replace: "&") + - # step 7: keyword parameters should not be bolded - # step 7a: put before each - #replace@( - # match: "]*>", - # replace: "&") + - # step 7b: put after each - #replace@( - # match: "]*>", - # replace: "&") + + #X#if contains(card.shape, match:"old") then symbol_filter else new_symbols # step 8 : Italic reminder text replace_rule( - match: "[(][^)\n]*[)]?", - in_context: "(^|[[:space:]])|", + match: "[(]([^)\n]|[(][^)\n]*[)])*[)]?", + in_context: "(^|[[:space:]])|&") ############### Word List Scripts for Affiliations and Card Types @@ -94,7 +85,7 @@ tag_remove_rule(tag: "") + type_over_list + { "{if contains(card.shape, match: "old") then (input) else to_upper(input)}" } - + space_to_wltags := replace_rule(match:"( +| )", replace:{"{_1}"}) @@ -177,7 +168,7 @@ contains(card.rule_text, match: "Concealed—Optional") } is_concealed := { contains(card.card_type, match: "hidden") or - contains(card.rule_text, match: "Concealed") + card.card_type == "equipment concealed equipment" } is_equipment := { contains(card.card_type, match: "equipment") } @@ -227,7 +218,9 @@ else if is_character() and card.identity!="" then " " else if is_equipment() and card.identity=="" then " " else if is_equipment() and card.identity!="" then " " - else " " + else if is_location() and card.identity=="" then " " + else if is_location() and card.identity!="" then " " + else "" } separator_type := {