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
175e4655
Commit
175e4655
authored
Jul 08, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2cb6cb6e
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
33 additions
and
32 deletions
+33
-32
c10102003.lua
c10102003.lua
+1
-2
c10103003.lua
c10103003.lua
+1
-1
c10104002.lua
c10104002.lua
+1
-1
c10104003.lua
c10104003.lua
+1
-1
c10104008.lua
c10104008.lua
+1
-1
c10105015.lua
c10105015.lua
+2
-2
c10203001.lua
c10203001.lua
+3
-3
c10203003.lua
c10203003.lua
+4
-4
c10203005.lua
c10203005.lua
+2
-2
c10203011.lua
c10203011.lua
+3
-2
c10203016.lua
c10203016.lua
+3
-3
c10301001.lua
c10301001.lua
+1
-1
c10301003.lua
c10301003.lua
+3
-3
c10301009.lua
c10301009.lua
+1
-1
c10401002.lua
c10401002.lua
+1
-1
c10401053.lua
c10401053.lua
+1
-1
c10501064.lua
c10501064.lua
+4
-3
No files found.
c10102003.lua
View file @
175e4655
...
...
@@ -19,9 +19,8 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
return
(
c
:
IsSummonType
(
SUMMON_TYPE_RIDE
)
or
c
:
IsSummonType
(
SUMMON_TYPE_SELFRIDE
))
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
vgf
.
GetAvailableLocation
(
tp
)
&
0x4
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CALL
)
local
g
=
vgf
.
GetMatchingGroup
(
vgf
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
GetFirst
():
GetOverlayGroup
():
Select
(
tp
,
1
,
1
,
nil
)
local
g
=
vgf
.
GetMatchingGroup
(
vgf
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
GetFirst
():
GetOverlayGroup
():
FilterSelect
(
tp
,
vgf
.
IsCanBeCalled
,
1
,
1
,
nil
,
e
,
tp
,
nil
,
nil
,
0x4
)
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
,
0x4
)
vgf
.
OverlayFill
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
c10103003.lua
View file @
175e4655
...
...
@@ -16,7 +16,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
tc
=
vgf
.
ReturnCard
(
g
)
Duel
.
DisableShuffleCheck
()
if
tc
:
IsType
(
TYPE_MONSTER
)
then
if
vgf
.
IsCanBeCalled
(
tc
,
e
,
tp
)
then
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
else
vgf
.
Sendto
(
LOCATION_DROP
,
g
,
REASON_EFFECT
)
...
...
c10104002.lua
View file @
175e4655
...
...
@@ -13,7 +13,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
tc
=
vgf
.
ReturnCard
(
g
)
Duel
.
DisableShuffleCheck
()
if
tc
:
IsType
(
TYPE_MONSTER
)
then
if
vgf
.
IsCanBeCalled
(
tc
,
e
,
tp
)
then
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
else
vgf
.
Sendto
(
LOCATION_HAND
,
g
,
nil
,
REASON_EFFECT
)
...
...
c10104003.lua
View file @
175e4655
...
...
@@ -20,7 +20,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
tc
=
vgf
.
ReturnCard
(
g
)
Duel
.
DisableShuffleCheck
()
if
tc
:
IsType
(
TYPE_MONSTER
)
and
vgf
.
IsLevel
(
tc
,
0
,
1
,
2
)
then
if
vgf
.
IsCanBeCalled
(
tc
,
e
,
tp
)
and
vgf
.
IsLevel
(
tc
,
0
,
1
,
2
)
then
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
else
vgf
.
Sendto
(
LOCATION_OVERLAY
,
g
,
c
)
...
...
c10104008.lua
View file @
175e4655
...
...
@@ -11,7 +11,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
tc
=
vgf
.
ReturnCard
(
g
)
Duel
.
DisableShuffleCheck
()
if
tc
:
IsType
(
TYPE_MONSTER
)
then
if
vgf
.
IsCanBeCalled
(
tc
,
e
,
tp
)
then
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
else
vgf
.
Sendto
(
LOCATION_HAND
,
g
,
nil
,
REASON_EFFECT
)
...
...
c10105015.lua
View file @
175e4655
...
...
@@ -46,7 +46,7 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp)
if
ct
>
e
:
GetLabel
()
then
ct
=
e
:
GetLabel
()
end
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
cm
.
filter1
,
tp
,
0
,
LOCATION_ORDER
,
ct
,
ct
,
nil
,
e
,
tp
)
for
tc
in
vgf
.
Next
(
g
)
do
if
tc
:
IsType
(
TYPE_MONSTER
)
then
if
vgf
.
IsCanBeCalled
(
tc
,
e
,
tp
)
then
vgf
.
Sendto
(
LOCATION_MZONE
,
tc
,
0
,
tp
)
else
vgf
.
Sendto
(
LOCATION_DROP
,
tc
,
REASON_EFFECT
)
...
...
@@ -54,5 +54,5 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
filter1
(
c
,
e
,
tp
)
return
c
:
GetFlagEffect
(
FLAG_IMPRISON
)
>
0
return
c
:
GetFlagEffect
(
FLAG_IMPRISON
)
>
0
and
(
vgf
.
IsCanBeCalled
(
c
,
e
,
tp
)
or
not
c
:
IsType
(
TYPE_MONSTER
))
end
\ No newline at end of file
c10203001.lua
View file @
175e4655
...
...
@@ -13,7 +13,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
cm
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
cm
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
SUMMON_VALUE_REVOLT
,
tp
,
0x20
)
>
0
then
local
mg
=
Duel
.
GetOperatedGroup
()
vgd
.
TriggerCountUp
(
c
,
-
2
,
RESET_PHASE
+
PHASE_END
,
mg
)
...
...
@@ -23,8 +23,8 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
return
Duel
.
GetAttacker
()
==
c
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x76
)
and
c
:
IsType
(
TYPE_MONSTER
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x76
)
and
vgf
.
IsCanBeCalled
(
c
,
e
,
tp
)
end
function
cm
.
checkfilter
(
c
)
return
(
c
:
IsSummonType
(
SUMMON_TYPE_SELFRIDE
)
or
c
:
IsSummonType
(
SUMMON_TYPE_RIDE
))
and
c
:
IsLevelAbove
(
4
)
...
...
c10203003.lua
View file @
175e4655
...
...
@@ -14,7 +14,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
off
=
1
local
ops
=
{}
local
a
=
g
:
IsExists
(
cm
.
filter
,
1
,
nil
)
local
b
=
g
:
IsExists
(
cm
.
filter1
,
1
,
nil
,
tp
)
local
b
=
g
:
IsExists
(
cm
.
filter1
,
1
,
nil
,
e
,
tp
)
if
a
then
ops
[
off
]
=
1190
off
=
off
+
1
...
...
@@ -33,7 +33,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
g
:
RemoveCard
(
vgf
.
ReturnCard
(
sg
))
elseif
(
sel
==
1
and
a
and
b
)
or
(
sel
==
0
and
not
a
and
b
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CALL
)
local
sg
=
g
:
FilterSelect
(
tp
,
cm
.
filter1
,
1
,
1
,
nil
,
tp
)
local
sg
=
g
:
FilterSelect
(
tp
,
cm
.
filter1
,
1
,
1
,
nil
,
e
,
tp
)
vgf
.
Sendto
(
LOCATION_MZONE
,
sg
,
0
,
tp
)
g
:
RemoveCard
(
vgf
.
ReturnCard
(
sg
))
end
...
...
@@ -48,6 +48,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x77
)
end
function
cm
.
filter1
(
c
,
tp
)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
vgf
.
GetAvailableLocation
(
tp
)
>
0
function
cm
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
3
)
and
vgf
.
IsCanBeCalled
(
c
,
e
,
tp
)
end
\ No newline at end of file
c10203005.lua
View file @
175e4655
...
...
@@ -34,8 +34,8 @@ end
function
cm
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_Call
)
local
g
=
vgf
.
GetVMonster
(
tp
):
GetOverlayGroup
():
FilterSelect
(
tp
,
cm
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
,
0x20
,
POS_FACEDOWN_DEFENCE
)
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
SUMMON_TYPE_RIDE
,
tp
,
0x20
,
POS_FACEDOWN_DEFENCE
)
end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x202
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x202
)
and
vgf
.
IsCanBeCalled
(
c
,
e
,
tp
,
SUMMON_TYPE_RIDE
,
POS_FACEDOWN_DEFENCE
,
0x20
)
end
\ No newline at end of file
c10203011.lua
View file @
175e4655
...
...
@@ -8,6 +8,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
vgf
.
GetAvailableLocation
(
tp
)
<=
0
then
return
end
vgf
.
Sendto
(
LOCATION_MZONE
,
c
,
0
,
tp
)
if
vgf
.
IsCanBeCalled
(
c
,
e
,
tp
)
then
vgf
.
Sendto
(
LOCATION_MZONE
,
c
,
0
,
tp
)
end
end
\ No newline at end of file
c10203016.lua
View file @
175e4655
...
...
@@ -18,7 +18,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
FilterSelect
(
tp
,
cm
.
filter
,
0
,
1
,
nil
)
local
sg
=
g
:
FilterSelect
(
tp
,
cm
.
filter
,
0
,
1
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
then
vgf
.
Sendto
(
LOCATION_HAND
,
sg
,
nil
,
REASON_EFFECT
)
else
...
...
@@ -26,6 +26,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
function
cm
.
filter
(
c
)
return
c
:
IsLevelAbove
(
3
)
and
c
:
IsType
(
TYPE_MONSTER
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevelAbove
(
3
)
and
vgf
.
IsCanBeCalled
(
c
,
e
,
tp
)
end
\ No newline at end of file
c10301001.lua
View file @
175e4655
...
...
@@ -33,7 +33,7 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
bit
.
ReturnCount
(
zone
)
zone
=
bit
.
bor
(
zone
,
0xffffff00
)
if
ct
>
2
then
ct
=
2
end
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
0
,
ct
,
nil
,
TYPE_MONSTER
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CALL
,
e
,
tp
,
vgf
.
IsCanBeCalled
,
tp
,
LOCATION_HAND
,
0
,
0
,
ct
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
==
1
then
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
)
elseif
g
:
GetCount
()
==
2
then
...
...
c10301003.lua
View file @
175e4655
...
...
@@ -15,11 +15,11 @@ end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
vgf
.
GetAvailableLocation
(
tp
)
<=
0
then
return
end
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_Call
,
e
,
tp
,
cm
.
filter
,
tp
,
LOCATION_DROP
,
0
,
1
,
1
,
nil
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_Call
,
e
,
tp
,
cm
.
filter
,
tp
,
LOCATION_DROP
,
0
,
1
,
1
,
nil
,
e
,
tp
)
vgf
.
Sendto
(
LOCATION_MZONE
,
g
,
0
,
tp
,
nil
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
filter
(
c
)
return
c
:
IsLevel
(
c
,
0
,
1
)
and
c
:
IsType
(
TYPE_MONSTER
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
c
,
0
,
1
)
and
vgf
.
IsCanBeCalled
(
c
,
e
,
tp
)
end
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c10301009.lua
View file @
175e4655
...
...
@@ -11,7 +11,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DisableShuffleCheck
()
local
off
=
1
local
ops
=
{}
local
a
=
tc
:
IsType
(
TYPE_MONSTERS
)
and
vgf
.
GetAvailableLocation
(
tp
)
>
0
local
a
=
vgf
.
IsCanBeCalled
(
tc
,
e
,
tp
)
if
a
then
ops
[
off
]
=
1152
off
=
off
+
1
...
...
c10401002.lua
View file @
175e4655
...
...
@@ -29,7 +29,7 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
g
)
local
ct1
=
vgf
.
GetAvailableLocation
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CALL
)
local
sg
=
g
:
FilterSelect
(
tp
,
Card
.
IsType
,
0
,
ct1
,
nil
,
TYPE_MONSTER
)
local
sg
=
g
:
FilterSelect
(
tp
,
vgf
.
IsCanBeCalled
,
0
,
ct1
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
then
vgf
.
Sendto
(
LOCATION_MZONE
,
sg
,
0
,
tp
)
g
:
Sub
(
sg
)
...
...
c10401053.lua
View file @
175e4655
...
...
@@ -16,7 +16,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp,chk)
if
ct
>
0
then
Duel
.
DisableShuffleCheck
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CALL
)
local
sg
=
g
:
Select
(
tp
,
1
,
ct
,
nil
)
local
sg
=
g
:
FilterSelect
(
tp
,
vgf
.
IsCanBeCalled
,
0
,
ct
,
nil
,
e
,
tp
)
vgf
.
Sendto
(
LOCATION_MZONE
,
sg
,
0
,
tp
)
sg
=
Duel
.
GetOperatedGroup
()
vgf
.
AtkUp
(
c
,
sg
,
5000
)
...
...
c10501064.lua
View file @
175e4655
...
...
@@ -10,16 +10,17 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
local
c
=
e
:
GetHandler
()
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
DisableShuffleCheck
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CALL
)
local
sg
=
g
:
FilterSelect
(
tp
,
cm
.
filter
,
0
,
2
,
nil
)
local
sg
=
g
:
FilterSelect
(
tp
,
cm
.
filter
,
0
,
2
,
nil
,
e
,
tp
)
if
#
sg
>
0
then
vgf
.
Sendto
(
LOCATION_MZONE
,
c
,
0
,
tp
,
31
,
POS_FACEUP_ATTACK
,
0
)
end
Duel
.
ShuffleDeck
(
tp
)
end
function
cm
.
filter
(
c
)
return
not
c
:
IsRace
(
TRIGGER_NONE
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
not
c
:
IsRace
(
TRIGGER_NONE
)
and
vgf
.
IsCanBeCalled
(
c
,
e
,
tp
)
end
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