Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
cd1633e4
Commit
cd1633e4
authored
Jul 02, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 魅惑の女王 LV5, 魅惑の女王 LV7
parent
ba6eff23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
56 deletions
+73
-56
c23756165.lua
c23756165.lua
+42
-35
c50140163.lua
c50140163.lua
+31
-21
No files found.
c23756165.lua
View file @
cd1633e4
--魅惑の女王 LV5
--魅惑の女王 LV5
local
s
,
id
,
o
=
GetID
()
function
c23756165
.
initial_effect
(
c
)
function
c23756165
.
initial_effect
(
c
)
--equip
aux
.
AddCodeList
(
c
,
87257460
,
50140163
)
--flag effect id+1
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetOperation
(
c23756165
.
regop
)
e1
:
SetOperation
(
c23756165
.
regop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
special summon
--
equip
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
23756165
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
23756165
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e2
:
SetCondition
(
c23756165
.
spcon
)
e2
:
SetCondition
(
c23756165
.
eqcon1
)
e2
:
SetCost
(
c23756165
.
spcost
)
e2
:
SetTarget
(
c23756165
.
eqtg
)
e2
:
SetTarget
(
c23756165
.
sptg
)
e2
:
SetOperation
(
c23756165
.
eqop
)
e2
:
SetOperation
(
c23756165
.
spop
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCondition
(
c23756165
.
eqcon2
)
c
:
RegisterEffect
(
e3
)
--special summon
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
23756165
,
1
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e4
:
SetCondition
(
c23756165
.
spcon
)
e4
:
SetCost
(
c23756165
.
spcost
)
e4
:
SetTarget
(
c23756165
.
sptg
)
e4
:
SetOperation
(
c23756165
.
spop
)
c
:
RegisterEffect
(
e4
)
end
end
c23756165
.
lvup
=
{
50140163
,
87257460
}
c23756165
.
lvup
=
{
50140163
,
87257460
}
c23756165
.
lvdn
=
{
87257460
}
c23756165
.
lvdn
=
{
87257460
}
function
c23756165
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23756165
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
SUMMON_VALUE_LV
then
if
c
:
GetSpecialSummonInfo
(
SUMMON_INFO_CODE
)
==
87257460
then
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
RegisterFlagEffect
(
id
+
1
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
e1
:
SetDescription
(
aux
.
Stringid
(
23756165
,
0
))
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c23756165
.
eqcon
)
e1
:
SetTarget
(
c23756165
.
eqtg
)
e1
:
SetOperation
(
c23756165
.
eqop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
e1
:
SetLabelObject
(
e
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
function
c23756165
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23756165
.
eqcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetLabelObject
():
GetLabelObject
()
local
c
=
e
:
GetHandler
()
return
ec
==
nil
or
ec
:
GetFlagEffect
(
23756165
)
==
0
return
c
:
GetFlagEffect
(
id
+
1
)
>
0
and
not
aux
.
IsSelfEquip
(
c
,
id
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
95937545
)
end
function
c23756165
.
eqcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetFlagEffect
(
id
+
1
)
>
0
and
not
aux
.
IsSelfEquip
(
c
,
id
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
95937545
)
end
end
function
c23756165
.
filter
(
c
)
function
c23756165
.
filter
(
c
)
return
c
:
IsLevelBelow
(
5
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToChangeControler
()
return
c
:
IsLevelBelow
(
5
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToChangeControler
()
...
@@ -56,7 +66,7 @@ function c23756165.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -56,7 +66,7 @@ function c23756165.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
end
end
function
c23756165
.
eqlimit
(
e
,
c
)
function
c23756165
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
and
not
c
:
IsDisabled
()
return
e
:
GetOwner
()
==
c
end
end
function
c23756165
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23756165
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -68,8 +78,7 @@ function c23756165.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,8 +78,7 @@ function c23756165.eqop(e,tp,eg,ep,ev,re,r,rp)
if
def
<
0
then
def
=
0
end
if
def
<
0
then
def
=
0
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
--Add Equip limit
--Add Equip limit
tc
:
RegisterFlagEffect
(
23756165
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
)
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
)
e
:
GetLabelObject
():
SetLabelObject
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
+
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
+
EFFECT_FLAG_OWNER_RELATE
)
...
@@ -90,8 +99,7 @@ function c23756165.repval(e,re,r,rp)
...
@@ -90,8 +99,7 @@ function c23756165.repval(e,re,r,rp)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
end
end
function
c23756165
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23756165
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetLabelObject
():
GetLabelObject
()
return
Duel
.
GetTurnPlayer
()
==
tp
and
aux
.
IsSelfEquip
(
e
:
GetHandler
(),
id
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
ec
and
ec
:
GetFlagEffect
(
23756165
)
~=
0
end
end
function
c23756165
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23756165
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
@@ -111,7 +119,6 @@ function c23756165.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -111,7 +119,6 @@ function c23756165.spop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c23756165
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c23756165
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_VALUE_LV
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
end
end
end
end
c50140163.lua
View file @
cd1633e4
--魅惑の女王 LV7
--魅惑の女王 LV7
local
s
,
id
,
o
=
GetID
()
function
c50140163
.
initial_effect
(
c
)
function
c50140163
.
initial_effect
(
c
)
--equip
aux
.
AddCodeList
(
c
,
23756165
)
--flag effect id+1
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetOperation
(
c50140163
.
regop
)
e1
:
SetOperation
(
c50140163
.
regop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--equip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
50140163
,
0
))
e2
:
SetCategory
(
CATEGORY_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c50140163
.
eqcon1
)
e2
:
SetTarget
(
c50140163
.
eqtg
)
e2
:
SetOperation
(
c50140163
.
eqop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCondition
(
c50140163
.
eqcon2
)
c
:
RegisterEffect
(
e3
)
end
end
c50140163
.
lvup
=
{
23756165
}
c50140163
.
lvup
=
{
23756165
}
c50140163
.
lvdn
=
{
23756165
,
87257460
}
c50140163
.
lvdn
=
{
23756165
,
87257460
}
function
c50140163
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50140163
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
SUMMON_VALUE_LV
then
if
c
:
GetSpecialSummonInfo
(
SUMMON_INFO_CODE
)
==
23756165
then
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
RegisterFlagEffect
(
id
+
1
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
e1
:
SetDescription
(
aux
.
Stringid
(
50140163
,
0
))
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c50140163
.
eqcon
)
e1
:
SetTarget
(
c50140163
.
eqtg
)
e1
:
SetOperation
(
c50140163
.
eqop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
e1
:
SetLabelObject
(
e
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
function
c50140163
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50140163
.
eqcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetLabelObject
():
GetLabelObject
()
local
c
=
e
:
GetHandler
()
return
ec
==
nil
or
ec
:
GetFlagEffect
(
50140163
)
==
0
return
c
:
GetFlagEffect
(
id
+
1
)
>
0
and
not
aux
.
IsSelfEquip
(
c
,
id
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
95937545
)
end
function
c50140163
.
eqcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetFlagEffect
(
id
+
1
)
>
0
and
not
aux
.
IsSelfEquip
(
c
,
id
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
95937545
)
end
end
function
c50140163
.
filter
(
c
)
function
c50140163
.
filter
(
c
)
return
c
:
IsAbleToChangeControler
()
return
c
:
IsAbleToChangeControler
()
...
@@ -43,7 +54,7 @@ function c50140163.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -43,7 +54,7 @@ function c50140163.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
end
end
function
c50140163
.
eqlimit
(
e
,
c
)
function
c50140163
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
and
not
c
:
IsDisabled
()
return
e
:
GetOwner
()
==
c
end
end
function
c50140163
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50140163
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -55,8 +66,7 @@ function c50140163.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,8 +66,7 @@ function c50140163.eqop(e,tp,eg,ep,ev,re,r,rp)
if
def
<
0
then
def
=
0
end
if
def
<
0
then
def
=
0
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
--Add Equip limit
--Add Equip limit
tc
:
RegisterFlagEffect
(
50140163
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
)
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
)
e
:
GetLabelObject
():
SetLabelObject
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
+
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
+
EFFECT_FLAG_OWNER_RELATE
)
...
...
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