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
d7cd037b
Commit
d7cd037b
authored
Mar 31, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
306cfab1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
50 deletions
+64
-50
expansions/script/c11451766.lua
expansions/script/c11451766.lua
+4
-4
expansions/script/c14010146.lua
expansions/script/c14010146.lua
+14
-0
expansions/script/c16670012.lua
expansions/script/c16670012.lua
+40
-40
expansions/script/c98920350.lua
expansions/script/c98920350.lua
+2
-2
expansions/script/c9911510.lua
expansions/script/c9911510.lua
+4
-4
No files found.
expansions/script/c11451766.lua
View file @
d7cd037b
...
...
@@ -70,19 +70,19 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local
se
=
e
:
GetLabelObject
():
GetLabelObject
()
return
eg
:
IsExists
(
cm
.
spfilter
,
1
,
nil
,
se
)
end
function
cm
.
refilter
(
c
)
return
c
:
IsAbleToRemove
()
and
c
:
IsSetCard
(
0x9977
)
and
c
:
IsFaceup
()
function
cm
.
refilter
(
c
,
tp
)
return
c
:
IsAbleToRemove
()
and
c
:
IsSetCard
(
0x9977
)
and
c
:
IsFaceup
()
and
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
or
c
:
IsLocation
(
LOCATION_SZONE
))
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
refilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
c
:
IsSSetable
(
)
and
c
:
GetFlagEffect
(
m
-
10
)
==
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
refilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
and
c
:
IsSSetable
(
true
)
and
c
:
GetFlagEffect
(
m
-
10
)
==
0
end
c
:
RegisterFlagEffect
(
m
-
10
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_ONFIELD
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
refilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
refilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
if
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
c
)
end
...
...
expansions/script/c14010146.lua
View file @
d7cd037b
...
...
@@ -93,6 +93,20 @@ function cm.GetHandEffect(c,tc)
if
cm
.
urara_cache
[
code
]
then
return
cm
.
urara_cache
[
code
]
end
local
eset
=
{}
local
temp
=
Card
.
RegisterEffect
local
_SetRange
=
Effect
.
SetRange
function
Effect
.
SetRange
(
e
,
r
,
...
)
table_range
=
table_range
or
{}
table_range
[
e
]
=
r
return
_SetRange
(
e
,
r
,
...
)
end
if
not
Effect
.
GetRange
then
function
Effect
.
GetRange
(
e
)
if
table_range
and
table_range
[
e
]
then
return
table_range
[
e
]
end
return
0
end
end
Card
.
RegisterEffect
=
function
(
tc
,
e
,
f
)
if
(
e
:
GetRange
()
&
LOCATION_HAND
)
>
0
and
e
:
IsHasType
(
EFFECT_TYPE_IGNITION
+
EFFECT_TYPE_QUICK_F
+
EFFECT_TYPE_QUICK_O
+
EFFECT_TYPE_TRIGGER_F
+
EFFECT_TYPE_TRIGGER_O
)
then
local
found
=
false
...
...
expansions/script/c16670012.lua
View file @
d7cd037b
...
...
@@ -26,14 +26,14 @@ function cm.initial_effect(c)
e11
:
SetCode
(
EVENT_PHASE
+
PHASE_DRAW
)
e11
:
SetCountLimit
(
1
)
e11
:
SetOperation
(
cm
.
thop
)
--
Duel.RegisterEffect(e11,0)
--
Duel.RegisterEffect(e11,0)
end
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
s
=
math.random
(
0
,
9
)
local
s1
=
s
*
1000000
local
s2
=
s1
+
999999
local
s1
=
s
*
1000000
local
s2
=
s1
+
999999
for
i
=
1
,
9999999
do
local
mt1
=
cm
.
load_metatable
(
i
)
if
mt1
then
...
...
@@ -58,55 +58,55 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetLabel
(
0
)
local
c
=
e
:
GetHandler
()
--[[
local codelist={}
local s=math.random(0,9)
local s1=s*1000000
local s2=s1+999999
local codelist={}
local s=math.random(0,9)
local s1=s*1000000
local s2=s1+999999
math.randomseed(tostring(os.time()):reverse():sub(1, 6))
]]
--
local
codelist2
=
0
local
codelist2
=
0
for
i
=
1
,
9999999
do
if
codelist2
~=
0
then
break
end
local
l
=
Duel
.
GetRandomNumber
(
1
,
9999999
)
--math.random(1,9999999)
if
codelist2
~=
0
then
break
end
local
l
=
Duel
.
GetRandomNumber
(
1
,
9999999
9
)
--math.random(1,9999999)
--local l=math.random(1,#cm.loaded_metatable_list2)
--local mt=cm.load_metatable(l)
--local mt=cm.load_metatable(l)
local
mt
=
cm
.
load_metatable_load
(
l
)
if
mt
then
local
token
=
Duel
.
CreateToken
(
tp
,
l
)
if
token
and
(
token
:
IsType
(
TYPE_SPELL
)
or
token
:
IsType
(
TYPE_TRAP
))
and
not
token
:
IsType
(
TYPE_EQUIP
)
if
mt
then
local
token
=
Duel
.
CreateToken
(
tp
,
l
)
if
token
and
(
token
:
IsType
(
TYPE_SPELL
)
or
token
:
IsType
(
TYPE_TRAP
))
and
not
token
:
IsType
(
TYPE_EQUIP
)
and
-- not token:IsType(TYPE_CONTINUOUS) and
not
token
:
IsType
(
TYPE_FIELD
)
-- and not token:IsType(TYPE_FIELD) and not token:IsType(TYPE_CONTINUOUS)
and
token
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
and
token
:
CheckActivateEffect
(
false
,
true
,
false
):
GetOperation
()
~=
nil
then
--
table.insert(codelist,i)
-- and not token:IsType(TYPE_FIELD) and not token:IsType(TYPE_CONTINUOUS)
and
token
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
and
token
:
CheckActivateEffect
(
false
,
true
,
false
):
GetOperation
()
~=
nil
then
--
table.insert(codelist,i)
--[[local ab=codelist--cm.get_announce(codelist)
for i=1,5 do
local p=math.random(1,#ab)
table.insert(codelist2,1,ab[p])
end
local ac=codelist2[1] ]]
--
--if token:CheckActivateEffect(true,true,false)==nil then
--
e:SetLabelObject(nil)
--
else
--
c:SetHint(CHINT_CARD,l)
Duel
.
Hint
(
HINT_CARD
,
tp
,
l
)
Duel
.
Hint
(
HINT_CODE
,
1
-
tp
,
l
)
Duel
.
Hint
(
HINT_CODE
,
tp
,
l
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
token
:
CheckActivateEffect
(
true
,
true
,
true
)
e
:
SetProperty
(
te
:
GetProperty
())
--if token:CheckActivateEffect(true,true,false)==nil then
--
e:SetLabelObject(nil)
--
else
--
c:SetHint(CHINT_CARD,l)
Duel
.
Hint
(
HINT_CARD
,
tp
,
l
)
Duel
.
Hint
(
HINT_CODE
,
1
-
tp
,
l
)
Duel
.
Hint
(
HINT_CODE
,
tp
,
l
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
token
:
CheckActivateEffect
(
true
,
true
,
true
)
e
:
SetProperty
(
te
:
GetProperty
())
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
,
0
,
1
,
0
,
0
)
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
--end
codelist2
=
codelist2
+
1
end
end
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
--end
codelist2
=
codelist2
+
1
end
end
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -128,7 +128,7 @@ end
function
cm
.
get_announce
(
t
)
local
rt
=
{
t
[
1
],
OPCODE_ISCODE
}
for
i
=
2
,
#
t
do
if
not
t
[
i
]
then
break
end
if
not
t
[
i
]
then
break
end
table.insert
(
rt
,
t
[
i
])
table.insert
(
rt
,
OPCODE_ISCODE
)
table.insert
(
rt
,
OPCODE_OR
)
...
...
@@ -151,7 +151,7 @@ function cm.load_metatable(code)
local
mt
=
_G
[
"c"
..
code
]
_G
[
"c"
..
code
]
=
nil
if
mt
then
--
cm.loaded_metatable_list[code]=mt
--
cm.loaded_metatable_list[code]=mt
return
mt
end
else
...
...
expansions/script/c98920350.lua
View file @
d7cd037b
...
...
@@ -61,13 +61,13 @@ end
function
c98920350
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabelObject
():
GetLabel
()
e
:
GetLabelObject
():
SetLabel
(
ct
+
1
)
if
rp
~=
tp
and
re
:
GetHandler
():
Is
Type
(
e
:
GetLabel
())
then
if
rp
~=
tp
and
re
:
IsActive
Type
(
e
:
GetLabel
())
then
e
:
GetHandler
():
RegisterFlagEffect
(
98920350
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
+
RESET_CHAIN
,
0
,
1
)
end
end
function
c98920350
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
ep
~=
tp
and
c
:
GetFlagEffect
(
98920350
)
~=
0
and
re
:
GetHandler
():
Is
Type
(
e
:
GetLabel
())
return
ep
~=
tp
and
c
:
GetFlagEffect
(
98920350
)
~=
0
and
re
:
IsActive
Type
(
e
:
GetLabel
())
end
function
c98920350
.
damop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabelObject
():
GetLabel
()
...
...
expansions/script/c9911510.lua
View file @
d7cd037b
...
...
@@ -53,7 +53,7 @@ function c9911510.limop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetCurrentChain
()
==
0
then
Duel
.
SetChainLimitTillChainEnd
(
c9911510
.
chainlm
)
elseif
Duel
.
GetCurrentChain
()
==
1
then
e
:
GetHandler
():
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
9911510
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -66,14 +66,14 @@ function c9911510.limop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c9911510
.
resetop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
ResetFlagEffect
(
id
)
e
:
GetHandler
():
ResetFlagEffect
(
9911510
)
e
:
Reset
()
end
function
c9911510
.
limop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetFlagEffect
(
id
)
~=
0
then
if
e
:
GetHandler
():
GetFlagEffect
(
9911510
)
~=
0
then
Duel
.
SetChainLimitTillChainEnd
(
c9911510
.
chainlm
)
end
e
:
GetHandler
():
ResetFlagEffect
(
id
)
e
:
GetHandler
():
ResetFlagEffect
(
9911510
)
end
function
c9911510
.
chainlm
(
e
,
rp
,
tp
)
return
tp
==
rp
...
...
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