Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
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
MyCard
ygopro-rush-duel
Commits
f789318d
Commit
f789318d
authored
May 16, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/5/16 调整魔人扫描器为可以取消
parent
d9920d2f
Pipeline
#27161
passed with stages
in 7 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
24 deletions
+47
-24
script/RDFunction.lua
script/RDFunction.lua
+38
-16
script/c120257057.lua
script/c120257057.lua
+9
-8
No files found.
script/RDFunction.lua
View file @
f789318d
...
@@ -134,26 +134,48 @@ end
...
@@ -134,26 +134,48 @@ end
-- 让玩家选择卡片组的 min ~ max 张卡,可以取消
-- 让玩家选择卡片组的 min ~ max 张卡,可以取消
function
RushDuel
.
SelectGroup
(
player
,
group
,
min
,
max
)
function
RushDuel
.
SelectGroup
(
player
,
group
,
min
,
max
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
local
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
)
local
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
)
while
#
sg
<
max
do
while
#
sg
<
max
do
local
cg
=
group
:
Clone
()
local
cg
=
group
:
Clone
()
cg
:
Sub
(
sg
)
cg
:
Sub
(
sg
)
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
)
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
)
if
#
cg
==
0
then
break
end
if
#
cg
==
0
then
local
cancel
=
not
finish
break
local
tc
=
cg
:
SelectUnselect
(
sg
,
player
,
finish
,
cancel
,
min
,
max
)
end
if
not
tc
then
break
end
local
cancel
=
not
finish
local
tc
=
cg
:
SelectUnselect
(
sg
,
player
,
finish
,
cancel
,
min
,
max
)
if
not
tc
then
break
end
if
not
sg
:
IsContains
(
tc
)
then
if
not
sg
:
IsContains
(
tc
)
then
sg
:
AddCard
(
tc
)
sg
:
AddCard
(
tc
)
if
#
sg
==
max
then
finish
=
true
end
if
#
sg
==
max
then
finish
=
true
end
else
else
sg
:
RemoveCard
(
tc
)
sg
:
RemoveCard
(
tc
)
end
end
end
end
if
finish
then
if
finish
then
return
sg
return
sg
else
else
return
nil
return
nil
end
end
end
-- 让玩家可以选择卡片组的 min ~ max 张卡
function
RushDuel
.
CanSelectGroup
(
player
,
desc
,
hint
,
group
,
min
,
max
)
::
cancel
::
if
Duel
.
SelectYesNo
(
player
,
desc
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
player
,
hint
)
local
sg
=
RushDuel
.
SelectGroup
(
player
,
group
,
min
,
max
)
if
sg
==
nil
then
goto
cancel
else
return
sg
end
else
return
nil
end
end
end
script/c120257057.lua
View file @
f789318d
...
@@ -33,14 +33,15 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,14 +33,15 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmDecktop
(
1
-
tp
,
4
)
Duel
.
ConfirmDecktop
(
1
-
tp
,
4
)
local
mg
=
g3
:
Filter
(
cm
.
filter
,
nil
)
local
mg
=
g3
:
Filter
(
cm
.
filter
,
nil
)
local
draw
=
false
local
draw
=
false
if
mg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
if
mg
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
RD
.
CanSelectGroup
(
tp
,
aux
.
Stringid
(
m
,
1
),
HINTMSG_TOGRAVE
,
mg
,
1
,
2
)
local
sg
=
mg
:
Select
(
tp
,
1
,
2
,
nil
)
if
sg
then
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
if
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
~=
0
then
if
RD
.
IsOperatedGroupExists
(
cm
.
exfilter
,
1
,
nil
)
then
draw
=
true
end
draw
=
RD
.
IsOperatedGroupExists
(
cm
.
exfilter
,
1
,
nil
)
g1
:
Sub
(
sg
)
g1
:
Sub
(
sg
)
g2
:
Sub
(
sg
)
g2
:
Sub
(
sg
)
end
end
end
end
end
Duel
.
SortDecktop
(
tp
,
tp
,
g1
:
GetCount
())
Duel
.
SortDecktop
(
tp
,
tp
,
g1
:
GetCount
())
...
...
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