Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
c1c41ade
Commit
c1c41ade
authored
Mar 12, 2025
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
57436139
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
165 additions
and
136 deletions
+165
-136
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/script/c11561003.lua
expansions/script/c11561003.lua
+4
-24
expansions/script/c11561052.lua
expansions/script/c11561052.lua
+7
-3
expansions/script/c12866865.lua
expansions/script/c12866865.lua
+2
-4
expansions/script/c64833519.lua
expansions/script/c64833519.lua
+2
-2
expansions/script/c64833523.lua
expansions/script/c64833523.lua
+27
-24
expansions/script/c71000100.lua
expansions/script/c71000100.lua
+1
-1
expansions/script/c71000101.lua
expansions/script/c71000101.lua
+20
-11
expansions/script/c71000102.lua
expansions/script/c71000102.lua
+21
-13
expansions/script/c71000104.lua
expansions/script/c71000104.lua
+15
-0
expansions/script/c71000106.lua
expansions/script/c71000106.lua
+3
-2
expansions/script/c71000107.lua
expansions/script/c71000107.lua
+23
-18
expansions/script/c71000108.lua
expansions/script/c71000108.lua
+20
-16
expansions/script/c71000110.lua
expansions/script/c71000110.lua
+1
-1
expansions/script/c71000113.lua
expansions/script/c71000113.lua
+19
-17
No files found.
expansions/no81.cdb
View file @
c1c41ade
No preview for this file type
expansions/script/c11561003.lua
View file @
c1c41ade
...
...
@@ -27,14 +27,13 @@ function c11561003.initial_effect(c)
e3
:
SetOperation
(
c11561003
.
diop
)
c
:
RegisterEffect
(
e3
)
end
c11561003
.
toss_dice
=
true
function
c11561003
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
)
==
0
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
function
c11561003
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsAbleToRemove
()
and
not
Duel
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
IsFaceup
()
and
c
.
toss_dice
end
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
return
e
:
GetHandler
():
IsAbleToRemove
()
and
not
Duel
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsEffectProperty
(
aux
.
EffectPropertyFilter
(
EFFECT_FLAG_DICE
))
end
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
function
c11561003
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -67,10 +66,10 @@ function c11561003.ditg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
end
function
c11561003
.
thfil
(
c
)
return
c
.
toss_dice
and
not
c
:
IsCode
(
11561003
)
and
c
:
IsAbleToHand
()
return
c
:
IsEffectProperty
(
aux
.
EffectPropertyFilter
(
EFFECT_FLAG_DICE
))
and
not
c
:
IsCode
(
11561003
)
and
c
:
IsAbleToHand
()
end
function
c11561003
.
xspfil
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
.
toss_dice
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsEffectProperty
(
aux
.
EffectPropertyFilter
(
EFFECT_FLAG_DICE
))
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c11561003
.
diop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -82,14 +81,6 @@ function c11561003.diop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
elseif
dc
==
3
or
dc
==
4
then
--if Duel.Draw(tp,1,REASON_EFFECT)~=0 and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,nil) then
-- local sg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,1,nil)
-- Duel.SendtoDeck(sg,nil,1,REASON_EFFECT)
--end
--if Duel.Draw(1-tp,1,REASON_EFFECT)~=0 and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,1-tp,LOCATION_HAND,0,1,nil) then
-- local sg=Duel.SelectMatchingCard(1-tp,Card.IsAbleToDeck,1-tp,LOCATION_HAND,0,1,1,nil)
-- Duel.SendtoDeck(sg,nil,1,REASON_EFFECT)
--end
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
elseif
dc
==
5
or
dc
==
6
then
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
...
...
@@ -116,15 +107,4 @@ function c11561003.diop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
\ No newline at end of file
expansions/script/c11561052.lua
View file @
c1c41ade
...
...
@@ -160,12 +160,15 @@ end
function
c11561052
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c11561052
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c11561052
.
tthfilter
(
c
)
return
c
:
IsAbleToHand
()
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
==
TYPE_MONSTER
end
function
c11561052
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsAbleToHand
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
GetOriginalType
()
&
TYPE_MONSTER
==
TYPE_MONSTER
and
chkc
:
IsAbleToHand
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c11561052
.
tthfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c11561052
.
tthfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Group
.
AddCard
(
g
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
2
,
0
,
0
)
end
...
...
@@ -178,3 +181,4 @@ function c11561052.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
c
:
GetOriginalType
()
&
TYPE_MONSTER
==
TYPE_MONSTER
\ No newline at end of file
expansions/script/c12866865.lua
View file @
c1c41ade
...
...
@@ -26,6 +26,7 @@ function s.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
id
+
1
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetOperation
(
s
.
spop
)
...
...
@@ -58,10 +59,7 @@ function s.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0xaa7c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
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
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c64833519.lua
View file @
c1c41ade
...
...
@@ -52,12 +52,12 @@ end
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
1
-
tp
,
LOCATION_S
TZONE
+
LOCATION_F
ZONE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
1
-
tp
,
LOCATION_SZONE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
#
g
,
0
,
0
)
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
1
-
tp
,
LOCATION_S
TZONE
+
LOCATION_F
ZONE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
1
-
tp
,
LOCATION_SZONE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
if
#
g
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
...
...
expansions/script/c64833523.lua
View file @
c1c41ade
...
...
@@ -65,30 +65,33 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
-- Case 1: 只有自己
if
case
==
1
then
-- 对方怪兽攻防半减
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
function
(
e
,
c
)
return
math.ceil
(
c
:
GetAttack
()
/
2
)
end
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e2
:
SetValue
(
function
(
e
,
c
)
return
math.ceil
(
c
:
GetDefense
()
/
2
)
end
)
c
:
RegisterEffect
(
e2
)
-- 效果无效化
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
c
:
RegisterEffect
(
e4
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
1
-
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
function
(
e
,
c
)
return
math.ceil
(
c
:
GetAttack
()
/
2
)
end
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e2
:
SetValue
(
function
(
e
,
c
)
return
math.ceil
(
c
:
GetDefense
()
/
2
)
end
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e4
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e4
)
tc
=
g
:
GetNext
()
end
-- Case 2: 只有对方
elseif
case
==
2
then
...
...
expansions/script/c71000100.lua
View file @
c1c41ade
...
...
@@ -90,7 +90,7 @@ function c71000100.op(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
71000100
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
sg
=
st
:
Select
(
tp
,
1
,
ct
,
nil
)
local
sg
=
st
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SSet
(
tp
,
sg
)
end
end
...
...
expansions/script/c71000101.lua
View file @
c1c41ade
--不知从何时开始
function
c71000101
.
initial_effect
(
c
)
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetTarget
(
c71000101
.
tg
)
e1
:
SetOperation
(
c71000101
.
op
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetTarget
(
s
.
tg
)
e1
:
SetOperation
(
s
.
op
)
c
:
RegisterEffect
(
e1
)
end
function
c71000101
.
spfilter
(
c
,
e
,
tp
)
function
s
.
cfilter
(
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xe73
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
,
0x60
)
>
0
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c71000101
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c71000101
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
function
s
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c71000101
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c71000101
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
and
sc
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
,
0x60
)
...
...
@@ -34,7 +43,7 @@ function c71000101.op(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c71000101
.
aclimit
)
e1
:
SetTarget
(
s
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
17
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
...
...
@@ -42,7 +51,7 @@ function c71000101.op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c71000101
.
aclimit
(
e
,
c
)
function
s
.
aclimit
(
e
,
c
)
return
not
c
:
IsSetCard
(
0xe73
)
end
--and c:IsLocation(LOCATION_DECK+LOCATION_HAND+LOCATION_REMOVED+LOCATION_GRAVE+LOCATION_EXTRA)
...
...
expansions/script/c71000102.lua
View file @
c1c41ade
--不知该何时结束
function
c71000102
.
initial_effect
(
c
)
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetTarget
(
c71000102
.
tg
)
e1
:
SetOperation
(
c71000102
.
op
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetTarget
(
s
.
tg
)
e1
:
SetOperation
(
s
.
op
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c71000102
.
c
)
e2
:
SetCondition
(
s
.
c
)
c
:
RegisterEffect
(
e2
)
end
function
c71000102
.
f
(
c
,
e
,
tp
)
function
s
.
cfilter
(
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
f
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xe73
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
,
0x60
)
>
0
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c71000102
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c71000102
.
f
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
function
s
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
f
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c71000102
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c71000102
.
f
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
f
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
and
sc
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
,
0x60
)
...
...
@@ -35,17 +43,17 @@ function c71000102.op(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c71000102
.
a
)
e1
:
SetTarget
(
s
.
a
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c71000102
.
a
(
e
,
c
)
function
s
.
a
(
e
,
c
)
return
not
c
:
IsSetCard
(
0xe73
)
end
function
c71000102
.
c
(
e
)
function
s
.
c
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
==
0
end
\ No newline at end of file
expansions/script/c71000104.lua
View file @
c1c41ade
...
...
@@ -20,6 +20,12 @@ function c71000104.initial_effect(c)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
c
:
RegisterEffect
(
e3
)
--
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCode
(
EVENT_TO_DECK
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetOperation
(
c71000104
.
xop
)
end
function
c71000104
.
filter
(
c
)
return
c
:
IsCode
(
71000101
,
71000102
)
and
c
:
IsAbleToHand
()
...
...
@@ -35,4 +41,13 @@ function c71000104.op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
function
c71000104
.
xf
(
c
,
tp
)
return
c
:
GetOwner
()
end
function
c71000104
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
d1
=
eg
:
FilterCount
(
c71000104
.
xf
,
nil
,
tp
)
*
300
Duel
.
Damage
(
1
-
tp
,
d1
,
REASON_EFFECT
,
true
)
Duel
.
Recover
(
tp
,
d1
,
REASON_EFFECT
,
true
)
Duel
.
RDComplete
()
end
\ No newline at end of file
expansions/script/c71000106.lua
View file @
c1c41ade
...
...
@@ -7,6 +7,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -57,7 +58,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e1
:
SetTarget
(
s
.
distg
)
e1
:
SetLabel
(
code
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
-- 连锁无效处理
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -66,7 +67,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCondition
(
s
.
discon
)
e2
:
SetOperation
(
s
.
disop
)
e2
:
SetLabel
(
code
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
...
...
expansions/script/c71000107.lua
View file @
c1c41ade
...
...
@@ -6,6 +6,7 @@ function s.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -33,32 +34,36 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
-- 选择场上的卡
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanBeOverlay
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanBeOverlay
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
xyzc
)
local
tc
=
g
:
GetFirst
()
if
tc
and
xyzc
:
IsType
(
TYPE_XYZ
)
then
-- 作为超量素材附加
tc
:
CancelToGrave
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
xyzc
,
Group
.
FromCards
(
tc
))
-- 获取原始代码
local
code
=
tc
:
GetOriginalCodeRule
()
--
local code=tc:GetOriginalCodeRule()
-- 效果无效化处理
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e1
:
SetTarget
(
s
.
distg
)
e1
:
SetLabel
(
code
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--
local e1=Effect.CreateEffect(c)
--
e1:SetType(EFFECT_TYPE_FIELD)
--
e1:SetCode(EFFECT_DISABLE)
--
e1:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD)
--
e1:SetTarget(s.distg)
--
e1:SetLabel(code)
--e1:SetReset(RESET_PHASE+PHASE_END,1
)
--
Duel.RegisterEffect(e1,tp)
-- 连锁无效处理
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetCondition
(
s
.
discon
)
e2
:
SetOperation
(
s
.
disop
)
e2
:
SetLabel
(
code
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--
local e2=Effect.CreateEffect(c)
--
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
--
e2:SetCode(EVENT_CHAIN_SOLVING)
--
e2:SetCondition(s.discon)
--
e2:SetOperation(s.disop)
--
e2:SetLabel(code)
--e2:SetReset(RESET_PHASE+PHASE_END,1
)
--
Duel.RegisterEffect(e2,tp)
end
end
...
...
expansions/script/c71000108.lua
View file @
c1c41ade
--
一曲镇魂
function
c7100010
8
.
initial_effect
(
c
)
--
尽在掌握
function
c7100010
9
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCategory
(
CATEGORY_NEGATE
)
e1
:
SetCountLimit
(
1
,
7100010
8
)
e1
:
SetCondition
(
c7100010
8
.
con
)
e1
:
SetTarget
(
c7100010
8
.
tg
)
e1
:
SetOperation
(
c7100010
8
.
op
)
e1
:
SetCountLimit
(
1
,
7100010
9
)
e1
:
SetCondition
(
c7100010
9
.
con
)
e1
:
SetTarget
(
c7100010
9
.
tg
)
e1
:
SetOperation
(
c7100010
9
.
op
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
end
function
c7100010
8
.
f
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
71000100
)
and
c
:
IsType
(
TYPE_XYZ
)
function
c7100010
9
.
f
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
71000100
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c7100010
8
.
f2
(
c
)
function
c7100010
9
.
f2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
71000100
)
and
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
end
function
c7100010
8
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c7100010
8
.
f
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
re
:
IsActiveType
(
TYPE_
MONSTER
+
TYPE_
TRAP
)
function
c7100010
9
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c7100010
9
.
f
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c7100010
8
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c7100010
9
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
function
c7100010
8
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7100010
9
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
Duel
.
NegateActivation
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c7100010
8
.
f2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c7100010
9
.
f2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
and
not
g
:
GetFirst
():
IsImmuneToEffect
(
e
)
and
rc
:
IsCanOverlay
()
then
rc
:
CancelToGrave
()
Duel
.
Overlay
(
g
:
GetFirst
(),
Group
.
FromCards
(
rc
))
end
end
end
\ No newline at end of file
end
expansions/script/c71000110.lua
View file @
c1c41ade
...
...
@@ -19,7 +19,7 @@ function c71000110.f2(c)
end
function
c71000110
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c71000110
.
f
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_MONSTER
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c71000110
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
expansions/script/c71000113.lua
View file @
c1c41ade
...
...
@@ -4,7 +4,7 @@ function s.initial_effect(c)
-- 效果①:除外盖卡
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_SEARCH
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_DRAW_PHASE
+
TIMING_END_PHASE
)
...
...
@@ -15,7 +15,7 @@ function s.initial_effect(c)
e1
:
SetOperation
(
s
.
exop
)
c
:
RegisterEffect
(
e1
)
--
效果②:回收与LP操作
效果②:回收与
LP
操作
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_RECOVER
)
...
...
@@ -23,7 +23,7 @@ function s.initial_effect(c)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
)
e2
:
SetRange
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
e2
:
SetCountLimit
(
1
,
id
+
100
)
e2
:
SetCountLimit
(
2
,
id
)
e2
:
SetCost
(
s
.
excost2
)
e2
:
SetTarget
(
s
.
rectg
)
e2
:
SetOperation
(
s
.
recop
)
...
...
@@ -62,22 +62,24 @@ function s.exop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
#
g
>
0
then
local
tc
=
Duel
.
SSet
(
tp
,
g
:
GetFirst
())
Duel
.
Recover
(
tp
,
300
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
300
,
REASON_EFFECT
)
-- 如果除外了七仟陌卡则允许当回合发动
if
e
:
GetLabel
()
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
c
:
RegisterEffect
(
e2
)
--
if e:GetLabel()>0 then
--
local e1=Effect.CreateEffect(c)
--
e1:SetType(EFFECT_TYPE_SINGLE)
--
e1:SetCode(EFFECT_QP_ACT_IN_SET_TURN)
--
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
--
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
--
c:RegisterEffect(e1)
--
local e2=e1:Clone()
--
e2:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
--
c:RegisterEffect(e2)
end
end
end
--
===== 效果②处理 =====--
=====
效果②处理
=====
--
function
s
.
excost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
...
...
@@ -89,15 +91,15 @@ end
function
s
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
--
Duel.SetPossibleOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,700)
Duel
.
SetPossibleOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
700
)
end
function
s
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
>
0
then
if
e
:
GetLabel
()
>
0
then
Duel
.
Recover
(
tp
,
7
00
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
7
00
,
REASON_EFFECT
)
Duel
.
Recover
(
tp
,
3
00
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
3
00
,
REASON_EFFECT
)
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