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
Soulgamer
ygopro-222DIY-cards
Commits
63e3db29
Commit
63e3db29
authored
Feb 07, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
1da28b0f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
25 deletions
+26
-25
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c64831503.lua
expansions/script/c64831503.lua
+25
-24
expansions/script/c81048004.lua
expansions/script/c81048004.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
63e3db29
No preview for this file type
expansions/script/c64831503.lua
View file @
63e3db29
...
...
@@ -21,14 +21,15 @@ function cm.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_MAIN_END
+
TIMINGS_CHECK_MONSTER
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
m
+
10000
)
e3
:
SetCost
(
cm
.
cost
)
e3
:
SetTarget
(
cm
.
tg
)
e3
:
SetTarget
(
cm
.
sm
tg
)
e3
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e3
)
end
--e1e2
function
cm
.
thfilter
(
c
)
return
c
:
IsAbleToHand
()
and
((
rsva
.
IsSetST
(
c
)
and
not
c
:
IsType
(
TYPE_MONSTER
))
or
(
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsLevel
(
10
)))
end
...
...
@@ -44,31 +45,31 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
--e3
function
cm
.
smtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
tp
,
0
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHandAsCost
()
end
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_COST
)
end
function
cm
.
sumfilter
(
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsSummonable
(
true
,
nil
)
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
,
e
:
GetHandler
())
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
cm
.
op
(
e
,
tp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetTarget
(
cm
.
descon
)
e1
:
SetOperation
(
cm
.
desop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
then
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetTarget
(
cm
.
descon
)
e1
:
SetOperation
(
cm
.
desop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
sg
:
GetCount
()
>
0
then
Duel
.
Summon
(
tp
,
sg
:
GetFirst
(),
true
,
nil
)
end
end
end
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -76,7 +77,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return
rscon
.
excard2
(
rsva
.
filter_l
,
LOCATION_MZONE
)(
e
,
tp
)
and
loc
&
LOCATION_MZONE
~=
0
end
function
cm
.
desop
(
e
,
tp
)
if
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
if
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33200119
,
0
))
then
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
...
...
@@ -85,4 +86,4 @@ function cm.desop(e,tp)
end
function
cm
.
sumfilter
(
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsSummonable
(
true
,
nil
)
end
end
\ No newline at end of file
expansions/script/c81048004.lua
View file @
63e3db29
...
...
@@ -82,7 +82,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
fid
=
c
:
GetFieldID
()
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
fid
)
tc
:
CompleteProcedure
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_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