Commit ebe8f653 authored by pichoro's avatar pichoro

Altered cmc refer script for mana param.

Added refer scripts for mana param to Vanguard.
parent 1f7ec6d4
...@@ -1300,7 +1300,8 @@ keyword parameter type: ...@@ -1300,7 +1300,8 @@ keyword parameter type:
refer script: refer script:
name: converted mana cost name: converted mana cost
description: Converts mana to number 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 # By pichoro and bunnierein
keyword parameter type: keyword parameter type:
name: cost name: cost
...@@ -1691,7 +1692,7 @@ keyword: ...@@ -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. 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:
keyword: Suspend keyword: Suspend
match: Suspend <atom-param>number</atom-param>—<atom-param>mana</atom-param> match: Suspend <atom-param>mana</atom-param>—<atom-param>cost</atom-param>
mode: expert 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 ""} 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: keyword:
......
mse version: 0.3.2 mse version: 0.3.4
short name: Vanguard short name: Vanguard
full name: Magic Vanguard full name: Magic Vanguard
icon: card-sample.png icon: card-sample.png
...@@ -183,6 +183,12 @@ init script: ...@@ -183,6 +183,12 @@ init script:
in_context: "[(](<param-[a-z]*>)?<match>|[ ]*: <param-cost><match>|—<match>| — <match>", in_context: "[(](<param-[a-z]*>)?<match>|[ ]*: <param-cost><match>|—<match>| — <match>",
replace: { to_upper() }) 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 ############################################################## Set fields
...@@ -406,6 +412,15 @@ keyword mode: ...@@ -406,6 +412,15 @@ keyword mode:
keyword parameter type: keyword parameter type:
name: mana name: mana
match: [STXYZ0-9WUBRG/|]+ 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 # By pichoro and bunnierein
keyword parameter type: keyword parameter type:
name: cost name: cost
...@@ -777,7 +792,7 @@ keyword: ...@@ -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. 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:
keyword: Forecast keyword: Forecast
match: forecast — <atom-param>cost</atom-param>, Reveal <atom-param>name</atom-param> from your hand: <atom-param>action</atom-param> match: forecast — <atom-param>mana</atom-param>, Reveal <atom-param>name</atom-param> from your hand: <atom-param>action</atom-param>
mode: expert mode: expert
reminder: Play the ability only during your upkeep and only once each turn. reminder: Play the ability only during your upkeep and only once each turn.
keyword: keyword:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment