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
8a70d569
Commit
8a70d569
authored
Jul 31, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
93c37f30
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
27 deletions
+26
-27
expansions/script/c33703012.lua
expansions/script/c33703012.lua
+1
-1
expansions/script/c33703023.lua
expansions/script/c33703023.lua
+1
-2
expansions/script/c47380005.lua
expansions/script/c47380005.lua
+24
-24
No files found.
expansions/script/c33703012.lua
View file @
8a70d569
...
@@ -112,7 +112,7 @@ function cm.lpop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -112,7 +112,7 @@ function cm.lpop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetValue
(
cm
.
aclimit
)
e1
:
SetValue
(
cm
.
aclimit
)
e1
:
SetLabel
(
rc
:
GetCode
())
e1
:
SetLabel
(
rc
:
GetCode
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
...
...
expansions/script/c33703023.lua
View file @
8a70d569
...
@@ -30,8 +30,7 @@ function c33703023.checkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,8 +30,7 @@ function c33703023.checkop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c33703023
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33703023
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
0
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
end
end
function
c33703023
.
filter
(
c
,
num
)
function
c33703023
.
filter
(
c
,
num
)
local
num
=
Duel
.
GetFlagEffect
(
c
,
id
+
o
)
local
num
=
Duel
.
GetFlagEffect
(
c
,
id
+
o
)
...
...
expansions/script/c47380005.lua
View file @
8a70d569
--黄金螺旋-对补“5”
--黄金螺旋-对补“5”
local
s
,
id
=
GetID
()
local
s
,
id
=
GetID
()
function
s
.
sprule
(
c
)
function
s
.
sprule
(
c
)
aux
.
AddLinkProcedure
(
c
,
s
.
mfilter
,
2
,
2
,
s
.
lcheck
)
aux
.
AddLinkProcedure
(
c
,
s
.
mfilter
,
2
,
2
,
s
.
lcheck
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_MUST_USE_MZONE
)
e1
:
SetCode
(
EFFECT_MUST_USE_MZONE
)
...
@@ -14,7 +14,7 @@ function s.sprule(c)
...
@@ -14,7 +14,7 @@ function s.sprule(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
s
.
mfilter
(
c
)
function
s
.
mfilter
(
c
)
return
c
:
IsLinkType
(
TYPE_LINK
)
return
c
:
IsLinkType
(
TYPE_LINK
)
end
end
function
s
.
lcheck
(
g
)
function
s
.
lcheck
(
g
)
return
g
:
IsExists
(
Card
.
IsRace
,
1
,
nil
,
RACE_PSYCHO
)
return
g
:
IsExists
(
Card
.
IsRace
,
1
,
nil
,
RACE_PSYCHO
)
...
@@ -23,12 +23,12 @@ function s.zonelimit(e)
...
@@ -23,12 +23,12 @@ function s.zonelimit(e)
return
0x1f001f
|
(
0x600060
&
~
e
:
GetHandler
():
GetLinkedZone
())
return
0x1f001f
|
(
0x600060
&
~
e
:
GetHandler
():
GetLinkedZone
())
end
end
function
s
.
linksummon
(
c
)
function
s
.
linksummon
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOGRAVE
+
CATEGORY_TOEXTRA
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOGRAVE
+
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
operation
)
e1
:
SetOperation
(
s
.
operation
)
...
@@ -39,10 +39,10 @@ function s.mgfilter(c,e)
...
@@ -39,10 +39,10 @@ function s.mgfilter(c,e)
and
((
c
:
IsAbleToGrave
()
and
c
:
IsLocation
(
LOCATION_MZONE
))
or
(
c
:
IsLocation
(
LOCATION_REMOVED
)
and
c
:
IsAbleToExtra
()))
and
((
c
:
IsAbleToGrave
()
and
c
:
IsLocation
(
LOCATION_MZONE
))
or
(
c
:
IsLocation
(
LOCATION_REMOVED
)
and
c
:
IsAbleToExtra
()))
end
end
function
s
.
lfilter
(
c
,
e
,
tp
)
function
s
.
lfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
47380008
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_LINK
,
tp
,
false
,
false
)
return
c
:
IsCode
(
47380008
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_LINK
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
s
.
fselect
(
g
,
tp
)
function
s
.
fselect
(
g
,
tp
)
return
g
:
CheckWithSumEqual
(
Card
.
GetLinkMarker
,
0x1ef
,
2
,
2
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
)
return
g
:
CheckWithSumEqual
(
Card
.
GetLinkMarker
,
0x1ef
,
2
,
2
)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
mgfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_REMOVED
,
0
,
nil
,
e
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
mgfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_REMOVED
,
0
,
nil
,
e
)
...
@@ -73,14 +73,14 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,14 +73,14 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
immune
(
c
)
function
s
.
immune
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
id
-
1000
)
e1
:
SetCountLimit
(
1
,
id
-
1000
)
e1
:
SetCondition
(
s
.
imcon
)
e1
:
SetCondition
(
s
.
imcon
)
e1
:
SetCost
(
aux
.
bfgcost
)
e1
:
SetCost
(
aux
.
bfgcost
)
e1
:
SetTarget
(
s
.
imtg
)
e1
:
SetTarget
(
s
.
imtg
)
e1
:
SetOperation
(
s
.
imop
)
e1
:
SetOperation
(
s
.
imop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -93,28 +93,28 @@ function s.imtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -93,28 +93,28 @@ function s.imtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_LINK
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_LINK
)
end
end
end
function
s
.
imop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
imop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
TYPE_LINK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
TYPE_LINK
)
if
#
g
>
0
then
if
#
g
>
0
then
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetValue
(
s
.
efilter
)
e1
:
SetValue
(
s
.
efilter
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
e1
:
SetOwnerPlayer
(
tp
)
e1
:
SetOwnerPlayer
(
tp
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
end
end
function
s
.
efilter
(
e
,
re
)
function
s
.
efilter
(
e
,
re
)
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
end
end
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
s
.
sprule
(
c
)
s
.
sprule
(
c
)
s
.
linksummon
(
c
)
s
.
linksummon
(
c
)
s
.
immune
(
c
)
s
.
immune
(
c
)
end
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