From 1637fb034fcde54e5ebb776cd0755f4963ea863b Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 10 Jul 2007 20:26:14 +0000 Subject: [PATCH] Fixed some bugs in the sort_index function git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@549 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic.mse-game/game | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/data/magic.mse-game/game b/data/magic.mse-game/game index be0b6ddf..c0651cf8 100644 --- a/data/magic.mse-game/game +++ b/data/magic.mse-game/game @@ -184,18 +184,18 @@ init script: else if chosen(choice:"blue", card_color) then "B" # Blue else if chosen(choice:"black", card_color) then "C" # Black else if chosen(choice:"red", card_color) then "D" # Red - else if chosen(choice:"white", card_color) then "E" # Green + else if chosen(choice:"green", card_color) then "E" # Green else "I" # Non of the above = Colorless/artifact ) else ( # use the casting cost - colors := sort_rule(casting_cost, order: "") + colors := sort(casting_cost, order: "") if colors == "" then "I" # Colorless else if contains(casting_cost, match:"/") then "G" # Hybrid cost - else if casting_cost == "W" then "A" # White - else if casting_cost == "U" then "B" # Blue - else if casting_cost == "B" then "C" # Black - else if casting_cost == "R" then "D" # Red - else if casting_cost == "G" then "E" # Green + else if colors == "W" then "A" # White + else if colors == "U" then "B" # Blue + else if colors == "B" then "C" # Black + else if colors == "R" then "D" # Red + else if colors == "G" then "E" # Green else "F" # non of the above = multicolor ) } @@ -1400,6 +1400,10 @@ keyword parameter type: name: as words, use "" for 1 description: (, two, three) script: \{english_number_multiple({input})\} + refer script: + name: as ordinal words + description: (first, second, third) + script: \{english_number_ordinal({input})\} keyword parameter type: name: action match: [^(,\n]+