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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
61c732dc
Commit
61c732dc
authored
May 09, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
str
parent
273c4012
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
expansions/script/c9310020.lua
expansions/script/c9310020.lua
+27
-27
No files found.
expansions/script/c9310020.lua
View file @
61c732dc
--单调骰娘 古都
local
m
,
cm
=
rscf
.
DefineCard
(
9310020
,
"MrsDice_Taught"
)
Duel
.
LoadScript
(
"c44000001.lua"
)
function
c
9310020
.
initial_effect
(
c
)
local
m
=
9310020
local
cm
=
_G
[
"c"
..
m
]
function
c
m
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DICE
)
...
...
@@ -9,11 +9,11 @@ function c9310020.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
9310020
)
e1
:
SetCost
(
c
9310020
.
cost
)
e1
:
SetCondition
(
c
9310020
.
sumcon
)
e1
:
SetTarget
(
c
9310020
.
target
)
e1
:
SetOperation
(
c
9310020
.
op
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCost
(
c
m
.
cost
)
e1
:
SetCondition
(
c
m
.
sumcon
)
e1
:
SetTarget
(
c
m
.
target
)
e1
:
SetOperation
(
c
m
.
op
)
c
:
RegisterEffect
(
e1
)
--nontuner
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -21,31 +21,31 @@ function c9310020.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_NONTUNER
)
e2
:
SetValue
(
c
9310020
.
tnval
)
e2
:
SetValue
(
c
m
.
tnval
)
c
:
RegisterEffect
(
e2
)
end
c
9310020
.
setname
=
"MrsDice_Taught"
c
9310020
.
toss_dice
=
true
function
c
9310020
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
c
m
.
setname
=
"MrsDice_Taught"
c
m
.
toss_dice
=
true
function
c
m
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
end
function
c
9310020
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
end
function
c
9310020
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
m
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
end
function
c
9310020
.
cfilter
(
c
,
g
,
mc
)
return
g
:
CheckSubGroup
(
c
9310020
.
mtfilter
,
1
,
#
g
,
mc
,
c
)
function
c
m
.
cfilter
(
c
,
g
,
mc
)
return
g
:
CheckSubGroup
(
c
m
.
mtfilter
,
1
,
#
g
,
mc
,
c
)
end
function
c
9310020
.
mtfilter
(
g
,
mc
,
c
)
function
c
m
.
mtfilter
(
g
,
mc
,
c
)
local
sg
=
g
:
Clone
()
sg
:
AddCard
(
mc
)
return
sg
:
GetSum
(
Card
.
GetSynchroLevel
,
c
)
==
c
:
GetLevel
()
and
c
:
IsSynchroSummonable
(
nil
,
sg
)
end
function
c
9310020
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
kc
=
e
:
GetHandler
()
local
d
=
Duel
.
TossDice
(
tp
,
1
)
if
d
==
1
or
d
==
2
then
...
...
@@ -61,13 +61,13 @@ function c9310020.op(e,tp,eg,ep,ev,re,r,rp)
and
kc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
Duel
.
SpecialSummon
(
kc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeSynchroMaterial
,
tp
,
LOCATION_MZONE
,
0
,
kc
)
local
kg
=
Duel
.
GetMatchingGroup
(
c
9310020
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
sg
,
kc
)
if
kg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
9310020
,
0
))
then
local
kg
=
Duel
.
GetMatchingGroup
(
c
m
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
sg
,
kc
)
if
kg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
kg2
=
kg
:
Select
(
tp
,
1
,
1
,
nil
)
local
sc
=
kg2
:
GetFirst
()
local
sg1
=
sg
:
SelectSubGroup
(
tp
,
c
9310020
.
mtfilter
,
false
,
1
,
#
sg
,
kc
,
sc
)
local
sg1
=
sg
:
SelectSubGroup
(
tp
,
c
m
.
mtfilter
,
false
,
1
,
#
sg
,
kc
,
sc
)
sg1
:
Merge
(
kc
)
sc
:
SetMaterial
(
sg1
)
Duel
.
BreakEffect
()
...
...
@@ -81,20 +81,20 @@ function c9310020.op(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTarget
(
c
9310020
.
target2
)
e2
:
SetValue
(
c
9310020
.
indct
)
e2
:
SetTarget
(
c
m
.
target2
)
e2
:
SetValue
(
c
m
.
indct
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c
9310020
.
target2
(
e
,
c
)
return
rsmd
.
IsSet1
(
c
)
or
c
:
IsSetCard
(
0x3f91
)
function
c
m
.
target2
(
e
,
c
)
return
c
.
setname
==
"MrsDice_Taught"
or
c
:
IsSetCard
(
0x3f91
)
end
function
c
9310020
.
indct
(
e
,
re
,
r
,
rp
)
function
c
m
.
indct
(
e
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
then
return
1
else
return
0
end
end
function
c
9310020
.
tnval
(
e
,
c
)
function
c
m
.
tnval
(
e
,
c
)
return
e
:
GetHandler
():
IsDefensePos
()
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