Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
c7c8335e
Commit
c7c8335e
authored
Jan 19, 2008
by
pichoro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better Sorting for Yu-Gi-Oh.
parent
d8920361
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
data/yugioh.mse-game/game
data/yugioh.mse-game/game
+20
-2
No files found.
data/yugioh.mse-game/game
View file @
c7c8335e
...
@@ -3,7 +3,7 @@ short name: Yu-Gi-Oh!
...
@@ -3,7 +3,7 @@ short name: Yu-Gi-Oh!
icon: card-back.png
icon: card-back.png
position hint: 4
position hint: 4
version: 2008-01-1
8
version: 2008-01-1
9
############################################################## Functions & filters
############################################################## Functions & filters
## Copied and Pasted from vs.mse-game, with a few modifications
## Copied and Pasted from vs.mse-game, with a few modifications
...
@@ -139,12 +139,29 @@ init script:
...
@@ -139,12 +139,29 @@ init script:
card.level == "Trap"
card.level == "Trap"
}
}
############### Determine Card Position
############### 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 := {
pos_of_card := {
position(
position(
of: card
of: card
in: set
in: set
order_by: {
order_by: {
card.card_type
+ card.attribute + card.monster_type + card.name
type_sort()
+ card.attribute + card.monster_type + card.name
}) + 1
}) + 1
}
}
...
@@ -309,6 +326,7 @@ card field:
...
@@ -309,6 +326,7 @@ card field:
card list width: 55
card list width: 55
card list name: #
card list name: #
editable: false
editable: false
save value: false
show statistics: false
show statistics: false
card field:
card field:
type: text
type: text
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment