From ede910a153ccc3d8b35efc826766ef51a6cf99ba Mon Sep 17 00:00:00 2001 From: pichoro Date: Wed, 4 Jul 2007 20:53:28 +0000 Subject: [PATCH] Altered cmc refer script for mana param. Added refer scripts for mana param to Vanguard. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@481 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic.mse-game/game | 5 +++-- data/vanguard.mse-game/game | 19 +++++++++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/data/magic.mse-game/game b/data/magic.mse-game/game index 90c82eee..e17487e7 100644 --- a/data/magic.mse-game/game +++ b/data/magic.mse-game/game @@ -1300,7 +1300,8 @@ keyword parameter type: refer script: name: converted mana cost description: Converts mana to number - script: \{cmc({input}) + 1\} + # "0" left in so users can easily see how to edit script. + script: \{cmc({input}) + 0\} # By pichoro and bunnierein keyword parameter type: name: cost @@ -1691,7 +1692,7 @@ keyword: reminder: As long as this spell is on the stack, players can't play spells or activated abilities that aren't mana abilities. keyword: keyword: Suspend - match: Suspend numbermana + match: Suspend manacost mode: expert reminder: Rather than play this card from your hand,{if has_cc() then " you may" else ""} pay {param2} and remove it from the game with {english_number_a(param1)} time counter(s) on it. At the beginning of your upkeep, remove a time counter. When the last is removed, play it without paying its mana cost.{if has_pt() then " It has haste." else ""} keyword: diff --git a/data/vanguard.mse-game/game b/data/vanguard.mse-game/game index cf129e6d..29d84287 100644 --- a/data/vanguard.mse-game/game +++ b/data/vanguard.mse-game/game @@ -1,4 +1,4 @@ -mse version: 0.3.2 +mse version: 0.3.4 short name: Vanguard full name: Magic Vanguard icon: card-sample.png @@ -183,6 +183,12 @@ init script: in_context: "[(]()?|[ ]*: |—| — ", replace: { to_upper() }) + # Converted mana cost + cmc := to_text + { + 1 * number_of_items(in: sort(order:"SWUBRG")) # colored mana + - 1 * number_of_items(in: sort(order:"/")) # guild mana, W/U -> 2 - 1 + + 1 * sort(order: "[0123456789]") # colorless mana + } ############################################################## Set fields @@ -406,6 +412,15 @@ keyword mode: keyword parameter type: name: mana match: [STXYZ0-9WUBRG/|]+ + refer script: + name: normal + description: No changes made + script: \{{input}\} + refer script: + name: converted mana cost + description: Converts mana to number + # "0" left in so users can easily see how to edit script. + script: \{cmc({input}) + 0\} # By pichoro and bunnierein keyword parameter type: name: cost @@ -777,7 +792,7 @@ keyword: reminder: It comes into play with {english_number_a(param1)} +1/+1 counter(s) on it. Whenever a creature comes into play, you may move a +1/+1 counter from the permanent onto it. keyword: keyword: Forecast - match: forecast — cost, Reveal name from your hand: action + match: forecast — mana, Reveal name from your hand: action mode: expert reminder: Play the ability only during your upkeep and only once each turn. keyword: