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
aa4ac186
Commit
aa4ac186
authored
Jul 14, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f5cc8415
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
37 deletions
+15
-37
c10202003.lua
c10202003.lua
+1
-1
vgd.lua
vgd.lua
+14
-36
No files found.
c10202003.lua
View file @
aa4ac186
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
Get
LabelObject
()
local
c
=
e
:
Get
Handler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanBeCalled
(
e
,
tp
)
then
vgf
.
Sendto
(
LOCATION_CIRCLE
,
c
,
0
,
tp
)
end
...
...
vgd.lua
View file @
aa4ac186
...
...
@@ -1513,50 +1513,28 @@ function VgD.Action.AbilityAutoRided(c, m, filter, op, cost, con, tg, id)
local
desc
=
VgF
.
Stringid
(
m
,
id
or
2
)
-- set effect
local
e
=
Effect
.
CreateEffect
(
c
)
e
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e
:
SetCode
(
EVENT_BE_MATERIAL
)
e
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e
:
SetDescription
(
desc
)
e
:
SetCode
(
EVENT_SPSUMMON
)
e
:
SetRange
(
LOCATION_SOUL
)
e
:
SetCondition
(
VgD
.
AbilityAutoRidedCondition
(
con
,
filter
))
e
:
SetOperation
(
VgD
.
AbilityAutoRidedOperation
(
desc
,
op
,
cost
,
tg
))
if
cost
then
e
:
SetCost
(
cost
)
end
if
tg
then
e
:
SetTarget
(
tg
)
end
if
op
then
e
:
SetOperation
(
op
)
end
c
:
RegisterEffect
(
e
)
return
e
end
function
VgD
.
AbilityAutoRidedCondition
(
con
,
filter
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
r
~=
REASON_RIDEUP
or
(
con
and
not
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
))
then
return
false
end
local
c
,
rc
=
e
:
GetHandler
(),
e
:
GetHandler
():
GetReasonCard
(
)
filter
=
filter
or
VgF
.
True
if
type
(
filter
)
==
"number"
then
return
rc
:
IsCode
(
filter
)
end
return
filter
(
rc
,
c
)
filter
=
vgf
.
GetValueType
(
filter
)
==
'function'
and
filter
or
vgf
.
GetValueType
(
filter
)
==
'number'
and
function
(
c
)
return
c
:
IsCode
(
filter
)
end
or
VgF
.
True
con
=
con
or
VgF
.
True
return
eg
:
GetCount
()
==
1
and
eg
:
GetFirst
():
GetOverlayGroup
():
IsContains
(
e
:
GetHandler
())
and
filter
(
eg
:
GetFirst
())
and
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
function
VgD
.
AbilityAutoRidedOperation
(
desc
,
op
,
cost
,
tg
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
typ
=
cost
and
EFFECT_TYPE_TRIGGER_O
or
EFFECT_TYPE_TRIGGER_F
local
e1
=
Effect
.
CreateEffect
(
rc
)
e1
:
SetDescription
(
desc
)
e1
:
SetType
(
typ
+
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabelObject
(
c
)
e1
:
SetRange
(
LOCATION_CIRCLE
)
e1
:
SetCondition
(
VgD
.
AbilityAutoRidedOpCondtion
)
if
cost
then
e1
:
SetCost
(
cost
)
end
if
tg
then
e1
:
SetTarget
(
tg
)
end
if
op
then
e1
:
SetOperation
(
op
)
end
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
)
end
end
function
VgD
.
AbilityAutoRidedOpCondtion
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetLabelObject
()
return
eg
:
GetFirst
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
GetOverlayGroup
():
IsContains
(
c
)
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