From fdd2c3700199ad2086d260cd933037d0dc0650c0 Mon Sep 17 00:00:00 2001 From: pichoro Date: Sat, 19 Jan 2008 05:30:29 +0000 Subject: [PATCH] Better Sorting for Yu-Gi-Oh. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@824 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/yugioh.mse-game/game | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/data/yugioh.mse-game/game b/data/yugioh.mse-game/game index 37af9267..280e1dd2 100644 --- a/data/yugioh.mse-game/game +++ b/data/yugioh.mse-game/game @@ -3,7 +3,7 @@ short name: Yu-Gi-Oh! icon: card-back.png position hint: 4 -version: 2008-01-18 +version: 2008-01-19 ############################################################## Functions & filters ## Copied and Pasted from vs.mse-game, with a few modifications @@ -139,12 +139,29 @@ init script: card.level == "Trap" } ############### Determine Card Position + + type_sort := { + type := card.card_type + if chosen(choice:"normal monster", type) then "A" + else if chosen(choice:"ra", type) then "B" + else if chosen(choice:"effect monster", type) then "C" + else if chosen(choice:"slifer", type) then "D" + else if chosen(choice:"ritual monster", type) then "E" + else if chosen(choice:"obelisk", type) then "F" + else if chosen(choice:"fusion monster", type) then "G" + else if chosen(choice:"token monster", type) then "H" + else if chosen(choice:"legendary dragons", type) then "I" + else if chosen(choice:"spell card", type) then "J" + else if chosen(choice:"trap card", type) then "K" + else "L" + } + pos_of_card := { position( of: card in: set order_by: { - card.card_type + card.attribute + card.monster_type + card.name + type_sort() + card.attribute + card.monster_type + card.name }) + 1 } @@ -309,6 +326,7 @@ card field: card list width: 55 card list name: # editable: false + save value: false show statistics: false card field: type: text