From 1cab0e7c15c159520aae7de08e09286984d15d48 Mon Sep 17 00:00:00 2001 From: pichoro Date: Fri, 8 Aug 2008 03:09:16 +0000 Subject: [PATCH] 0.3.7 Update for Vanguard. - Upgraded Statistics. - Scripts refurbished based on latest Magic scripts. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1092 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/vanguard.mse-game/game | 43 ++++++++++++++----- data/vanguard.mse-game/stats/illustrator.png | Bin 0 -> 394 bytes data/vanguard.mse-game/stats/keywords.png | Bin 0 -> 674 bytes data/vanguard.mse-game/stats/stylesheet.png | Bin 0 -> 590 bytes data/vanguard.mse-game/stats/text_length.png | Bin 0 -> 118 bytes 5 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 data/vanguard.mse-game/stats/illustrator.png create mode 100644 data/vanguard.mse-game/stats/keywords.png create mode 100644 data/vanguard.mse-game/stats/stylesheet.png create mode 100644 data/vanguard.mse-game/stats/text_length.png diff --git a/data/vanguard.mse-game/game b/data/vanguard.mse-game/game index 04c23248..12a1bd9a 100644 --- a/data/vanguard.mse-game/game +++ b/data/vanguard.mse-game/game @@ -5,7 +5,7 @@ installer group: Magic Vanguard/game files icon: card-sample.png position hint: 02 -version: 2008-08-05 +version: 2008-08-07 # Author : Wolfwood # Most stuff is copy/pasted from magic.mse-game @@ -120,10 +120,15 @@ init script: remove_tag@(tag: "") + # step 2 : reminder text for keywords expand_keywords@( - default_expand: { contains(match:mode, set.automatic_reminder_text) }, + condition: { + correct_case or (mode != "pseudo" and not used_placeholders) + } + default_expand: { + chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text) + }, combine: { if mode == "pseudo" then "{keyword}" - else "{keyword} ({process_english_hints(reminder)})" } + else "{keyword} ({process_english_hints(reminder)})" } ) + # step 2b : move inline keywords' reminder text to the end of the line replace@( @@ -188,8 +193,9 @@ init script: #Necessary to make magic-mana-future play nicely colorless_color := { "c" } + word_count := break_text@(match:"[^[:space:]]+") + length + ############################################################## Set fields - set field: type: info name: Set Information @@ -233,7 +239,7 @@ set field: choice: expert choice: pseudo choice: custom - initial: old, core, expert, custom + initial: old, pseudo, custom # Convert from older mse versions script: if value = "yes" then "old, core, expert, custom" @@ -245,9 +251,7 @@ set field: name: automatic card numbers initial: no description: Should card numbers be shown on the cards? - ############################# Default style - default set style: title: padding left: 2 @@ -256,9 +260,7 @@ default set style: automatic reminder text: render style: checklist direction: vertical - ############################################################## Card fields - ############################# Background stuff card field: type: color @@ -364,6 +366,7 @@ card field: name: illustrator default: set.artist description: The illustrator of the image + icon: stats/illustrator.png card field: type: text name: copyright @@ -381,6 +384,26 @@ card field: else forward_editor(field: card.copyright) description: The copyright and card number of the card +############################################################### Extra Statistics +statistics dimension: + name: keywords + position hint: 1000 + script: keyword_usage(unique:true) + show empty: false + split list: true + icon: stats/keywords.png +statistics dimension: + name: style + position hint: 1001 + script: stylesheet.short_name + icon: stats/stylesheet.png +statistics dimension: + name: text length (words) + position hint: 100 + script: word_count(to_text(card.rule_text)) + numeric: true + bin size: 5 + icon: stats/text_length.png ############################################################## Auto replace # Do we need categories? #auto replace category: text box @@ -414,7 +437,6 @@ auto replace: replace: as an additional cost to play ############################################################## Keywords - ############################# Keyword rules has keywords: true @@ -523,7 +545,6 @@ keyword parameter type: ############################# All Magic keywords # By JrEye and Neko_Asakami, Updated by Pichoro and Buttock1234 - keyword: keyword: Flying match: flying diff --git a/data/vanguard.mse-game/stats/illustrator.png b/data/vanguard.mse-game/stats/illustrator.png new file mode 100644 index 0000000000000000000000000000000000000000..be298035b736399261ecea3a5148c2216dac7e7e GIT binary patch literal 394 zcmV;50d@X~P)M@L5|FE6isOO`D8)zQ)MKQlA)yS26TV;&x!8^XfE=dfz#<>lp*m6cV}(b2KA zu&@ZTw6v_$*Vmt`qM~xWzP|ozT3XtFE-tSBe0+TWfy&`nQd06~KtMnn1JHC~BO{|| zD=VuGAiYLGLE$XW(3e0(|By9+Fvt)&Il0ezdU{V36%~InF){rIy6lIIjm?Ewvu0Jl ze*Ieg|9_y;#>U2(Y;0`*nVFgYi-?H)1iJ3Ar>EzM?Ck87y}iAiD_5?}KX~w9_|>ad z9iKmcuKVT77a5>N{tq8M7+$$@#regH7wZ51{bL6i2Ez<5U%nKdI(4eUvSrJRfQqDn onz)b^kb^1GJZk8up>#4701~I6gdXDMrvLx|07*qoM6N<$f*~ZZ5C8xG literal 0 HcmV?d00001 diff --git a/data/vanguard.mse-game/stats/keywords.png b/data/vanguard.mse-game/stats/keywords.png new file mode 100644 index 0000000000000000000000000000000000000000..12ec4d97b65cfc176865bc020c43023544018a20 GIT binary patch literal 674 zcmV;T0$u%yP)pF33NqRbVF}#ZDnqB004<9jRpV!0zXMaK~#90wNy<{6Hyc;{+c#* zp~Hua3W-IdE;RlDmo8knbAyVMR7)F7O{5|5lei)@hL9KyB@zsn0#Z|h(+0s>3mRLU z>2x|XEgd<&_nKDAv=b__xRZJJojG&gx#zwX04e{7Fx0o zCRl3XWT2FLRl7lwP=qcB*X`ync7}D*P$QspHAz}hPB>jo(h8LLc`SN4arREf5=$n7 z&gBI!C++@6e+Q+k{L~U`6h46#Q}{lORM3g_5w5;OsmW8=5`$1boAO#h^4H2pCv4(CNBErM` zOatH`(^cPeAsgw0aLr!p018UaUnMT!3Gfo61rD)(huMb3^f=jcKu>z{a-elB?mh_9 zVYZ|Y#CaR^FK#^d@%J0bqi5!ze|?N8|IxeqBlw>C{a;BdgFt;wqn;ghOWl&?CX8B);uhq;A0rk`1?Bu_(G^+8=fi(iFVtojd```&=?0If7VcZHDM zgdFW6Q+p9w;xd%j1xU+nYp5L;wH)07*qo IM6N<$f?e|?!~g&Q literal 0 HcmV?d00001 diff --git a/data/vanguard.mse-game/stats/stylesheet.png b/data/vanguard.mse-game/stats/stylesheet.png new file mode 100644 index 0000000000000000000000000000000000000000..141c5f3020f4f04dbf2e494278d847602dd1a87a GIT binary patch literal 590 zcmV-U0V8~Xy8S0H4m|$Z+9~M`Nhafk)c2X<;69UFG#3)i2VDqh2h-xt$%-hXZ9i6P^f|D zB-FixSQ!s8JiK_80cc=ZV9V1TC<;O8lo)(url9KWgC*}izu5Qx$BVlEm)1G_Uso+P zADdbxB3-BdtmEi!x-P6Yy?wq}K{M%=iG;Hb_apkDZ>lQFG{Qt`;_^w`A zTrJ|Ll%@|q%m4ihk1n5OxN_k9BcOo>(GwrOCn}u+4P#_r_{Re@FdaxI|NX}-BP1oy z12XW{y&E6{zXJ_)!DS$ZOZ%3tWRhn4Cc?$^XFkwAX9kA9Y)n5NGO#|I$Ead#%JAgo zV}{4q-+&C`YV`bQRbbzI|3@IJoQ6{fm3oNB~`!Psl(N zL;IF2W&8DqA?WWnhCo(TU50Jvo-$0^@tZ+};|IgfPb$~-zVO<{PrUJzq`d#>3*&M| z7Oo&R5pjmkUzr%b{1ssM#>B&L<^IJFVr>5k<0lYjAc~=H-+d4K_WcvX_a9Ffe*E~$ z@C)c{R(8Ja0<7QX%<0I#MM@??iKxv>Dp(l)|2AXz|HqBt-|rbf`WrB^{`)4*{Ymrt2Qud`6Zr(B7)yfu zf*Bm1-ADs+}1Cpa*D`pPcwM%LreQ;x!&@*a=AZ|q`bP`b)qHpTyrCr~AW Mr>mdKI;Vst0J(l5p8x;= literal 0 HcmV?d00001