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
ce312228
Commit
ce312228
authored
Jul 27, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update card.islevel
parent
7122a4e1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
README.md
README.md
+1
-1
VgD.Lua
VgD.Lua
+2
-2
c10103002.lua
c10103002.lua
+3
-3
c10103003.lua
c10103003.lua
+2
-2
c10401044.lua
c10401044.lua
+2
-2
No files found.
README.md
View file @
ce312228
...
@@ -397,6 +397,6 @@ function cm.initial_effect(c)
...
@@ -397,6 +397,6 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
vgf
.
VMonsterCondition
(
e
)
and
vgf
.
IsExistingMatchingCard
(
vgf
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
,
3
)
return
vgf
.
VMonsterCondition
(
e
)
and
vgf
.
IsExistingMatchingCard
(
Card
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
,
3
)
end
end
```
```
VgD.Lua
View file @
ce312228
...
@@ -123,11 +123,11 @@ end
...
@@ -123,11 +123,11 @@ end
function
VgD
.
RideZeroCondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
VgD
.
RideZeroCondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
Duel
.
GetMatchingGroup
(
VgF
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
GetFirst
()
local
rc
=
Duel
.
GetMatchingGroup
(
VgF
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
GetFirst
()
if
rc
then
return
false
end
if
rc
then
return
false
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
VgF
.
IsLevel
,
tp
,
LOCATION_RIDE
,
0
,
nil
,
0
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsLevel
,
tp
,
LOCATION_RIDE
,
0
,
nil
,
0
)
return
VgF
.
RuleTurnCondtion
(
e
)
and
ct
>
0
and
VgF
.
RuleCardCondtion
(
e
)
return
VgF
.
RuleTurnCondtion
(
e
)
and
ct
>
0
and
VgF
.
RuleCardCondtion
(
e
)
end
end
function
VgD
.
RideZeroOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
VgD
.
RideZeroOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
VgF
.
IsLevel
,
tp
,
LOCATION_RIDE
,
0
,
nil
,
0
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsLevel
,
tp
,
LOCATION_RIDE
,
0
,
nil
,
0
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CALL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CALL
)
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c10103002.lua
View file @
ce312228
...
@@ -24,12 +24,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,12 +24,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
vgf
.
IsExistingMatchingCard
(
vgf
.
IsLevel
,
tp
,
LOCATION_HAND
,
0
,
3
,
nil
,
3
)
end
if
chk
==
0
then
return
vgf
.
IsExistingMatchingCard
(
Card
.
IsLevel
,
tp
,
LOCATION_HAND
,
0
,
3
,
nil
,
3
)
end
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CONFIRM
,
e
,
tp
,
vgf
.
IsLevel
,
tp
,
LOCATION_HAND
,
0
,
3
,
3
,
nil
,
3
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CONFIRM
,
e
,
tp
,
Card
.
IsLevel
,
tp
,
LOCATION_HAND
,
0
,
3
,
3
,
nil
,
3
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
end
end
function
cm
.
condition
(
e
,
c
)
function
cm
.
condition
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
vgf
.
RMonsterCondition
(
e
)
and
vgf
.
IsExistingMatchingCard
(
vgf
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
,
3
)
return
vgf
.
RMonsterCondition
(
e
)
and
vgf
.
IsExistingMatchingCard
(
Card
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
,
3
)
end
end
\ No newline at end of file
c10103003.lua
View file @
ce312228
...
@@ -6,8 +6,8 @@ function cm.initial_effect(c)
...
@@ -6,8 +6,8 @@ function cm.initial_effect(c)
vgd
.
EffectTypeIgnition
(
c
,
m
,
LOCATION_MZONE
,
cm
.
operation2
,
vgf
.
DamageCost
(
1
),
vgf
.
RMonsterCondition
,
nil
,
1
)
vgd
.
EffectTypeIgnition
(
c
,
m
,
LOCATION_MZONE
,
cm
.
operation2
,
vgf
.
DamageCost
(
1
),
vgf
.
RMonsterCondition
,
nil
,
1
)
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
vgf
.
IsExistingMatchingCard
(
vgf
.
IsLevel
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
,
3
)
end
if
chk
==
0
then
return
vgf
.
IsExistingMatchingCard
(
Card
.
IsLevel
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
,
3
)
end
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CONFIRM
,
e
,
tp
,
vgf
.
IsLevel
,
tp
,
LOCATION_HAND
,
0
,
2
,
2
,
nil
,
3
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_CONFIRM
,
e
,
tp
,
Card
.
IsLevel
,
tp
,
LOCATION_HAND
,
0
,
2
,
2
,
nil
,
3
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
end
end
...
...
c10401044.lua
View file @
ce312228
...
@@ -5,7 +5,7 @@ function cm.initial_effect(c)
...
@@ -5,7 +5,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
vgf
.
GetMatchingGroup
(
vgf
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
3
)
local
g
=
vgf
.
GetMatchingGroup
(
Card
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
3
)
for
tc
in
vgf
.
Next
(
g
)
do
for
tc
in
vgf
.
Next
(
g
)
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -18,5 +18,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,5 +18,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
vgf
.
IsExistingMatchingCard
(
vgf
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
,
3
)
and
vgf
.
RMonsterCondition
(
e
)
return
vgf
.
IsExistingMatchingCard
(
Card
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
,
3
)
and
vgf
.
RMonsterCondition
(
e
)
end
end
\ No newline at end of file
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