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
Ai
ygopro-222DIY-cards
Commits
7479544d
Commit
7479544d
authored
Aug 21, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E
parent
a47e1e45
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
208 additions
and
168 deletions
+208
-168
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c15000060.lua
expansions/script/c15000060.lua
+112
-166
expansions/script/c33200740.lua
expansions/script/c33200740.lua
+0
-1
expansions/script/c33700354.lua
expansions/script/c33700354.lua
+95
-0
expansions/script/c33711107.lua
expansions/script/c33711107.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
7479544d
No preview for this file type
expansions/script/c15000060.lua
View file @
7479544d
This diff is collapsed.
Click to expand it.
expansions/script/c33200740.lua
View file @
7479544d
...
...
@@ -84,7 +84,6 @@ function c33200740.counttg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x32a
,
2
)
and
Duel
.
IsExistingTarget
(
c33200740
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c33200740
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
2
,
2
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
e
:
GetHandler
(),
0
,
0x32a
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
2
,
0
,
0
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
33200740
,
1
))
...
...
expansions/script/c33700354.lua
View file @
7479544d
...
...
@@ -3,5 +3,100 @@ local m=33700354
local
cm
=
_G
[
"c"
..
m
]
xpcall
(
function
()
require
(
"expansions/script/c37564765"
)
end
,
function
()
require
(
"script/c37564765"
)
end
)
function
cm
.
initial_effect
(
c
)
aux
.
AddXyzProcedureLevelFree
(
c
,
nil
,
cm
.
gcheck
,
2
,
63
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_TOSS_DICE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
dicecon
)
e2
:
SetOperation
(
cm
.
diceop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_TOSS_COIN
)
e3
:
SetOperation
(
cm
.
coinop
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
gcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==
1
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
0
),
aux
.
Stringid
(
m
,
1
))
if
op
==
0
then
local
coinop
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
2
),
aux
.
Stringid
(
m
,
3
))
_TossCoin
=
Duel
.
TossCoin
function
Duel
.
TossCoin
(
player
,
count
)
local
boolflg
=
false
local
result
=
{
_TossCoin
(
player
,
count
)}
local
result_ret
=
{}
for
i
=
0
,
count
do
if
boolflg
==
false
then
table.insert
(
result_ret
,
coinop
)
else
table.insert
(
result_ret
,
result
[
i
])
end
end
Duel
.
TossCoin
=
_TossCoin
return
table.unpack
(
result_ret
)
end
else
local
diceop
=
Duel
.
AnnounceNumber
(
tp
,
1
,
2
,
3
,
4
,
5
,
6
)
_TossDice
=
Duel
.
TossDice
function
Duel
.
TossDice
(
player
,
count
,
count2
)
local
boolflg
=
true
local
result
=
{
_TossDice
(
player
,
count
,
count2
)}
local
result_ret
=
{}
local
sum
=
count
if
count2
then
sum
=
sum
+
count2
end
for
i
=
0
,
sum
do
if
boolflg
==
true
then
table.insert
(
result_ret
,
diceop
)
boolflg
=
false
else
table.insert
(
result_ret
,
result
[
i
])
end
end
Duel
.
TossDice
=
_TossDice
return
table.unpack
(
result_ret
)
end
end
end
function
cm
.
dicecon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
tp
end
function
cm
.
diceop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
flag
=
0
local
dc
=
{
Duel
.
GetDiceResult
()}
for
_
,
v
in
ipairs
(
dc
)
do
if
v
==
6
then
flag
=
flag
+
1
end
end
Duel
.
Recover
(
tp
,
flag
*
2000
,
REASON_EFFECT
)
end
function
cm
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
flag
=
0
local
dc
=
{
Duel
.
GetCoinResult
()}
for
_
,
v
in
ipairs
(
dc
)
do
if
v
==
1
then
flag
=
flag
+
1
end
end
Duel
.
Recover
(
tp
,
flag
*
2000
,
REASON_EFFECT
)
end
\ No newline at end of file
expansions/script/c33711107.lua
View file @
7479544d
...
...
@@ -144,7 +144,7 @@ function cm.sumval(e,c)
return
c
:
IsControler
(
sp
)
end
function
cm
.
drcon
(
e
)
return
Duel
.
GetTurnPlayer
()
=
1
-
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
e
:
GetHandlerPlayer
())
return
Duel
.
GetTurnPlayer
()
=
=
1
-
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
e
:
GetHandlerPlayer
())
end
function
cm
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sp
=
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
tp
)
...
...
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