Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
V
Vgdpro Scripts
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
xiaoye
Vgdpro Scripts
Commits
74534a7a
Commit
74534a7a
authored
Sep 13, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复踩人bug
parent
165e62ef
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
42 deletions
+20
-42
VgD.Lua
VgD.Lua
+18
-40
VgFuncLib.lua
VgFuncLib.lua
+1
-1
c10203005.lua
c10203005.lua
+1
-1
No files found.
VgD.Lua
View file @
74534a7a
...
@@ -200,9 +200,9 @@ end
...
@@ -200,9 +200,9 @@ end
function
VgD
.
CallOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
VgD
.
CallOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
z
=
bit
.
bnot
(
VgF
.
GetAvailableLocation
(
tp
))
local
z
=
bit
.
bnot
(
VgF
.
GetAvailableLocation
(
tp
))
local
rg
=
Duel
.
GetMatchingGroup
(
Card
.
IsPosition
,
s
p
,
LOCATION_MZONE
,
0
,
nil
,
POS_FACEDOWN_ATTACK
)
local
rg
=
Duel
.
GetMatchingGroup
(
Card
.
IsPosition
,
t
p
,
LOCATION_MZONE
,
0
,
nil
,
POS_FACEDOWN_ATTACK
)
for
tc
in
VgF
.
Next
(
rg
)
do
for
tc
in
VgF
.
Next
(
rg
)
do
local
szone
=
VgF
.
SequenceToGlobal
(
s
p
,
tc
:
GetLocation
(),
tc
:
GetSequence
())
local
szone
=
VgF
.
SequenceToGlobal
(
t
p
,
tc
:
GetLocation
(),
tc
:
GetSequence
())
z
=
bit
.
bor
(
z
,
szone
)
z
=
bit
.
bor
(
z
,
szone
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CallZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CallZONE
)
...
@@ -240,36 +240,17 @@ function VgD.OverDressCondition(f)
...
@@ -240,36 +240,17 @@ function VgD.OverDressCondition(f)
return
VgF
.
LvCondition
(
e
)
and
VgF
.
IsExistingMatchingCard
(
VgD
.
OverDressFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
f
)
return
VgF
.
LvCondition
(
e
)
and
VgF
.
IsExistingMatchingCard
(
VgD
.
OverDressFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
f
)
end
end
end
end
function
VgD
.
OverDressFilter
(
c
,
f
,
zone
)
function
VgD
.
OverDressFilter
(
c
,
f
,
tp
,
zone
)
local
seq
if
zone
and
zone
>
0
then
if
zone
and
zone
>
0
then
if
zone
==
0x1
then
seq
=
0
end
if
zone
~=
VgF
.
SequenceToGlobal
(
tp
,
c
:
GetLocation
(),
c
:
GetSequence
())
then
return
false
end
if
zone
==
0x2
then
seq
=
1
end
if
zone
==
0x4
then
seq
=
2
end
if
zone
==
0x8
then
seq
=
3
end
if
zone
==
0x10
then
seq
=
4
end
if
not
VgF
.
IsSequence
(
c
,
seq
)
then
return
false
end
end
end
return
(
VgF
.
GetValueType
(
f
)
==
"function"
and
f
(
c
))
or
(
VgF
.
GetValueType
(
f
)
==
"number"
and
c
:
IsCode
(
f
))
and
c
:
IsFaceup
()
return
(
(
VgF
.
GetValueType
(
f
)
==
"function"
and
f
(
c
))
or
(
VgF
.
GetValueType
(
f
)
==
"number"
and
c
:
IsCode
(
f
)
))
and
c
:
IsFaceup
()
end
end
function
VgD
.
OverDressOperation
(
f
)
function
VgD
.
OverDressOperation
(
f
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
VgD
.
OverDressFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
code
)
local
g
=
Duel
.
GetMatchingGroup
(
VgD
.
OverDressFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
tp
)
local
szone
local
szone
if
Duel
.
GetTurnPlayer
()
==
tp
and
tp
==
1
then
local
zone
=
0xff
for
tc
in
VgF
.
Next
(
g
)
do
if
VgF
.
IsSequence
(
tc
,
0
)
then
zone
=
zone
-
0x1
end
if
VgF
.
IsSequence
(
tc
,
1
)
then
zone
=
zone
-
0x2
end
if
VgF
.
IsSequence
(
tc
,
2
)
then
zone
=
zone
-
0x4
end
if
VgF
.
IsSequence
(
tc
,
3
)
then
zone
=
zone
-
0x8
end
if
VgF
.
IsSequence
(
tc
,
4
)
then
zone
=
zone
-
0x10
end
end
if
zone
==
0xff
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CallZONE
)
szone
=
Duel
.
SelectField
(
tp
,
1
,
LOCATION_MZONE
,
0
,
zone
)
elseif
Duel
.
GetTurnPlayer
()
==
tp
and
tp
==
0
then
local
zone
=
0x00
local
zone
=
0x00
for
tc
in
VgF
.
Next
(
g
)
do
for
tc
in
VgF
.
Next
(
g
)
do
zone
=
bit
.
bor
(
zone
,
VgF
.
SequenceToGlobal
(
tp
,
tc
:
GetLocation
(),
tc
:
GetSequence
()))
zone
=
bit
.
bor
(
zone
,
VgF
.
SequenceToGlobal
(
tp
,
tc
:
GetLocation
(),
tc
:
GetSequence
()))
...
@@ -278,9 +259,8 @@ function VgD.OverDressOperation(f)
...
@@ -278,9 +259,8 @@ function VgD.OverDressOperation(f)
zone
=
bit
.
bnot
(
zone
)
zone
=
bit
.
bnot
(
zone
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CallZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CallZONE
)
szone
=
Duel
.
SelectField
(
tp
,
1
,
LOCATION_MZONE
,
0
,
zone
)
szone
=
Duel
.
SelectField
(
tp
,
1
,
LOCATION_MZONE
,
0
,
zone
)
end
e
:
SetValue
(
function
()
return
SUMMON_VALUE_CALL
+
SUMMON_VALUE_OverDress
,
szone
end
)
e
:
SetValue
(
function
()
return
SUMMON_VALUE_CALL
+
SUMMON_VALUE_OverDress
,
szone
end
)
local
tc
=
Duel
.
GetMatchingGroup
(
VgD
.
OverDressFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
szone
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
VgD
.
OverDressFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
tp
,
szone
):
GetFirst
()
if
not
tc
then
return
end
if
not
tc
then
return
end
local
mg
=
tc
:
GetOverlayGroup
()
local
mg
=
tc
:
GetOverlayGroup
()
if
mg
:
GetCount
()
~=
0
then
if
mg
:
GetCount
()
~=
0
then
...
@@ -1433,20 +1413,18 @@ function VgD.CallInPrisonCondition(val)
...
@@ -1433,20 +1413,18 @@ function VgD.CallInPrisonCondition(val)
end
end
end
end
function
VgD
.
CallInPrisonOperation
(
val
)
function
VgD
.
CallInPrisonOperation
(
val
)
return
function
(
e
,
p
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
local
tp
=
1
-
p
if
val
==
1
then
if
val
==
1
then
VgF
.
OverlayCost
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
VgF
.
OverlayCost
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
local
g
=
VgF
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
VgD
.
CallInPrisonFilter
,
tp
,
0
,
LOCATION_ORDER
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
VgF
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
VgD
.
CallInPrisonFilter
,
tp
,
LOCATION_ORDER
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetFirst
():
IsType
(
TYPE_MONSTER
)
then
if
g
:
GetFirst
():
IsType
(
TYPE_MONSTER
)
then
VgF
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
VgF
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
else
else
VgF
.
Sendto
(
LOCATION_DROP
,
g
,
REASON_EFFECT
)
VgF
.
Sendto
(
LOCATION_DROP
,
g
,
REASON_EFFECT
)
end
end
sg
=
Group
.
CreateGroup
()
elseif
val
==
2
then
elseif
val
==
2
then
VgF
.
DamageCost
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
VgF
.
DamageCost
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
local
tg
=
VgF
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
VgD
.
CallInPrisonFilter
,
tp
,
0
,
LOCATION_ORDER
,
2
,
2
,
nil
,
e
,
tp
)
local
tg
=
VgF
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
VgD
.
CallInPrisonFilter
,
tp
,
LOCATION_ORDER
,
0
,
2
,
2
,
nil
,
e
,
tp
)
local
g
=
tg
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_MONSTER
)
local
g
=
tg
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_MONSTER
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
VgF
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
VgF
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
...
@@ -1455,8 +1433,8 @@ function VgD.CallInPrisonOperation(val)
...
@@ -1455,8 +1433,8 @@ function VgD.CallInPrisonOperation(val)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
VgF
.
Sendto
(
LOCATION_DROP
,
tg
,
REASON_EFFECT
)
VgF
.
Sendto
(
LOCATION_DROP
,
tg
,
REASON_EFFECT
)
end
end
sg
=
Group
.
CreateGroup
()
end
end
sg
=
Group
.
CreateGroup
()
end
end
end
end
function
VgD
.
CallInPrisonFilter
(
c
,
e
,
tp
)
function
VgD
.
CallInPrisonFilter
(
c
,
e
,
tp
)
...
...
VgFuncLib.lua
View file @
74534a7a
...
@@ -56,7 +56,7 @@ function VgF.SequenceToGlobal(p,loc,seq)
...
@@ -56,7 +56,7 @@ function VgF.SequenceToGlobal(p,loc,seq)
end
end
if
loc
==
LOCATION_MZONE
then
if
loc
==
LOCATION_MZONE
then
if
seq
<=
6
then
if
seq
<=
6
then
return
0x0001
<<
(
16
*
p
+
seq
)
return
0x0001
<<
(
seq
)
else
else
return
0
return
0
end
end
...
...
c10203005.lua
View file @
74534a7a
...
@@ -31,7 +31,7 @@ function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
cm
.
con1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
and
vgf
.
RMonsterCondition
(
e
)
end
end
function
cm
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_Call
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_Call
)
...
...
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