Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
83780a64
Commit
83780a64
authored
Aug 05, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1+1=3
parent
02558b1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
expansions/script/c81009072.lua
expansions/script/c81009072.lua
+14
-13
No files found.
expansions/script/c81009072.lua
View file @
83780a64
...
@@ -5,7 +5,7 @@ Duel.LoadScript("c81000000.lua")
...
@@ -5,7 +5,7 @@ Duel.LoadScript("c81000000.lua")
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_
DESTROY
)
e1
:
SetCategory
(
CATEGORY_
REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
0x11e0
)
e1
:
SetHintTiming
(
0
,
0x11e0
)
...
@@ -51,25 +51,26 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,25 +51,26 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return
ct
>
1
return
ct
>
1
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
t
=
e
:
GetLabel
()
local
g
t
=
e
:
GetLabel
()
if
chk
==
0
then
return
ct
>
1
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
if
chk
==
0
then
return
(
gt
>
1
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
)
or
ct
>
2
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
end
or
(
gt
>
2
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
)
end
local
r
c
t
=
0
local
r
g
t
=
0
local
loc
=
0
local
loc
=
0
if
c
t
>
1
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
then
if
g
t
>
1
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
then
r
ct
=
rc
t
+
1
r
gt
=
rg
t
+
1
loc
=
loc
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
loc
=
loc
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
end
end
if
c
t
>
2
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
then
if
g
t
>
2
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
then
r
ct
=
rc
t
+
1
r
gt
=
rg
t
+
1
loc
=
loc
+
LOCATION_HAND
loc
=
loc
+
LOCATION_HAND
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
r
c
t
,
0
,
loc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
r
g
t
,
0
,
loc
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
cm
.
get_count
(
g
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
gt
=
cm
.
get_count
(
g
)
local
rflag
=
false
local
rflag
=
false
if
c
t
>
1
then
if
g
t
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
@@ -78,7 +79,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,7 +79,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
rflag
=
true
rflag
=
true
end
end
end
end
if
c
t
>
2
then
if
g
t
>
2
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
if
rflag
then
Duel
.
BreakEffect
()
end
if
rflag
then
Duel
.
BreakEffect
()
end
...
...
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