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
0a8cd9da
Commit
0a8cd9da
authored
Apr 04, 2024
by
jwyxym
Committed by
GitHub
Apr 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
0c5a4eff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
28 deletions
+27
-28
VgD.Lua
VgD.Lua
+21
-22
VgFuncLib.lua
VgFuncLib.lua
+1
-1
c10101001.lua
c10101001.lua
+5
-5
No files found.
VgD.Lua
View file @
0a8cd9da
...
...
@@ -137,33 +137,22 @@ function VgD.CallToR(c)
e1
:
SetOperation
(
VgD
.
CallOperation
)
c
:
RegisterEffect
(
e1
)
end
function
VgD
.
CallVal
(
zone
)
if
zone
>
0
then
return
function
(
e
,
c
)
return
0
,
zone
end
else
return
function
(
e
,
c
)
return
0
,
0x3f
end
end
end
function
VgD
.
CallCondition
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
e
:
GetHandlerPlayer
()
return
VgF
.
LvCondition
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_CALL
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
end
function
VgD
.
CallFilter
(
c
,
tp
,
zone
)
return
VgF
.
RMonsterFilter
(
c
)
and
zone
==
VgF
.
SequenceToGlobal
(
tp
,
c
:
GetLocation
(),
c
:
GetSequence
())
end
function
VgD
.
CallOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
zone
=
0
if
Duel
.
IsExistingMatchingCard
(
VgF
.
RMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
VgF
.
Stringid
(
VgID
,
7
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LEAVEONFIELD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
VgF
.
RMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
tc
then
zone
=
VgF
.
SequenceToGlobal
(
tp
,
tc
:
GetLocation
(),
tc
:
GetSequence
())
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
end
local
zone
=
Duel
.
SelectDisableField
(
tp
,
1
,
LOCATION_MZONE
,
0
,
nil
,
0x0000e0
)
if
Duel
.
IsExistingMatchingCard
(
VgD
.
CallFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
,
zone
)
then
local
tc
=
Duel
.
GetMatchingGroup
(
tp
,
VgD
.
CallFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
,
zone
):
GetFirst
()
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
end
e
:
SetValue
(
VgD
.
CallVal
(
zone
)
)
e
:
SetValue
(
function
()
return
0
,
zone
end
)
end
--战斗阶段
...
...
@@ -224,6 +213,14 @@ function VgD.MonsterBattle(c)
e7
:
SetCondition
(
VgD
.
SendToGCondition
)
e7
:
SetOperation
(
VgD
.
SendToGOperation
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e8
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e8
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e8
:
SetRange
(
LOCATION_GZONE
)
e8
:
SetOperation
(
VgD
.
GToGraveOperation
)
c
:
RegisterEffect
(
e8
)
--其他永续
local
e10
=
Effect
.
CreateEffect
(
c
)
e10
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -351,11 +348,13 @@ function VgD.SendToGOperation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Sendto
(
c
,
tp
,
LOCATION_GZONE
,
POS_FACEUP
,
REASON_EFFECT
)
local
def
=
c
:
GetDefense
()
if
def
==
0
then
Duel
.
RegisterFlagEffect
(
tp
,
DefenseEntirelyFlag
,
RESET_EVENT
+
EVENT_DAMAGE_STEP_END
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
DefenseEntirelyFlag
,
RESET_EVENT
+
EVENT_DAMAGE_STEP_END
,
0
,
1
)
else
VgF
.
AtkUp
(
c
,
bc
,
def
,
nil
)
end
Duel
.
BreakEffect
()
end
function
VgD
.
GToGraveOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
function
VgD
.
MonsterAttackAnnounceCondition
(
e
,
c
)
...
...
VgFuncLib.lua
View file @
0a8cd9da
...
...
@@ -194,7 +194,7 @@ function VgF.StarUp(c,g,val,reset)
end
function
VgF
.
IsAbleToGZone
(
c
)
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
c
:
IsAttribute
(
SKILL_BLOCK
)
return
c
:
IsAttribute
(
SKILL_BLOCK
)
and
VgF
.
IsSequence
(
c
,
0
,
4
)
end
return
c
:
IsLocation
(
LOCATION_HAND
)
end
...
...
c10101001.lua
View file @
0a8cd9da
--
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
vgd
.
Rule
(
c
)
vgd
.
RideUp
(
c
)
vgd
.
CallToR
(
c
)
vgd
.
MonsterBattle
(
c
)
vgd
.
CardTrigger
(
c
,
nil
)
VgD
.
Rule
(
c
)
VgD
.
RideUp
(
c
)
VgD
.
CallToR
(
c
)
VgD
.
MonsterBattle
(
c
)
VgD
.
CardTrigger
(
c
,
nil
)
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