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
5ad9b67b
Commit
5ad9b67b
authored
Oct 31, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tnndx
parent
b54efbf7
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
163 additions
and
90 deletions
+163
-90
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c10199990.lua
expansions/script/c10199990.lua
+45
-20
expansions/script/c10199991.lua
expansions/script/c10199991.lua
+82
-34
expansions/script/c11200207.lua
expansions/script/c11200207.lua
+1
-1
expansions/script/c12044041.lua
expansions/script/c12044041.lua
+2
-1
expansions/script/c12044051.lua
expansions/script/c12044051.lua
+1
-7
expansions/script/c12044052.lua
expansions/script/c12044052.lua
+1
-5
expansions/script/c12044053.lua
expansions/script/c12044053.lua
+13
-4
expansions/script/c16102000.lua
expansions/script/c16102000.lua
+1
-1
expansions/script/c16102001.lua
expansions/script/c16102001.lua
+1
-1
expansions/script/c16102002.lua
expansions/script/c16102002.lua
+1
-1
expansions/script/c16102003.lua
expansions/script/c16102003.lua
+1
-1
expansions/script/c16102004.lua
expansions/script/c16102004.lua
+1
-1
expansions/script/c16102005.lua
expansions/script/c16102005.lua
+1
-1
expansions/script/c16102006.lua
expansions/script/c16102006.lua
+1
-1
expansions/script/c16102010.lua
expansions/script/c16102010.lua
+1
-1
expansions/script/c16102011.lua
expansions/script/c16102011.lua
+1
-1
expansions/script/c16102012.lua
expansions/script/c16102012.lua
+1
-1
expansions/script/c16102013.lua
expansions/script/c16102013.lua
+1
-1
expansions/script/c16104200.lua
expansions/script/c16104200.lua
+1
-1
expansions/script/c16104400.lua
expansions/script/c16104400.lua
+1
-1
expansions/script/c30000220.lua
expansions/script/c30000220.lua
+1
-1
expansions/script/c30000236.lua
expansions/script/c30000236.lua
+1
-1
expansions/script/c30000240.lua
expansions/script/c30000240.lua
+1
-1
expansions/script/c65020212.lua
expansions/script/c65020212.lua
+1
-1
expansions/script/c65020213.lua
expansions/script/c65020213.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
5ad9b67b
No preview for this file type
expansions/script/c10199990.lua
View file @
5ad9b67b
--version 20.10.
11
--version 20.10.
30
if
not
pcall
(
function
()
require
(
"expansions/script/c10199991"
)
end
)
then
require
(
"script/c10199991"
)
end
local
m
=
10199990
local
vm
=
10199991
local
Version_Number
=
202010
11
local
Version_Number
=
202010
30
if
rsv
.
Library_Switch
then
return
end
rsv
.
Library_Switch
=
true
-----------------------"Part_Effect_Base"-----------------------
...
...
@@ -53,11 +53,11 @@ function rsef.GetDefaultHintString(cate_list,loc_self,loc_oppo,hint_list)
if
(
type
(
loc_oppo
)
==
"number"
and
loc_oppo
>
0
)
and
(
not
loc_self
or
loc_self
==
0
)
then
hint
=
HINTMSG_OPPO
end
local
hint_list
=
{
HINTMSG_DESTROY
,
HINTMSG_RELEASE
,
HINTMSG_REMOVE
,
HINTMSG_ATOHAND
,
HINTMSG_TODECK
,
HINTMSG_TOGRAVE
,
0
,
HINTMSG_DISCARD
,
HINTMSG_SUMMON
,
HINTMSG_SPSUMMON
,
0
,
HINTMSG_POSCHANGE
,
HINTMSG_CONTROL
,
rshint
.
dis
,
0
,
0
,
HINTMSG_POSCHANGE
,
HINTMSG_CONTROL
,
rshint
.
s
dis
,
0
,
0
,
0
,
HINTMSG_EQUIP
,
0
,
0
,
rshint
.
ad
,
rshint
.
ad
,
HINTMSG_FACEUP
,
0
,
0
,
rshint
.
sad
,
rshint
.
s
ad
,
HINTMSG_FACEUP
,
0
,
0
,
0
,
HINTMSG_FACEUP
,
0
,
0
,
0
,
rshint
.
te
}
rshint
.
s
te
}
for
_
,
cate
in
pairs
(
cate_list
)
do
local
bool
,
idx
=
rsof
.
Table_List
(
rscate
.
catelist
,
cate
)
if
bool
then
...
...
@@ -76,7 +76,12 @@ function rsef.GetDefaultHintString(cate_list,loc_self,loc_oppo,hint_list)
-- return to grave
if
rsof
.
Table_List
(
cate_list
,
"tg"
)
and
((
type
(
loc_self
)
==
"number"
and
loc_self
&
LOCATION_REMOVED
~=
0
)
or
(
loc_oppo
and
loc_oppo
&
LOCATION_REMOVED
~=
0
))
then
hint
=
rshint
.
rtg
hint
=
rshint
.
srtg
end
-- return to hand
if
rsof
.
Table_List
(
cate_list
,
"th"
)
and
((
type
(
loc_self
)
==
"number"
and
loc_self
&
(
rsloc
.
og
+
LOCATION_REMOVED
)
~=
0
)
or
(
loc_oppo
and
loc_oppo
&
(
rsloc
.
og
+
LOCATION_REMOVED
)
~=
0
))
then
hint
=
rshint
.
srth
end
return
hint
end
...
...
@@ -232,11 +237,22 @@ function rsef.RegisterCateFlag(reg_eff,cate,flag)
end
end
--Effect: Register Effect Description
function
rsef
.
RegisterDescription
(
reg_eff
,
desc_list
,
is_return
)
function
rsef
.
RegisterDescription
(
reg_eff
,
desc_list
,
cate_str
,
is_return
)
--default desc(nil for desc and string for cate)
if
not
desc_list
and
cate_str_list
then
if
type
(
cate_str_list
)
==
"string"
then
desc_list
=
(
rsof
.
String_Split
(
cate_str_list
))[
1
]
elseif
type
(
cate_str_list
)
==
"table"
and
type
(
cate_str_list
[
1
])
==
"string"
then
desc_list
=
(
rsof
.
String_Split
(
cate_str_list
[
1
]))[
1
]
end
end
if
desc_list
then
if
type
(
desc_list
)
==
"table"
then
if
is_return
then
return
aux
.
Stringid
(
desc_list
[
1
],
desc_list
[
2
])
end
reg_eff
:
SetDescription
(
aux
.
Stringid
(
desc_list
[
1
],
desc_list
[
2
]))
elseif
type
(
desc_list
)
==
"string"
then
if
is_return
then
return
rshint
[
desc_list
]
end
reg_eff
:
SetDescription
(
rshint
[
desc_list
])
else
if
is_return
then
return
desc_list
end
reg_eff
:
SetDescription
(
desc_list
)
...
...
@@ -357,7 +373,7 @@ function rsef.Register(reg_list,eff_type,eff_code,desc_list,lim_list,cate,flag,r
if
eff_code
then
reg_eff
:
SetCode
(
eff_code
)
end
rsef
.
RegisterDescription
(
reg_eff
,
desc_list
)
rsef
.
RegisterDescription
(
reg_eff
,
desc_list
,
cate
,
false
)
rsef
.
RegisterCountLimit
(
reg_eff
,
lim_list
)
rsef
.
RegisterCateFlag
(
reg_eff
,
cate
,
flag
)
if
range
then
...
...
@@ -955,13 +971,13 @@ function rsef.QO_NEGATE(reg_list,negtype,lim_list,way_str,range,con,cost,desc_li
if
not
range
then
range
=
rsef
.
GetRegisterRange
(
reg_list
)
end
if
not
negtype
then
negtype
=
"neg"
end
if
negtype
==
"dis"
or
nettype
==
"effect"
then
if
not
desc_list
then
desc_list
=
rshint
.
dise
ffect
end
if
not
desc_list
then
desc_list
=
rshint
.
dise
end
local
flag2
=
rsef
.
GetRegisterProperty
(
flag
)
|
EFFECT_FLAG_DAMAGE_CAL
+
EFFECT_FLAG_DAMAGE_STEP
cate2
=
cate2
|
CATEGORY_DISABLE
if
not
con
then
con
=
rscon
.
negcon
(
0
)
end
return
rsef
.
QO
(
reg_list
,
EVENT_CHAINING
,
desc_list
,
lim_list
,
cate2
,
flag2
,
range
,
con
,
cost
,
rstg
.
distg
(
way_str
),
rsop
.
disop
(
way_str
),
nil
,
reset_list
)
elseif
negtype
==
"neg"
or
nettype
==
"act"
then
if
not
desc_list
then
desc_list
=
rshint
.
neg
effect
end
if
not
desc_list
then
desc_list
=
rshint
.
neg
end
local
flag2
=
rsef
.
GetRegisterProperty
(
flag
)
|
EFFECT_FLAG_DAMAGE_CAL
+
EFFECT_FLAG_DAMAGE_STEP
cate2
=
cate2
|
CATEGORY_NEGATE
if
not
con
then
con
=
rscon
.
discon
(
0
)
end
...
...
@@ -1016,7 +1032,7 @@ function rsef.FC_AttachEffect(reg_list,force,attach_time,desc_list,lim_list,flag
local
e1
=
rsef
.
FC
(
reg_list
,
attach_code
,
desc_list
,
nil
,
flag
,
range
,
rsef
.
FC_AttachEffect_Con
(
e0
,
attach_con
),
rsef
.
FC_AttachEffect_Op
(
e0
,
force
),
reset_list
)
e1
:
SetValue
(
attach_op
)
e1
:
SetLabelObject
(
e0
)
local
desc
=
not
desc_list
and
0
or
rsef
.
RegisterDescription
(
nil
,
desc_list
,
true
)
local
desc
=
not
desc_list
and
0
or
rsef
.
RegisterDescription
(
nil
,
desc_list
,
nil
,
true
)
if
aux
.
GetValueType
(
reg_handler
)
==
"Card"
then
reg_handler
:
RegisterFlagEffect
(
attach_code
,
reset
,
EFFECT_FLAG_CLIENT_HINT
,
reset_tct
,
e1
:
GetFieldID
(),
desc
)
else
...
...
@@ -1654,8 +1670,10 @@ function rstg.GetTargetAttribute(e,tp,eg,ep,ev,re,r,rp,target_list)
maxct
=
1
end
elseif
type
(
filter_card
)
==
"function"
and
not
rsof
.
Table_List
(
category_list
,
CATEGORY_HANDES
)
then
minct
=
filter_card
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
maxct
=
filter_card
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
minct2
=
filter_card
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
maxct2
=
minct2
if
type
(
minct2
)
==
"number"
then
minct
=
minct2
end
if
type
(
maxct2
)
==
"number"
then
maxct
=
maxct2
end
filter_card
=
aux
.
TRUE
end
end
...
...
@@ -1856,9 +1874,9 @@ function rstg.TargetSelect(e,tp,eg,ep,ev,re,r,rp,target_list_total)
end
end
--2.5. Solve cost to selected_group
if
list_type
==
"cost"
then
local
cost_result
=
rscost
.
CostSolve
(
selected_group
,
category_str_list
,
category_fun
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
used_group
,
used_count_list
)
if
not
cost_result
or
(
aux
.
GetValueType
(
cost_result
)
==
"Group"
and
#
cost_result
<=
0
)
then
return
end
if
list_type
==
"cost"
then
local
cost_result
,
cost_result_count
,
ignore_nil
=
rscost
.
CostSolve
(
selected_group
,
category_str_list
,
category_fun
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
used_group
,
used_count_list
)
if
not
cost_result
or
(
aux
.
GetValueType
(
cost_result
)
==
"Group"
and
#
cost_result
<=
0
and
not
ignore_nil
)
then
return
end
if
aux
.
GetValueType
(
cost_result
)
==
"Group"
and
#
cost_result
>
0
then
costed_group_total
:
Merge
(
cost_result
)
end
...
...
@@ -2004,6 +2022,10 @@ end
function
rscost
.
CostSolve
(
selected_group
,
category_str_list
,
category_fun
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
used_group
,
used_count_list
)
local
cost_sucess_group
local
cost_sucess_count
=
0
local
solve_string
=
category_str_list
[
1
]
if
#
category_str_list
==
1
and
(
not
solve_string
or
(
type
(
solve_string
)
==
"string"
and
solve_string
==
""
))
and
not
category_fun
then
return
Group
.
CreateGroup
(),
0
,
true
end
if
category_fun
then
local
value
=
category_fun
(
selected_group
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
used_group
,
used_count_list
)
if
aux
.
GetValueType
(
value
)
==
"Card"
or
aux
.
GetValueType
(
value
)
==
"Group"
then
...
...
@@ -2014,7 +2036,7 @@ function rscost.CostSolve(selected_group,category_str_list,category_fun,e,tp,eg,
return
cost_sucess_group
,
#
cost_sucess_group
end
if
not
category_str_list
or
#
category_str_list
==
0
then
return
true
end
return
rsop
.
operationcard
(
selected_group
,
category_str_list
[
1
]
,
REASON_COST
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rsop
.
operationcard
(
selected_group
,
solve_string
,
REASON_COST
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
--cost: togarve/remove/discard/release/tohand/todeck as cost
function
rscost
.
cost0
(
checkfun
,
costfun
,
...
)
...
...
@@ -2044,14 +2066,14 @@ function rsop.operationcard(selected_group,category_str,reason,e,tp,eg,ep,ev,re,
local
maxct
=
selected_group
[
p
+
2
]
local
dct
=
minct
if
maxct
<
minct
then
return
nil
,
0
end
if
maxct
>
minct
then
if
maxc
darktuner
t
>
minct
then
local
ct_list
=
{}
for
i
=
minct
,
maxct
do
if
Duel
.
IsPlayerCanDraw
(
p
,
i
)
then
table.insert
(
ct_list
,
i
)
end
end
rshint
.
Select
(
p
,
rshint
.
drct
)
rshint
.
Select
(
p
,
rshint
.
s
drct
)
dct
=
Duel
.
AnnounceNumber
(
p
,
table.unpack
(
ct_list
))
end
if
dct
>
0
then
...
...
@@ -2088,7 +2110,7 @@ function rsop.operationcard(selected_group,category_str,reason,e,tp,eg,ep,ev,re,
table.insert
(
ct_list
,
i
)
end
end
rshint
.
Select
(
p
,
rshint
.
tgct
)
rshint
.
Select
(
p
,
rshint
.
s
tgct
)
dct
=
Duel
.
AnnounceNumber
(
p
,
table.unpack
(
ct_list
))
end
if
dct
>
0
then
...
...
@@ -2612,6 +2634,9 @@ function rsop.SelectCheck_Solve(solve_fun)
end
--Function:outer case function for SelectSolve
function
rsop
.
SelectOC
(
chk_hint
,
is_break
,
sel_hint
)
if
type
(
chk_hint
)
==
"string"
then
chk_hint
=
rshint
[
"w"
..
chk_hint
]
end
rsop
.
SelectOC_checkhint
=
chk_hint
rsop
.
SelectOC_isbreak
=
is_break
rsop
.
SelectOC_selecthint
=
sel_hint
...
...
expansions/script/c10199991.lua
View file @
5ad9b67b
--Real Scl Version - Variable
local
Version_Number
=
2020
0409
local
Version_Number
=
2020
1030
local
m
=
10199990
local
vm
=
10199991
if
rsv
then
return
end
...
...
@@ -73,43 +73,91 @@ rscode.Synchro_Material = m+600 --"Record synchro proceudre target"
rscode
.
Pre_Complete_Proc
=
m
+
700
--"Previous c:CompleteProcedure"
rscode
.
Special_Procedure
=
m
+
900
rscode
.
Set
=
m
+
800
--"EVENT_SET"
--Hint Message Variable
rshint
.
act
=
aux
.
Stringid
(
m
,
0
)
--"activate spell/trap"
rshint
.
dis
=
aux
.
Stringid
(
38265153
,
3
)
--"cards will be disable effects "
rshint
.
ad
=
aux
.
Stringid
(
m
,
2
)
--"cards will be change Atk/Def"
rshint
.
rtg
=
aux
.
Stringid
(
48976825
,
0
)
--"return to grave"
rshint
.
spproc
=
aux
.
Stringid
(
m
,
4
)
--"SS by self produce"
rshint
.
negeffect
=
aux
.
Stringid
(
19502505
,
1
)
--"negate activation"
rshint
.
eq
=
aux
.
Stringid
(
68184115
,
0
)
--"cards will equip"
rshint
.
te
=
aux
.
Stringid
(
24094258
,
3
)
--"add to extra deck"
rshint
.
xyz
=
HINTMSG_XMATERIAL
--"cards will become overlay cards"
rshint
.
diseffect
=
aux
.
Stringid
(
39185163
,
1
)
--"negate effect"
rshint
.
negsum
=
aux
.
Stringid
(
m
+
1
,
1
)
--"negate summon"
rshint
.
negsp
=
aux
.
Stringid
(
74892653
,
0
)
--"negate special summon"
rshint
.
darktuner
=
aux
.
Stringid
(
m
,
14
)
--"treat as dark tuner"
rshint
.
act
=
aux
.
Stringid
(
m
,
0
)
--"activate card"
rshint
.
sact
=
aux
.
Stringid
(
m
,
1
)
--"select cards to activate"
rshint
.
ce
=
aux
.
Stringid
(
23912837
,
1
)
--"choose 1 effect"
rshint
.
neg
=
aux
.
Stringid
(
19502505
,
1
)
--"negate activation"
rshint
.
negsum
=
aux
.
Stringid
(
m
+
1
,
1
)
--"negate summon"
rshint
.
negsp
=
aux
.
Stringid
(
74892653
,
0
)
--"negate special summon"
rshint
.
dis
=
aux
.
Stringid
(
39185163
,
1
)
--"negate effect"
rshint
.
sdis
=
aux
.
Stringid
(
38265153
,
3
)
--"Select cards to disable"
rshint
.
wdis
=
aux
.
Stringid
(
25166510
,
2
)
--"would you disable?"
rshint
.
sp
=
aux
.
Stringid
(
74892653
,
2
)
--"special summon"
rshint
.
wsp
=
aux
.
Stringid
(
17535764
,
1
)
--"would you SS a monster?"
rshint
.
sum
=
aux
.
Stringid
(
65247798
,
0
)
--"face-up attack position summon"
rshint
.
tk
=
aux
.
Stringid
(
9929398
,
0
)
--"special summon token"
rshint
.
pos
=
aux
.
Stringid
(
3648368
,
0
)
--"change position"
rshint
.
ctrl
=
aux
.
Stringid
(
4941482
,
0
)
--"get control"
rshint
.
set
=
aux
.
Stringid
(
2521011
,
0
)
--"set"
rshint
.
dr
=
aux
.
Stringid
(
4732017
,
0
)
--"draw card"
rshint
.
wdr
=
aux
.
Stringid
(
3679218
,
1
)
--"would you draw?"
rshint
.
dish
=
aux
.
Stringid
(
18407024
,
0
)
--"discard card from hand"
rshint
.
disd
=
aux
.
Stringid
(
15939448
,
0
)
--"send decktop card to GY"
rshint
.
dam
=
aux
.
Stringid
(
3775068
,
0
)
--"effect damage"
rshint
.
rec
=
aux
.
Stringid
(
16259549
,
0
)
--"effect recover"
rshint
.
ct
=
aux
.
Stringid
(
3070049
,
0
)
--"add counter"
rshint
.
an
=
aux
.
Stringid
(
10809984
,
0
)
--"announce"
rshint
.
coin
=
aux
.
Stringid
(
2196767
,
0
)
--"toss coin"
rshint
.
dice
=
aux
.
Stringid
(
3493058
,
0
)
--"toss dice"
rshint
.
se
=
aux
.
Stringid
(
135598
,
0
)
--"search card from deck"
rshint
.
th
=
aux
.
Stringid
(
1249315
,
0
)
--"send to hand"
rshint
.
wth
=
aux
.
Stringid
(
26118970
,
1
)
--"would you send to hand?"
rshint
.
rth
=
aux
.
Stringid
(
13890468
,
0
)
--"return to hand"
rshint
.
wrth
=
aux
.
Stringid
(
9464441
,
2
)
--"would you return to hand?"
rshint
.
des
=
aux
.
Stringid
(
1571945
,
0
)
--"destroy"
rshint
.
wdes
=
aux
.
Stringid
(
20590515
,
2
)
--"would you destroy?"
rshint
.
res
=
aux
.
Stringid
(
33779875
,
0
)
--"Tribute monster"
rshint
.
rm
=
aux
.
Stringid
(
612115
,
0
)
--"remove"
rshint
.
wrm
=
aux
.
Stringid
(
93191801
,
2
)
--"would you reomve?"
rshint
.
tg
=
aux
.
Stringid
(
1050186
,
0
)
--"send to GY"
rshint
.
wtg
=
aux
.
Stringid
(
62834295
,
2
)
--"would you send to GY?"
rshint
.
rtg
=
aux
.
Stringid
(
28039390
,
1
)
--"return to GY"
rshint
.
srtg
=
aux
.
Stringid
(
48976825
,
0
)
--"select cards to return to GY"
rshint
.
td
=
aux
.
Stringid
(
4779823
,
1
)
--"return to deck"
rshint
.
wtd
=
aux
.
Stringid
(
m
,
6
)
--"would you send to Deck?"
rshint
.
te
=
aux
.
Stringid
(
18210764
,
0
)
--"face-up add to EX"
rshint
.
ste
=
aux
.
Stringid
(
24094258
,
3
)
--"select cards to face-up add to EX"
rshint
.
eq
=
aux
.
Stringid
(
68184115
,
0
)
--"equip"
rshint
.
seq
=
rshint
.
eq
--"select cards to equip"
rshint
.
weq
=
aux
.
Stringid
(
35100834
,
0
)
--"would you equip?"
--rshint.ua=aux.Stringid(1412158,0) --"Update ATK"
--rshint.ud=aux.Stringid(4997565,2) --"update DEF"
--rshint.uad=aux.Stringid(18563744,0) --"update ATK and DEF"
rshint
.
ad
=
aux
.
Stringid
(
7194917
,
0
)
--"change ATK and DEF"
rshint
.
cad
=
aux
.
Stringid
(
m
,
2
)
--"select cards to change Atk/Def"
rshint
.
clv
=
aux
.
Stringid
(
9583383
,
0
)
--"change level"
rshint
.
spproc
=
aux
.
Stringid
(
m
,
4
)
--"SS by self produce"
rshint
.
rstcp
=
aux
.
Stringid
(
43387895
,
1
)
--"reset copy effect"
rshint
.
epleave
=
aux
.
Stringid
(
m
,
3
)
--"end phase leave field buff"
rshint
.
stgct
=
aux
.
Stringid
(
83531441
,
2
)
--"select send to the GY number"
rshint
.
sdrct
=
aux
.
Stringid
(
m
,
5
)
--"select draw number"
rshint
.
darktuner
=
aux
.
Stringid
(
m
,
14
)
--"treat as dark tuner"
rshint
.
darksynchro
=
aux
.
Stringid
(
m
,
15
)
--"treat as dark synchro"
rshint
.
choose
=
aux
.
Stringid
(
23912837
,
1
)
--"choose 1 effect"
rshint
.
epleave
=
aux
.
Stringid
(
m
,
3
)
--"end phase leave field"
rshint
.
finshcopy
=
aux
.
Stringid
(
43387895
,
1
)
--"reset copy effect"
rshint
.
act2
=
aux
.
Stringid
(
m
,
1
)
--"select card to activate"
rshint
.
tgct
=
aux
.
Stringid
(
83531441
,
2
)
--"select send to the GY number"
rshint
.
drct
=
aux
.
Stringid
(
m
,
5
)
--"select draw number"
--[[
rshint.isss=aux.Stringid(17535764,1) --"would you SS a monster?"
rshint.istg=aux.Stringid(62834295,2) --"would you send to GY?"
rshint.isdes=aux.Stringid(20590515,2) --"would you destroy?"
rshint.istd=aux.Stringid(m,1) --"would you send to Deck?"
rshint.isrm=aux.Stringid(93191801,2) --"would you reomve?"
rshint.isset=aux.Stringid(m,5) --"would you set?"
rshint.istf=aux.Stringid(m,6) --"would you place to field?"
rshint.isth=aux.Stringid(26118970,1) --"would you send to hand?"
rshint.isrh=aux.Stringid(31102447,2) --"would you return to hand"
rshint.isdr=aux.Stringid(3679218,1) --"would you draw?"
--]]
--Property Variable
rsflag
.
flaglist
=
{
EFFECT_FLAG_CARD_TARGET
,
EFFECT_FLAG_PLAYER_TARGET
,
EFFECT_FLAG_DELAY
,
EFFECT_FLAG_DAMAGE_STEP
,
EFFECT_FLAG_DAMAGE_CAL
,
...
...
expansions/script/c11200207.lua
View file @
5ad9b67b
--SCP-040 进化之子
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
11200207
,
"SCP"
)
function
c11200207
.
initial_effect
(
c
)
--fusion material
...
...
expansions/script/c12044041.lua
View file @
5ad9b67b
...
...
@@ -27,8 +27,9 @@ function cm.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_PHASE
_START
+
PHASE_STANDBY
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_DRAW
)
e3
:
SetCountLimit
(
1
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetOperation
(
cm
.
drop
)
c
:
RegisterEffect
(
e3
)
--back
...
...
expansions/script/c12044051.lua
View file @
5ad9b67b
...
...
@@ -60,12 +60,9 @@ function cm.retreg(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetDescription
(
1104
)
e1
:
SetCategory
(
CATEGORY_TOEXTRA
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
e1
:
SetTarget
(
cm
.
rettg
)
e1
:
SetOperation
(
cm
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
...
...
@@ -75,12 +72,9 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
m
)
and
c
:
IsAbleToExtra
()
end
function
cm
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tp
=
e
:
GetOwnerPlayer
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c12044052.lua
View file @
5ad9b67b
...
...
@@ -67,7 +67,6 @@ function cm.retreg(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
e1
:
SetTarget
(
cm
.
rettg
)
e1
:
SetOperation
(
cm
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
...
...
@@ -77,12 +76,9 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
m
)
and
c
:
IsAbleToExtra
()
end
function
cm
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tp
=
e
:
GetOwnerPlayer
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c12044053.lua
View file @
5ad9b67b
...
...
@@ -58,15 +58,24 @@ end
function
cm
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
end
function
cm
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetDescription
(
1104
)
e1
:
SetCategory
(
CATEGORY_TOEXTRA
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
e1
:
SetOperation
(
cm
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
m
)
and
c
:
IsAbleToExtra
()
end
function
cm
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tp
=
e
:
GetOwnerPlayer
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c16102000.lua
View file @
5ad9b67b
--SCP-49 疫医
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102000
,
"SCP"
)
local
kh
=
c16102000
function
c16102000
.
initial_effect
(
c
)
...
...
expansions/script/c16102001.lua
View file @
5ad9b67b
--SCP-682 不灭孽蜥
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102001
,
"SCP"
)
local
kh
=
c16102001
function
kh
.
initial_effect
(
c
)
...
...
expansions/script/c16102002.lua
View file @
5ad9b67b
--D级人员
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102002
,
"SCP_J"
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rsef
.
I
(
c
,{
m
,
0
},{
1
,
m
},
"dr,th"
,
nil
,
LOCATION_MZONE
,
nil
,
rscost
.
cost
(
Card
.
IsReleasable
,
"res"
,
LOCATION_ONFIELD
),
rsop
.
target
(
1
,
"dr"
),
cm
.
drop
)
...
...
expansions/script/c16102003.lua
View file @
5ad9b67b
--SCP基金会 Doctors
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102003
,
"SCP_J"
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rsef
.
I
(
c
,{
m
,
0
},{
1
,
m
},
"sp"
,
nil
,
LOCATION_HAND
+
LOCATION_GRAVE
,
rscon
.
excard2
(
Card
.
IsCode
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
m
+
1
),
rscost
.
cost
(
Card
.
IsReleasable
,
"res"
,
LOCATION_HAND
+
LOCATION_ONFIELD
),
rsop
.
target2
(
cm
.
fun
,
rscf
.
spfilter2
(),
"sp"
),
cm
.
spop
)
...
...
expansions/script/c16102004.lua
View file @
5ad9b67b
--基金会
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102004
,
"SCP_J"
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rsef
.
ACT
(
c
,
nil
,
nil
,{
1
,
m
,
1
},
"se,th,tg"
,
nil
,
nil
,
nil
,
rsop
.
target
(
cm
.
thfilter
,
"th"
,
LOCATION_DECK
),
cm
.
thop
)
...
...
expansions/script/c16102005.lua
View file @
5ad9b67b
--SCP-173 雕像-最初之作
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102005
,
"SCP"
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rscf
.
SetSummonCondition
(
c
,
false
)
...
...
expansions/script/c16102006.lua
View file @
5ad9b67b
--SCP-96 害羞的人
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102006
,
"SCP"
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rscf
.
SetSummonCondition
(
c
,
false
)
...
...
expansions/script/c16102010.lua
View file @
5ad9b67b
--SCP-343 神
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102010
,
"SCP"
)
function
cm
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
m
)
...
...
expansions/script/c16102011.lua
View file @
5ad9b67b
--SCP-2000 机械降神
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102011
,
"SCP"
)
c16102011
.
dfc_front_side
=
16102011
c16102011
.
dfc_back_side
=
16102012
...
...
expansions/script/c16102012.lua
View file @
5ad9b67b
--SCP-2000 机械降神
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102012
,
"SCP"
)
c16102012
.
dfc_front_side
=
16102011
c16102012
.
dfc_back_side
=
16102012
...
...
expansions/script/c16102013.lua
View file @
5ad9b67b
--SCP基金会 Dr.Clef
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16102013
,
"SCP_J"
)
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
cm
.
lkfilter
,
4
,
4
)
...
...
expansions/script/c16104200.lua
View file @
5ad9b67b
--教团的普通骑士.
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
16104200
,
"CHURCH_KNIGHT"
)
if
rsch
then
return
end
rsch
=
cm
...
...
expansions/script/c16104400.lua
View file @
5ad9b67b
--与天界的链接
if
not
pcall
(
function
()
require
(
"expansions/script/c161
99990"
)
end
)
then
require
(
"script/c1619999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c161
01100"
)
end
)
then
require
(
"script/c1610110
0"
)
end
local
m
=
16104400
local
cm
=
_G
[
"c"
..
m
]
tenkai
=
tenkai
or
{}
...
...
expansions/script/c30000220.lua
View file @
5ad9b67b
--混沌的轮回 循环
if
not
pcall
(
function
()
require
(
"expansions/script/c300
99990"
)
end
)
then
require
(
"script/c3009999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c300
00100"
)
end
)
then
require
(
"script/c3000010
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
30000220
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rsef
.
ACT
(
c
,
nil
,
nil
,
nil
,
"td,dr"
,
nil
,
nil
,
nil
,
cm
.
tg
,
cm
.
act
)
...
...
expansions/script/c30000236.lua
View file @
5ad9b67b
--天罚机 德拉格尼克
if
not
pcall
(
function
()
require
(
"expansions/script/c300
99990"
)
end
)
then
require
(
"script/c3009999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c300
00100"
)
end
)
then
require
(
"script/c3000010
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
30000236
)
function
cm
.
initial_effect
(
c
)
rscf
.
SetSummonCondition
(
c
,
false
,
aux
.
FALSE
)
...
...
expansions/script/c30000240.lua
View file @
5ad9b67b
--金黑双生
if
not
pcall
(
function
()
require
(
"expansions/script/c300
99990"
)
end
)
then
require
(
"script/c3009999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c300
00100"
)
end
)
then
require
(
"script/c3000010
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
30000240
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rsef
.
ACT
(
c
,
m
,
nil
,
nil
,
"sp,rm"
,
"de,dsp"
,
cm
.
con
,
nil
,
rsop
.
target
(
cm
.
spfilter
,
"sp"
,
rsloc
.
hdg
),
cm
.
act
)
...
...
expansions/script/c65020212.lua
View file @
5ad9b67b
--行星驱逐舰 风雪游隼号
if
not
pcall
(
function
()
require
(
"expansions/script/c650
99990"
)
end
)
then
require
(
"script/c6509999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c650
10000"
)
end
)
then
require
(
"script/c6501000
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
65020212
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rscf
.
SetSpecialSummonProduce
(
c
,
LOCATION_HAND
,
cm
.
sprcon
,
nil
,
nil
,{
1
,
m
})
...
...
expansions/script/c65020213.lua
View file @
5ad9b67b
--「六兆年零一夜物语」凑友希那
if
not
pcall
(
function
()
require
(
"expansions/script/c650
99990"
)
end
)
then
require
(
"script/c6509999
0"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c650
10000"
)
end
)
then
require
(
"script/c6501000
0"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
65020213
)
function
cm
.
initial_effect
(
c
)
rscf
.
SetSummonCondition
(
c
,
false
,
aux
.
synlimit
)
...
...
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