Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
04cc7113
Commit
04cc7113
authored
Jun 15, 2025
by
wyykak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable uds in 2pick
Signed-off-by:
wyykak
<
wyy_1414@126.com
>
parent
ada99b0f
Pipeline
#37641
passed with stage
in 35 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
57 deletions
+5
-57
expansions/script/nef/uds.lua
expansions/script/nef/uds.lua
+3
-57
expansions/script/special.lua
expansions/script/special.lua
+1
-0
script/c13959998.lua
script/c13959998.lua
+1
-0
No files found.
expansions/script/nef/uds.lua
View file @
04cc7113
...
@@ -6,24 +6,12 @@ Uds.dataList = {}
...
@@ -6,24 +6,12 @@ Uds.dataList = {}
Uds
.
cardList
=
{}
Uds
.
cardList
=
{}
--rewrite
--rewrite
function
Auxiliary
.
PreloadUds
()
function
Uds
.
PreloadUds
()
Uds
.
regCardData
()
Uds
.
regCardData
()
Uds
.
regSelectCard
()
Uds
.
regSelectCard
()
end
end
function
Uds
.
regCardData
()
function
Uds
.
regCardData
()
-- Uds.dataList = {
-- [1] = {desc=aux.Stringid(37001,1), code=37001, cost=6},
-- [2] = {desc=aux.Stringid(37001,2), code=37002, cost=6},
-- [3] = {desc=aux.Stringid(37001,3), code=37003, cost=3},
-- [4] = {desc=aux.Stringid(37001,4), code=37004, cost=3},
-- [5] = {desc=aux.Stringid(37001,5), code=37005, cost=2},
-- [6] = {desc=aux.Stringid(37001,6), code=37006, cost=5},
-- [7] = {desc=aux.Stringid(37001,7), code=37007, cost=5},
-- [8] = {desc=aux.Stringid(37001,8), code=37008, cost=4},
-- [9] = {desc=aux.Stringid(37001,9), code=37009, cost=9},
-- [10] = {desc=aux.Stringid(37001,10), code=37010, cost=4},
-- }
Uds
.
dataList
=
{
Uds
.
dataList
=
{
[
37001
]
=
6
,
[
37001
]
=
6
,
[
37002
]
=
6
,
[
37002
]
=
6
,
...
@@ -41,18 +29,7 @@ function Uds.regCardData()
...
@@ -41,18 +29,7 @@ function Uds.regCardData()
end
end
function
Uds
.
regSelectCard
()
function
Uds
.
regSelectCard
()
local
e1
=
Effect
.
GlobalEffect
()
if
not
Duel
.
SelectYesNo
(
0
,
aux
.
Stringid
(
37000
,
2
))
then
return
end
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_ADJUST
)
-- e1:SetCode(EVENT_PHASE+PHASE_DRAW)
e1
:
SetOperation
(
Uds
.
rscop
)
Duel
.
RegisterEffect
(
e1
,
0
)
end
function
Uds
.
rscop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--
if
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
37000
,
2
))
or
not
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
37000
,
2
))
then
e
:
Reset
()
return
end
for
k
,
v
in
pairs
(
Uds
.
dataList
)
do
for
k
,
v
in
pairs
(
Uds
.
dataList
)
do
local
token0
=
Duel
.
CreateToken
(
0
,
k
)
local
token0
=
Duel
.
CreateToken
(
0
,
k
)
local
token1
=
Duel
.
CreateToken
(
1
,
k
)
local
token1
=
Duel
.
CreateToken
(
1
,
k
)
...
@@ -83,39 +60,8 @@ function Uds.rscop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,39 +60,8 @@ function Uds.rscop(e,tp,eg,ep,ev,re,r,rp)
availableCost
=
0
availableCost
=
0
end
end
end
end
-- -- 初始化table
-- local availableCost=10
-- local t={}
-- for k,v in pairs(Uds.dataList) do
-- t[k]=v
-- end
-- while availableCost>0 and #t>0 do
-- Duel.Hint(HINT_MESSAGE,player,aux.Stringid(37000,0))
-- local sel=Duel.SelectOption(player,Nef.unpackOneMember(t, "desc"))+1
-- local code=t[sel].code
-- Uds.initCard(code,player)
-- -- 维护table
-- availableCost=availableCost-t[sel].cost
-- for k=#t,1,-1 do
-- v=t[k]
-- if v.cost > availableCost then
-- table.remove(t, k)
-- end
-- end
-- end
-- local token=Duel.CreateToken(player,37000)
-- Duel.Remove(token,POS_FACEUP,REASON_RULE)
-- Duel.RaiseSingleEvent(e:GetHandler(),EVENT_REMOVE,e,REASON_RULE,player,player,0)
-- for i=1,2 do
-- if Duel.SelectYesNo(player,aux.Stringid(37000,1)) then
-- local token=Duel.CreateToken(player,37000)
-- Duel.Remove(token,POS_FACEDOWN,REASON_RULE)
-- end
-- end
end
end
--销毁本效果
Duel
.
Exile
(
Duel
.
GetMatchingGroup
(
nil
,
0
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
),
REASON_RULE
)
e
:
Reset
()
end
end
function
Uds
.
initCard
(
code
,
player
)
function
Uds
.
initCard
(
code
,
player
)
...
...
expansions/script/special.lua
View file @
04cc7113
...
@@ -8,6 +8,7 @@ Duel.LoadScript("nef/dss.lua")
...
@@ -8,6 +8,7 @@ Duel.LoadScript("nef/dss.lua")
Duel
.
LoadScript
(
"nef/afi.lua"
)
Duel
.
LoadScript
(
"nef/afi.lua"
)
Duel
.
LoadScript
(
"nef/TheElementTheory.lua"
)
Duel
.
LoadScript
(
"nef/TheElementTheory.lua"
)
Duel
.
LoadScript
(
"nef/Exlink.lua"
)
Duel
.
LoadScript
(
"nef/Exlink.lua"
)
Duel
.
LoadScript
(
"nef/uds.lua"
)
-- require "expansions/script/nef/nef"
-- require "expansions/script/nef/nef"
-- require "expansions/script/nef/msc"
-- require "expansions/script/nef/msc"
...
...
script/c13959998.lua
View file @
04cc7113
...
@@ -237,6 +237,7 @@ function this.op(e,tp)
...
@@ -237,6 +237,7 @@ function this.op(e,tp)
if
not
this
.
isTag
or
Duel
.
GetTurnCount
()
==
5
then
if
not
this
.
isTag
or
Duel
.
GetTurnCount
()
==
5
then
this
.
isPicking
=
false
this
.
isPicking
=
false
Uds
.
PreloadUds
()
end
end
Duel
.
Draw
(
0
,
this
.
drawCount
,
REASON_RULE
)
Duel
.
Draw
(
0
,
this
.
drawCount
,
REASON_RULE
)
Duel
.
Draw
(
1
,
this
.
drawCount
,
REASON_RULE
)
Duel
.
Draw
(
1
,
this
.
drawCount
,
REASON_RULE
)
...
...
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