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
Ai
ygopro-222DIY-cards
Commits
b5af840f
Commit
b5af840f
authored
Aug 13, 2023
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c101202041.lua
parent
fd0467be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
expansions/script/c101202041.lua
expansions/script/c101202041.lua
+12
-7
No files found.
expansions/script/c101202041.lua
View file @
b5af840f
--重铠装-暗黑骑士枪兵
--FA-ダーク・ナイト・ランサー
--Script by Dio0
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--xyz summon
--xyz summon
...
@@ -30,11 +31,11 @@ function s.initial_effect(c)
...
@@ -30,11 +31,11 @@ function s.initial_effect(c)
e3
:
SetCode
(
EVENT_EQUIP
)
e3
:
SetCode
(
EVENT_EQUIP
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
s
.
eqcon
)
e3
:
SetTarget
(
s
.
eqtg
)
e3
:
SetTarget
(
s
.
eqtg
)
e3
:
SetOperation
(
s
.
eqop
)
e3
:
SetOperation
(
s
.
eqop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
s
.
ovfilter
(
c
)
function
s
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsRank
(
5
)
or
c
:
IsRank
(
6
))
return
c
:
IsFaceup
()
and
(
c
:
IsRank
(
5
)
or
c
:
IsRank
(
6
))
end
end
...
@@ -42,11 +43,9 @@ function s.xyzop(e,tp,chk)
...
@@ -42,11 +43,9 @@ function s.xyzop(e,tp,chk)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
end
function
s
.
atkval
(
e
,
c
)
function
s
.
atkval
(
e
,
c
)
return
(
c
:
GetOverlayCount
()
+
c
:
GetEquipCount
())
*
300
return
(
c
:
GetOverlayCount
()
+
c
:
GetEquipCount
())
*
300
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x73
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x73
)
and
c
:
IsAbleToHand
()
end
end
...
@@ -63,6 +62,13 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,6 +62,13 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
end
end
function
s
.
eqcfilter
(
c
,
tp
)
local
tc
=
c
:
GetEquipTarget
()
return
tc
and
tc
:
IsControler
(
tp
)
end
function
s
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
eqcfilter
,
1
,
nil
,
tp
)
end
function
s
.
ovfilter2
(
c
)
function
s
.
ovfilter2
(
c
)
return
c
:
IsCanOverlay
()
return
c
:
IsCanOverlay
()
end
end
...
@@ -73,7 +79,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,7 +79,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
ovfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
ovfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
tg
)
Duel
.
HintSelection
(
tg
)
...
@@ -86,5 +92,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,5 +92,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Overlay
(
c
,
tg
)
Duel
.
Overlay
(
c
,
tg
)
end
end
end
end
end
end
\ No newline at end of file
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