Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
List
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
Crescent/毛虫
pre-release-database-cdb
Commits
5ab1f01b
Commit
5ab1f01b
authored
Oct 17, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SelectFromOptions
parent
334cd55c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
11 deletions
+55
-11
script/c100225001.lua
script/c100225001.lua
+3
-3
script/c100227004.lua
script/c100227004.lua
+12
-1
script/c100227045.lua
script/c100227045.lua
+12
-1
script/c101207051.lua
script/c101207051.lua
+14
-3
script/c101207055.lua
script/c101207055.lua
+14
-3
No files found.
script/c100225001.lua
View file @
5ab1f01b
...
...
@@ -78,7 +78,7 @@ end
function
s
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
aux
.
NecroValleyFilter
()(
c
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
script/c100227004.lua
View file @
5ab1f01b
...
...
@@ -94,9 +94,20 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
b1
=
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
local
op
=
0
if
b1
and
not
b2
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
3
))
op
=
1
end
if
b2
and
not
b1
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
4
))
op
=
2
end
if
b1
and
b2
then
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
id
,
3
)},
{
b2
,
aux
.
Stringid
(
id
,
4
)})
end
e
:
SetLabel
(
op
)
if
op
==
1
then
e
:
SetCategory
(
CATEGORY_DRAW
)
...
...
script/c100227045.lua
View file @
5ab1f01b
...
...
@@ -57,9 +57,20 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
b1
=
res
and
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
id
+
o
)
==
0
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
local
op
=
0
if
b1
and
not
b2
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
1
))
op
=
1
end
if
b2
and
not
b1
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
2
))
op
=
2
end
if
b1
and
b2
then
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
id
,
1
)},
{
b2
,
aux
.
Stringid
(
id
,
2
)})
end
e
:
SetLabel
(
op
)
if
op
==
1
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
+
CATEGORY_DECKDES
)
...
...
script/c101207051.lua
View file @
5ab1f01b
...
...
@@ -34,9 +34,20 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
local
b2
=
Duel
.
GetFlagEffect
(
tp
,
id
+
o
)
==
0
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
local
op
=
0
if
b1
and
not
b2
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
1
))
op
=
1
end
if
b2
and
not
b1
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
2
))
op
=
2
end
if
b1
and
b2
then
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
id
,
1
)},
{
b2
,
aux
.
Stringid
(
id
,
2
)})
end
Duel
.
RegisterFlagEffect
(
tp
,
id
+
(
op
-
1
)
*
o
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
if
op
==
1
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
script/c101207055.lua
View file @
5ab1f01b
...
...
@@ -51,9 +51,20 @@ function s.fstg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
if
chk
==
0
then
return
res1
or
res2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
local
op
=
0
if
res1
and
not
res2
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
2
))
op
=
1
end
if
res2
and
not
res1
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
3
))
op
=
2
end
if
res1
and
res2
then
op
=
aux
.
SelectFromOptions
(
tp
,
{
res1
,
aux
.
Stringid
(
id
,
2
),
1
},
{
res2
,
aux
.
Stringid
(
id
,
3
),
2
})
end
e
:
SetLabel
(
op
)
if
op
==
1
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
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