Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
96e6b30a
Commit
96e6b30a
authored
Mar 11, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update scripts
parent
d1ad1373
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
16 deletions
+33
-16
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100241005.lua
script/c100241005.lua
+3
-3
script/c100306003.lua
script/c100306003.lua
+13
-2
script/c100306022.lua
script/c100306022.lua
+16
-3
script/c100408034.lua
script/c100408034.lua
+1
-8
No files found.
expansions/pre-release.cdb
View file @
96e6b30a
No preview for this file type
script/c100241005.lua
View file @
96e6b30a
...
@@ -34,10 +34,10 @@ function c100241005.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,10 +34,10 @@ function c100241005.descon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c100241005
.
cfilter
,
1
,
nil
)
return
eg
:
IsExists
(
c100241005
.
cfilter
,
1
,
nil
)
end
end
function
c100241005
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c100241005
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
PLAYER_ALL
,
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
PLAYER_ALL
,
500
)
end
end
...
...
script/c100306003.lua
View file @
96e6b30a
...
@@ -33,14 +33,21 @@ end
...
@@ -33,14 +33,21 @@ end
function
c100306003
.
counterfilter
(
c
)
function
c100306003
.
counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
end
function
c100306003
.
exfilter
(
c
,
p
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsFaceup
()
and
c
:
IsControler
(
p
)
and
c
:
IsHasEffect
(
EFFECT_EXTRA_RELEASE_NONSUM
)
end
function
c100306003
.
fselect
(
c
,
tp
,
rg
,
sg
)
function
c100306003
.
fselect
(
c
,
tp
,
rg
,
sg
)
sg
:
AddCard
(
c
)
sg
:
AddCard
(
c
)
local
res
=
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
or
rg
:
IsExists
(
c100306003
.
fselect
,
1
,
sg
,
tp
,
rg
,
sg
)
local
res
=
sg
:
FilterCount
(
c100306003
.
exfilter
,
nil
,
1
-
tp
)
<=
1
and
(
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
or
rg
:
IsExists
(
c100306003
.
fselect
,
1
,
sg
,
tp
,
rg
,
sg
))
sg
:
RemoveCard
(
c
)
sg
:
RemoveCard
(
c
)
return
res
return
res
end
end
function
c100306003
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100306003
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsAttribute
,
nil
,
ATTRIBUTE_DARK
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsAttribute
,
nil
,
ATTRIBUTE_DARK
)
local
exg
=
Duel
.
GetMatchingGroup
(
c100306003
.
exfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
1
-
tp
)
rg
:
Merge
(
exg
)
local
g
=
Group
.
CreateGroup
()
local
g
=
Group
.
CreateGroup
()
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
100306003
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
100306003
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
rg
:
IsExists
(
c100306003
.
fselect
,
1
,
nil
,
tp
,
rg
,
g
)
end
and
rg
:
IsExists
(
c100306003
.
fselect
,
1
,
nil
,
tp
,
rg
,
g
)
end
...
@@ -54,12 +61,16 @@ function c100306003.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,12 +61,16 @@ function c100306003.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
while
true
do
while
true
do
local
mg
=
rg
:
Filter
(
c100306003
.
fselect
,
g
,
tp
,
rg
,
g
)
local
mg
=
rg
:
Filter
(
c100306003
.
fselect
,
g
,
tp
,
rg
,
g
)
if
mg
:
GetCount
()
==
0
or
(
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
not
Duel
.
SelectYesNo
(
tp
,
210
))
then
break
end
if
mg
:
GetCount
()
==
0
or
(
g
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
not
Duel
.
SelectYesNo
(
tp
,
210
))
then
break
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
g
:
Merge
(
sg
)
g
:
Merge
(
sg
)
end
end
e
:
SetLabel
(
g
:
GetCount
())
e
:
SetLabel
(
g
:
GetCount
())
if
g
:
FilterCount
(
c100306003
.
exfilter
,
nil
,
1
-
tp
)
>=
1
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
fc
:
RegisterFlagEffect
(
100306122
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c100306003
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c100306003
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
...
...
script/c100306022.lua
View file @
96e6b30a
--闇黒世界-シャドウ・ディストピア-
--闇黒世界-シャドウ・ディストピア-
--Lair of Darkness
--Lair of Darkness
--Script by mercury233
--Script by mercury233
--not fully implemented
function
c100306022
.
initial_effect
(
c
)
function
c100306022
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -18,8 +17,16 @@ function c100306022.initial_effect(c)
...
@@ -18,8 +17,16 @@ function c100306022.initial_effect(c)
e2
:
SetValue
(
ATTRIBUTE_DARK
)
e2
:
SetValue
(
ATTRIBUTE_DARK
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--release replace
--release replace
--local e3=Effect.CreateEffect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
--c:RegisterEffect(e3)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_EXTRA_RELEASE_NONSUM
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
))
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c100306022
.
relcon
)
e3
:
SetValue
(
c100306022
.
relval
)
c
:
RegisterEffect
(
e3
)
--token
--token
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -37,6 +44,12 @@ function c100306022.initial_effect(c)
...
@@ -37,6 +44,12 @@ function c100306022.initial_effect(c)
e5
:
SetOperation
(
c100306022
.
spop
)
e5
:
SetOperation
(
c100306022
.
spop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c100306022
.
relcon
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
100306122
)
==
0
end
function
c100306022
.
relval
(
e
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_COST
)
~=
0
end
function
c100306022
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100306022
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetFlagEffectLabel
(
100306022
)
local
ct
=
c
:
GetFlagEffectLabel
(
100306022
)
...
...
script/c100408034.lua
View file @
96e6b30a
...
@@ -34,7 +34,7 @@ end
...
@@ -34,7 +34,7 @@ end
function
c100408034
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100408034
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
not
tc
:
IsDisabled
()
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -47,13 +47,6 @@ function c100408034.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,13 +47,6 @@ function c100408034.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
end
if
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
)
>=
3
and
tc
:
IsControlerCanBeChanged
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100408034
,
0
))
then
if
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
)
>=
3
and
tc
:
IsControlerCanBeChanged
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100408034
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
,
1
)
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
,
1
)
...
...
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