mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Added "rules" to pseudo keywords, to serve as a guideline for use.
Added support to cost param for mixed costs, such as "Kicker-R, Sacrifice a Merfolk." git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@582 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -255,17 +255,22 @@ init script:
|
|||||||
# replaces — correctly
|
# replaces — correctly
|
||||||
add := "" # default is nothing
|
add := "" # default is nothing
|
||||||
for_mana_costs := format_cost := {
|
for_mana_costs := format_cost := {
|
||||||
if input.separator_before == "—" then
|
if input.separator_before == "—" then (
|
||||||
"<param-cost>{input.param}</param-cost>"
|
if not contains(input.param, match:",") then
|
||||||
else
|
"<param-cost>{input.param}</param-cost>"
|
||||||
|
else
|
||||||
|
"{add}<param-cost>{input.param}</param-cost>"
|
||||||
|
) else
|
||||||
"{add}<param-mana>{input.param}</param-mana>"
|
"{add}<param-mana>{input.param}</param-mana>"
|
||||||
}
|
}
|
||||||
alternative_cost := replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
alternative_cost := replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
||||||
|
combined_cost := replace_rule(match:", [A-Z]", replace: { to_lower() })+
|
||||||
|
replace_rule(match:",", replace:", and")
|
||||||
format_alt_cost := {
|
format_alt_cost := {
|
||||||
if input.separator_before == "—" then
|
if input.separator_before == "—" and not contains(input.param, match:",") then
|
||||||
alternative_cost(input.param)
|
alternative_cost(input.param)
|
||||||
else
|
else
|
||||||
input.param
|
combined_cost(input.param)
|
||||||
}
|
}
|
||||||
long_dash := replace_rule(match:"-", replace:"—")
|
long_dash := replace_rule(match:"-", replace:"—")
|
||||||
# Utilities for keywords
|
# Utilities for keywords
|
||||||
@@ -1431,6 +1436,8 @@ keyword parameter type:
|
|||||||
keyword parameter type:
|
keyword parameter type:
|
||||||
name: action
|
name: action
|
||||||
match: [^(\n]+
|
match: [^(\n]+
|
||||||
|
separator after is: [.]
|
||||||
|
reminder script: alternative_cost()
|
||||||
keyword parameter type:
|
keyword parameter type:
|
||||||
name: name
|
name: name
|
||||||
match: [^(.,\n—-]+
|
match: [^(.,\n—-]+
|
||||||
@@ -1572,6 +1579,7 @@ keyword:
|
|||||||
keyword: Threshold
|
keyword: Threshold
|
||||||
match: Threshold
|
match: Threshold
|
||||||
mode: pseudo
|
mode: pseudo
|
||||||
|
rules: Threshold — [effect] as long as seven or more cards are in your graveyard.
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Madness
|
keyword: Madness
|
||||||
match: Madness <atom-param>cost</atom-param>
|
match: Madness <atom-param>cost</atom-param>
|
||||||
@@ -1655,6 +1663,7 @@ keyword:
|
|||||||
keyword: Gotcha
|
keyword: Gotcha
|
||||||
match: Gotcha
|
match: Gotcha
|
||||||
mode: pseudo
|
mode: pseudo
|
||||||
|
rules: Gotcha — Whenever an opponent [does something], you may say "Gotcha!". If you do, return [something] from your graveyard to your hand.
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Splice
|
keyword: Splice
|
||||||
match: Splice onto <atom-param>name</atom-param> <atom-param>cost</atom-param>
|
match: Splice onto <atom-param>name</atom-param> <atom-param>cost</atom-param>
|
||||||
@@ -1704,10 +1713,12 @@ keyword:
|
|||||||
keyword: Channel
|
keyword: Channel
|
||||||
match: Channel
|
match: Channel
|
||||||
mode: pseudo
|
mode: pseudo
|
||||||
|
rules: Channel — [cost], Discard ~: [effect].
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Sweep
|
keyword: Sweep
|
||||||
match: Sweep
|
match: Sweep
|
||||||
mode: pseudo
|
mode: pseudo
|
||||||
|
rules: Sweep — Return any number of [basic land type] you control to their owner's hand. [effect based on number of lands returned].
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Convoke
|
keyword: Convoke
|
||||||
match: Convoke
|
match: Convoke
|
||||||
@@ -1727,6 +1738,7 @@ keyword:
|
|||||||
keyword: Radiance
|
keyword: Radiance
|
||||||
match: Radiance
|
match: Radiance
|
||||||
mode: pseudo
|
mode: pseudo
|
||||||
|
rules: Radiance — [effect to target permanent or spell and all cards of same card type that share a color with it]
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Haunt
|
keyword: Haunt
|
||||||
match: Haunt
|
match: Haunt
|
||||||
@@ -1756,6 +1768,7 @@ keyword:
|
|||||||
keyword: Hellbent
|
keyword: Hellbent
|
||||||
match: Hellbent
|
match: Hellbent
|
||||||
mode: pseudo
|
mode: pseudo
|
||||||
|
rules: Hellbent — [effect] if you have no cards in hand.
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Recover
|
keyword: Recover
|
||||||
match: Recover <atom-param>cost</atom-param>
|
match: Recover <atom-param>cost</atom-param>
|
||||||
@@ -1790,6 +1803,7 @@ keyword:
|
|||||||
keyword: Grandeur
|
keyword: Grandeur
|
||||||
match: Grandeur
|
match: Grandeur
|
||||||
mode: pseudo
|
mode: pseudo
|
||||||
|
rules: Grandeur — Discard another card named ~: [effect].
|
||||||
keyword:
|
keyword:
|
||||||
keyword: Deathtouch
|
keyword: Deathtouch
|
||||||
match: Deathtouch
|
match: Deathtouch
|
||||||
|
|||||||
@@ -70,17 +70,22 @@ init script:
|
|||||||
# replaces — correctly
|
# replaces — correctly
|
||||||
add := "" # default is nothing
|
add := "" # default is nothing
|
||||||
for_mana_costs := format_cost := {
|
for_mana_costs := format_cost := {
|
||||||
if input.separator_before == "—" then
|
if input.separator_before == "—" then (
|
||||||
"<param-cost>{input.param}</param-cost>"
|
if not contains(input.param, match:",") then
|
||||||
else
|
"<param-cost>{input.param}</param-cost>"
|
||||||
|
else
|
||||||
|
"{add}<param-cost>{input.param}</param-cost>"
|
||||||
|
) else
|
||||||
"{add}<param-mana>{input.param}</param-mana>"
|
"{add}<param-mana>{input.param}</param-mana>"
|
||||||
}
|
}
|
||||||
alternative_cost := replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
alternative_cost := replace_rule(match:"^[A-Z]", replace: { to_lower() })
|
||||||
|
combined_cost := replace_rule(match:", [A-Z]", replace: { to_lower() })+
|
||||||
|
replace_rule(match:",", replace:", and")
|
||||||
format_alt_cost := {
|
format_alt_cost := {
|
||||||
if input.separator_before == "—" then
|
if input.separator_before == "—" and not contains(input.param, match:",") then
|
||||||
alternative_cost(input.param)
|
alternative_cost(input.param)
|
||||||
else
|
else
|
||||||
input.param
|
combined_cost(input.param)
|
||||||
}
|
}
|
||||||
long_dash := replace_rule(match:"-", replace:"—")
|
long_dash := replace_rule(match:"-", replace:"—")
|
||||||
# Utilities for keywords
|
# Utilities for keywords
|
||||||
@@ -465,6 +470,8 @@ keyword parameter type:
|
|||||||
keyword parameter type:
|
keyword parameter type:
|
||||||
name: action
|
name: action
|
||||||
match: [^(\n]+
|
match: [^(\n]+
|
||||||
|
separator after is: [.]
|
||||||
|
reminder script: alternative_cost()
|
||||||
keyword parameter type:
|
keyword parameter type:
|
||||||
name: name
|
name: name
|
||||||
match: [^(.,\n—-]+
|
match: [^(.,\n—-]+
|
||||||
|
|||||||
Reference in New Issue
Block a user