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
b6d1ca2c
Commit
b6d1ca2c
authored
Oct 04, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
149cb0e9
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
127 additions
and
8 deletions
+127
-8
expansions/script/c33338101.lua
expansions/script/c33338101.lua
+1
-2
expansions/script/c33701377.lua
expansions/script/c33701377.lua
+1
-1
expansions/script/c37902002.lua
expansions/script/c37902002.lua
+8
-0
expansions/script/c37902003.lua
expansions/script/c37902003.lua
+8
-0
expansions/script/c71402000.lua
expansions/script/c71402000.lua
+1
-1
expansions/script/c75646451.lua
expansions/script/c75646451.lua
+1
-1
expansions/script/c75646600.lua
expansions/script/c75646600.lua
+1
-1
expansions/script/c75646629.lua
expansions/script/c75646629.lua
+1
-1
expansions/script/c81047008.lua
expansions/script/c81047008.lua
+1
-1
expansions/script/c9330020.lua
expansions/script/c9330020.lua
+104
-0
No files found.
expansions/script/c33338101.lua
View file @
b6d1ca2c
...
@@ -80,8 +80,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,8 +80,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c33701377.lua
View file @
b6d1ca2c
...
@@ -31,7 +31,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
cm
.
damval
)
e1
:
SetValue
(
cm
.
damval
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
else
op
==
2
then
else
if
op
==
2
then
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
end
end
end
end
...
...
expansions/script/c37902002.lua
0 → 100644
View file @
b6d1ca2c
--迹王·卢修曼
local
m
=
37902002
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
end
expansions/script/c37902003.lua
0 → 100644
View file @
b6d1ca2c
--神王·奥斯·托拜厄
local
m
=
37902003
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
end
expansions/script/c71402000.lua
View file @
b6d1ca2c
...
@@ -125,7 +125,7 @@ function c71402000.efop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -125,7 +125,7 @@ function c71402000.efop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
elseif
dc
==
4
then
elseif
dc
==
4
then
local
thg
=
Duel
.
GetMatchingGroup
(
c71402000
.
filter3
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
thg
=
Duel
.
GetMatchingGroup
(
c71402000
.
filter3
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
thg
:
GetCount
()
>
0
if
thg
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sc
=
thg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
sc
=
thg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
SendtoHand
(
sc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
sc
,
nil
,
REASON_EFFECT
)
...
...
expansions/script/c75646451.lua
View file @
b6d1ca2c
...
@@ -67,7 +67,7 @@ function cm.spfilter(c,e,tp)
...
@@ -67,7 +67,7 @@ function cm.spfilter(c,e,tp)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
)
end
end
...
...
expansions/script/c75646600.lua
View file @
b6d1ca2c
...
@@ -23,7 +23,7 @@ function c75646600.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -23,7 +23,7 @@ function c75646600.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c75646600
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75646600
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFlagEffect
(
tp
,
75646629
)
~=
0
and
Duel
.
GetLP
(
tp
)
>
4000
then
return
end
if
Duel
.
GetFlagEffect
(
tp
,
75646629
)
~=
0
and
Duel
.
GetLP
(
tp
)
>
4000
then
return
end
if
Duel
.
GetFlagEffect
(
tp
,
75646629
)
==
0
Duel
.
GetLP
(
tp
)
>
500
then
return
end
if
Duel
.
GetFlagEffect
(
tp
,
75646629
)
==
0
and
Duel
.
GetLP
(
tp
)
>
500
then
return
end
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
75646600
,
0
))
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
75646600
,
0
))
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
expansions/script/c75646629.lua
View file @
b6d1ca2c
...
@@ -27,7 +27,7 @@ function cm.initial_effect(c)
...
@@ -27,7 +27,7 @@ function cm.initial_effect(c)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
x
m
.
atkval
)
e3
:
SetValue
(
c
m
.
atkval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--spsummon
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c81047008.lua
View file @
b6d1ca2c
...
@@ -64,7 +64,7 @@ function cm.initial_effect(c)
...
@@ -64,7 +64,7 @@ function cm.initial_effect(c)
local
e8
=
e7
:
Clone
()
local
e8
=
e7
:
Clone
()
e8
:
SetCode
(
EFFECT_CANNOT_SSET
)
e8
:
SetCode
(
EFFECT_CANNOT_SSET
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
local
e
8
=
e7
:
Clone
()
local
e
9
=
e7
:
Clone
()
e9
:
SetCode
(
EFFECT_CANNOT_TURN_SET
)
e9
:
SetCode
(
EFFECT_CANNOT_TURN_SET
)
c
:
RegisterEffect
(
e9
)
c
:
RegisterEffect
(
e9
)
local
ea
=
e7
:
Clone
()
local
ea
=
e7
:
Clone
()
...
...
expansions/script/c9330020.lua
0 → 100644
View file @
b6d1ca2c
--机略纵横 陈公台
local
m
=
9330020
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
m
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_STANDBY_PHASE
)
e1
:
SetCountLimit
(
3
,
33200250
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetTarget
(
cm
.
smtg
)
e1
:
SetOperation
(
cm
.
smop
)
c
:
RegisterEffect
(
e1
)
--cannot be target
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetRange
(
LOCATION_ONFIELD
)
e2
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e2
:
SetTarget
(
cm
.
tgtg
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
--Draw
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetCategory
(
CATEGORY_DRAW
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
cm
.
atkcon
)
e3
:
SetTarget
(
cm
.
atktg
)
e3
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e3
)
--atk up1
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsCode
,
33200250
))
e4
:
SetValue
(
500
)
c
:
RegisterEffect
(
e4
)
end
--e1
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
Duel
.
GetTurnPlayer
()
~=
tp
end
function
cm
.
smtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33200250
,
0
,
0x4011
,
1000
,
1000
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_EARTH
,
POS_FACEUP_ATTACK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
cm
.
smop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e0
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_PHASE_START
+
PHASE_MAIN1
)
e0
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e0
:
SetCountLimit
(
1
)
e0
:
SetOperation
(
cm
.
smact
)
e0
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e0
,
tp
)
end
function
cm
.
smact
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33200250
,
0
,
0x4011
,
1000
,
1000
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_EARTH
,
POS_FACEUP_ATTACK
)
then
return
end
Duel
.
Hint
(
HINT_CARD
,
tp
,
m
)
local
token
=
Duel
.
CreateToken
(
tp
,
33200249
)
if
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetValue
(
6
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
token
:
RegisterEffect
(
e1
)
end
Duel
.
SpecialSummonComplete
()
end
--e2 e3
function
cm
.
tgtg
(
e
,
c
)
return
c
:
GetSequence
()
<
5
end
function
cm
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
cm
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
cm
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateAttack
()
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
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