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
a6663f50
Commit
a6663f50
authored
Sep 24, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
2c9a8e94
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
11 deletions
+16
-11
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12087055.lua
expansions/script/c12087055.lua
+3
-4
expansions/script/c12087060.lua
expansions/script/c12087060.lua
+1
-0
expansions/script/c85401420.lua
expansions/script/c85401420.lua
+1
-1
expansions/script/c85401460.lua
expansions/script/c85401460.lua
+1
-1
expansions/script/c85401630.lua
expansions/script/c85401630.lua
+2
-3
expansions/script/c85402020.lua
expansions/script/c85402020.lua
+8
-2
No files found.
expansions/222DIY.cdb
View file @
a6663f50
No preview for this file type
expansions/script/c12087055.lua
View file @
a6663f50
...
@@ -123,10 +123,9 @@ function cm.filter1(c,e,tp)
...
@@ -123,10 +123,9 @@ function cm.filter1(c,e,tp)
end
end
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
tc
then
if
#
g
>
0
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
end
function
cm
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c12087060.lua
View file @
a6663f50
...
@@ -76,6 +76,7 @@ function cm.wteffect(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -76,6 +76,7 @@ function cm.wteffect(e,tp,eg,ep,ev,re,r,rp,c)
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
target
then
target
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
target
then
target
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
not
g
then
return
end
local
tg
=
g
:
GetFirst
()
local
tg
=
g
:
GetFirst
()
while
tg
do
while
tg
do
tg
:
CreateEffectRelation
(
te
)
tg
:
CreateEffectRelation
(
te
)
...
...
expansions/script/c85401420.lua
View file @
a6663f50
...
@@ -4,7 +4,7 @@ c85401420.dfc_back_side=85401440
...
@@ -4,7 +4,7 @@ c85401420.dfc_back_side=85401440
---日月面变化公式
---日月面变化公式
function
c85401420
.
initial_effect
(
c
)
function
c85401420
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
CONTINUOUS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CANNOT_INACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CANNOT_INACTIVATE
)
e1
:
SetCondition
(
c85401420
.
con
)
e1
:
SetCondition
(
c85401420
.
con
)
...
...
expansions/script/c85401460.lua
View file @
a6663f50
...
@@ -4,7 +4,7 @@ c85401460.dfc_back_side=85401480
...
@@ -4,7 +4,7 @@ c85401460.dfc_back_side=85401480
---日月面变化公式
---日月面变化公式
function
c85401460
.
initial_effect
(
c
)
function
c85401460
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
CONTINUOUS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CANNOT_INACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CANNOT_INACTIVATE
)
e1
:
SetCondition
(
c85401460
.
con
)
e1
:
SetCondition
(
c85401460
.
con
)
...
...
expansions/script/c85401630.lua
View file @
a6663f50
...
@@ -24,7 +24,7 @@ function c85401630.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c85401630.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
------提升守备力
------提升守备力
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_
ATK
CHANGE
)
e4
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_
DEF
CHANGE
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
...
@@ -35,7 +35,7 @@ function c85401630.initial_effect(c)
...
@@ -35,7 +35,7 @@ function c85401630.initial_effect(c)
e4
:
SetTarget
(
c85401630
.
tg
)
e4
:
SetTarget
(
c85401630
.
tg
)
e4
:
SetOperation
(
c85401630
.
op
)
e4
:
SetOperation
(
c85401630
.
op
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
------降低
攻击
力,改变表示形式
------降低
守备
力,改变表示形式
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_EQUIP
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_EQUIP
)
e5
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e5
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
...
@@ -112,7 +112,6 @@ function c85401630.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -112,7 +112,6 @@ function c85401630.op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
end
end
end
end
function
c85401630
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c85401630
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetEquipTarget
()
local
tc
=
c
:
GetEquipTarget
()
...
...
expansions/script/c85402020.lua
View file @
a6663f50
...
@@ -39,6 +39,7 @@ function c85402020.initial_effect(c)
...
@@ -39,6 +39,7 @@ function c85402020.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
------占卜找装备
------占卜找装备
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetCategory
(
HINTMSG_SPSUMMON
)
e6
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e6
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e6
:
SetCode
(
EVENT_FREE_CHAIN
)
e6
:
SetCode
(
EVENT_FREE_CHAIN
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
@@ -48,6 +49,7 @@ function c85402020.initial_effect(c)
...
@@ -48,6 +49,7 @@ function c85402020.initial_effect(c)
e6
:
SetTarget
(
c85402020
.
cktg
)
e6
:
SetTarget
(
c85402020
.
cktg
)
e6
:
SetOperation
(
c85402020
.
ckop
)
e6
:
SetOperation
(
c85402020
.
ckop
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
------丢手特招
end
end
function
c85402020
.
fl
(
e
,
c
)
function
c85402020
.
fl
(
e
,
c
)
return
c
:
IsCode
(
85402000
)
return
c
:
IsCode
(
85402000
)
...
@@ -113,6 +115,10 @@ function c85402020.ckop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -113,6 +115,10 @@ function c85402020.ckop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
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