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
23aa4124
Commit
23aa4124
authored
Apr 02, 2025
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
59a68af3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
27 deletions
+30
-27
expansions/script/c28315947.lua
expansions/script/c28315947.lua
+16
-15
expansions/script/c28316050.lua
expansions/script/c28316050.lua
+12
-11
expansions/script/special.lua
expansions/script/special.lua
+2
-1
No files found.
expansions/script/c28315947.lua
View file @
23aa4124
...
...
@@ -13,8 +13,9 @@ function c28315947.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--noctchill dice
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DICE
+
CATEGORY_
TOGRAVE
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_LEAVE_GRAVE
)
e2
:
SetCategory
(
CATEGORY_DICE
+
CATEGORY_
DESTROY
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_GRAVE_ACTION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
--e2:SetProperty(EFFECT_FLAG_DICE)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
38315947
)
e2
:
SetTarget
(
c28315947
.
dctg
)
...
...
@@ -27,7 +28,7 @@ function c28315947.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetOperation
(
c28315947
.
diceop
)
c
:
RegisterEffect
(
e3
)
c28315947
.
toss_dice
=
true
--
c28315947.toss_dice=true
end
function
c28315947
.
cfilter
(
c
)
return
c
:
IsCode
(
28316050
)
and
c
:
IsFaceup
()
...
...
@@ -47,26 +48,26 @@ function c28315947.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c28315947
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x286
,
0x289
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c28315947
.
pfilter
(
c
)
return
c
:
IsCode
(
28346765
)
and
c
:
IsAbleToGrave
()
return
(
c
:
IsSetCard
(
0x289
)
or
c
:
IsSetCard
(
0x286
)
and
c
:
IsType
(
TYPE_MONSTER
))
and
c
:
IsAbleToHand
()
end
function
c28315947
.
dctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c28315947
.
pfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c28315947
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
end
function
c28315947
.
pfilter
(
c
)
return
c
:
IsCode
(
28346765
)
and
c
:
IsAbleToGrave
()
end
function
c28315947
.
dcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsExistingMatchingCard
(
c28315947
.
pfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
return
end
if
Duel
.
TossDice
(
tp
,
1
)
==
6
and
Duel
.
IsExistingMatchingCard
(
c28315947
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_OPSELECTED
,
tp
,
HINTMSG_TOGRAVE
)
local
p
=
Duel
.
SelectMatchingCard
(
tp
,
c28315947
.
pfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
p
,
REASON_EFFECT
)
==
0
then
return
end
if
Duel
.
TossDice
(
tp
,
1
)
==
6
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_LINK
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
TYPE_LINK
)
Duel
.
HintSelection
(
g
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c28315947
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c28315947
.
thfilter
)
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
)
if
t
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
t
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
t
g
)
end
end
end
...
...
expansions/script/c28316050.lua
View file @
23aa4124
...
...
@@ -14,8 +14,9 @@ function c28316050.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--noctchill dice
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DICE
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetCategory
(
CATEGORY_DICE
+
CATEGORY_
DESTROY
+
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
--e2:SetProperty(EFFECT_FLAG_DICE)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
38316050
)
e2
:
SetTarget
(
c28316050
.
dctg
)
...
...
@@ -28,13 +29,13 @@ function c28316050.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetOperation
(
c28316050
.
diceop
)
c
:
RegisterEffect
(
e3
)
c28316050
.
toss_dice
=
true
--
c28316050.toss_dice=true
end
function
c28316050
.
cfilter
(
c
)
return
c
:
Is
Code
(
28346765
)
and
c
:
IsFaceup
()
return
c
:
Is
Type
(
TYPE_LINK
)
and
c
:
IsFaceup
()
end
function
c28316050
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c28316050
.
cfilter
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c28316050
.
cfilter
,
tp
,
LOCATION_
MZONE
,
0
,
1
,
nil
)
end
function
c28316050
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -59,18 +60,18 @@ function c28316050.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c28316050
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x286
,
0x289
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
(
c
:
IsSetCard
(
0x289
)
or
c
:
IsSetCard
(
0x286
)
and
c
:
IsType
(
TYPE_MONSTER
)
)
and
c
:
IsAbleToHand
()
end
function
c28316050
.
dctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c28316050
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c28316050
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
end
function
c28316050
.
dcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
end
if
Duel
.
TossDice
(
tp
,
1
)
==
6
and
Duel
.
IsExistingMatchingCard
(
c28316050
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
if
Duel
.
TossDice
(
tp
,
1
)
==
6
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c28316050
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
2
,
nil
)
if
tg
:
GetCount
()
>
0
then
...
...
expansions/script/special.lua
View file @
23aa4124
...
...
@@ -186,11 +186,12 @@ function Auxiliary.PreloadUds()
function
Card
.
GetLinkMarker
(
c
)
local
res
=
0
for
i
=
0
,
8
do
if
i
~=
4
and
c
:
IsLinkMarker
(
1
<<
i
)
then
res
=
res
|
(
1
<<
i
)
if
i
~=
4
and
c
:
IsLinkMarker
(
1
<<
i
)
then
res
=
res
|
(
1
<<
i
)
end
end
return
res
end
end
local
_CRegisterEffect
=
Card
.
RegisterEffect
function
Card
.
RegisterEffect
(
c
,
e
,
...
)
if
aux
.
GetValueType
(
c
)
~=
"Card"
then
error
(
"Card.RegisterEffect没有输入正确的Card参数。"
,
2
)
return
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