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
REIKAI
ygopro-222DIY-cards
Commits
671bd2b5
You need to sign in or sign up before continuing.
Commit
671bd2b5
authored
Feb 19, 2025
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b58c6090
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
102 deletions
+111
-102
expansions/FiNALE.cdb
expansions/FiNALE.cdb
+0
-0
expansions/script/c1007002.lua
expansions/script/c1007002.lua
+14
-4
expansions/script/c1007010.lua
expansions/script/c1007010.lua
+96
-98
expansions/strings.conf
expansions/strings.conf
+1
-0
No files found.
expansions/FiNALE.cdb
View file @
671bd2b5
No preview for this file type
expansions/script/c1007002.lua
View file @
671bd2b5
...
@@ -18,12 +18,12 @@ function c1007002.initial_effect(c)
...
@@ -18,12 +18,12 @@ function c1007002.initial_effect(c)
e1
:
SetTarget
(
c1007002
.
addct
)
e1
:
SetTarget
(
c1007002
.
addct
)
e1
:
SetOperation
(
c1007002
.
addc
)
e1
:
SetOperation
(
c1007002
.
addc
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
netgplayer
--
在initial_effect中添加
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_INACTIVATE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN_FORBIDDEN
)
e2
:
SetOperation
(
c1007002
.
disop
)
e2
:
SetOperation
(
c1007002
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--indes
--indes
...
@@ -79,8 +79,18 @@ function c1007002.initial_effect(c)
...
@@ -79,8 +79,18 @@ function c1007002.initial_effect(c)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
c1007002
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1007002
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
(
re
:
IsHasProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
or
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
))
then
if
re
:
GetHandler
()
==
e
:
GetHandler
()
then
return
end
Duel
.
NegateEffect
(
ev
)
if
re
:
IsHasProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
then
Duel
.
NegateEffect
(
ev
)
return
end
if
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
Duel
.
NegateEffect
(
ev
)
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
Duel
.
NegateEffect
(
ev
)
return
end
end
end
end
function
c1007002
.
mat_filter
(
c
)
function
c1007002
.
mat_filter
(
c
)
...
...
expansions/script/c1007010.lua
View file @
671bd2b5
--童话的怪物·桥的巨人
--童话的怪物·桥的巨人
function
c1007010
.
initial_effect
(
c
)
local
s
,
id
,
o
=
GetID
(
)
c
:
SetUniqueOnField
(
1
,
0
,
1007010
)
function
s
.
initial_effect
(
c
)
--Activate
c
:
SetUniqueOnField
(
1
,
0
,
id
)
local
e1
=
Effect
.
CreateEffect
(
c
)
--Activate
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
c
:
RegisterEffect
(
e1
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
--Activate
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--special summon
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_IGNITI
ON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMM
ON
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCountLimit
(
1
,
17010
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c1007010
.
con
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetTarget
(
c1007010
.
target
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetOperation
(
c1007010
.
activate
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--selfdes
--selfdes
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e7
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e3
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCondition
(
c1007010
.
descon
)
e3
:
SetCondition
(
s
.
descon
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e3
)
end
end
function
c1007010
.
cfilter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa20f
)
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa20f
)
end
end
function
c1007010
.
con
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c1007010
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
0x21
,
3000
,
3000
,
10
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c1007010
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
m
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
1007010
,
0
,
0x21
,
3000
,
3000
,
10
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
end
local
c
=
e
:
GetHandler
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
0x21
,
3000
,
3000
,
10
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
--indestructable battle
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
,
true
)
--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
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
s
.
tgtg
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
,
true
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e3
,
true
)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
s
.
destg
)
e4
:
SetOperation
(
s
.
desop
)
c
:
RegisterEffect
(
e4
,
true
)
Duel
.
SpecialSummonComplete
()
end
end
function
c1007010
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
m
)
function
s
.
tgtg
(
e
,
c
)
local
c
=
nil
return
c
:
IsSetCard
(
0xa20f
)
and
c
~=
e
:
GetHandler
()
if
m
then
c
=
m
else
c
=
e
:
GetHandler
()
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
1007010
,
0
,
0x21
,
3000
,
3000
,
10
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
AddMonsterAttributeComplete
()
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c1007010
.
imtg
)
e2
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e2
,
true
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e3
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e3
,
true
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
1007010
,
1
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
0x1c0
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
c1007010
.
tdtg
)
e4
:
SetOperation
(
c1007010
.
tdop
)
c
:
RegisterEffect
(
e4
,
true
)
Duel
.
SpecialSummonComplete
()
end
end
function
c1007010
.
imtg
(
e
,
c
)
function
s
.
desfilter
(
c
)
return
c
:
IsSetCard
(
0x20f
)
and
not
c
:
IsCode
(
1007010
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsDestructable
(
)
end
end
function
c1007010
.
tdfilter
(
c
)
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
c
:
IsDestructable
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
s
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c1007010
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c1007010
.
tdfilter
(
chkc
)
end
local
tc
=
Duel
.
GetFirstTarget
()
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c1007010
.
tdfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c1007010
.
tdfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c1007010
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
descon
(
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
return
not
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
function
c1007010
.
cfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa20f
)
end
function
c1007010
.
check
()
return
Duel
.
IsExistingMatchingCard
(
c1007010
.
cfilter1
,
0
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c1007010
.
descon
(
e
)
return
not
c1007010
.
check
()
end
end
\ No newline at end of file
expansions/strings.conf
View file @
671bd2b5
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
!
setname
0
x320f
童话的怪物|魔法使之夜
!
setname
0
x320f
童话的怪物|魔法使之夜
!
setname
0
xa20f
久远寺有珠|魔法使之夜
!
setname
0
xa20f
久远寺有珠|魔法使之夜
!
setname
0
xc20f
苍崎青子|魔法使之夜
!
setname
0
xc20f
苍崎青子|魔法使之夜
!
counter
0
x1245
回路指示物
#蝶影 2924713558 11 0xe10-0xe1f
#蝶影 2924713558 11 0xe10-0xe1f
!
setname
0
xe10
帕西菲卡
!
setname
0
xe10
帕西菲卡
...
...
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