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
5be607e1
Commit
5be607e1
authored
Apr 20, 2024
by
k3_the_failure
Committed by
GitHub
Apr 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update VgD.Lua
parent
ec2a30d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
VgD.Lua
VgD.Lua
+41
-0
No files found.
VgD.Lua
View file @
5be607e1
...
@@ -730,6 +730,17 @@ function VgD.ResetOperation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -730,6 +730,17 @@ function VgD.ResetOperation(e,tp,eg,ep,ev,re,r,rp)
end
end
--指令卡
--指令卡
---使c可以作为指令卡发动。
---@param c Card 要操作的卡
---@param m integer 指示脚本的整数。cxxx的脚本应填入xxx。cm的脚本应填入m。
---@param op function 作为指令卡的效果
---@param con function 作为指令卡的发动条件
---@param specialchk any 未知。请资讯群主。
---@param num1 any 未知。请资讯群主。
---@param num2 any 未知。请资讯群主。
---@param num3 any 未知。请资讯群主。
---@param num4 any 未知。请资讯群主。
---@param num5 any 未知。请资讯群主。
function
VgD
.
SpellActivate
(
c
,
m
,
op
,
con
,
cost
)
function
VgD
.
SpellActivate
(
c
,
m
,
op
,
con
,
cost
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
if
m
then
e1
:
SetDescription
(
VgF
.
Stringid
(
m
,
0
))
end
if
m
then
e1
:
SetDescription
(
VgF
.
Stringid
(
m
,
0
))
end
...
@@ -798,6 +809,14 @@ function VgD.SpellOperation(op)
...
@@ -798,6 +809,14 @@ function VgD.SpellOperation(op)
if
op2
then
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
true
)
end
if
op2
then
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
true
)
end
end
end
end
end
---当c被卡号为code的卡Ride时触发的效果。
---@param c Card 被Ride的卡
---@param m integer 指示脚本的整数。cxxx的脚本应填入xxx。cm的脚本应填入m。
---@param code integer Ride的卡
---@param op function 触发的效果
---@param cost function 效果的费用
---@param con function 效果的条件
---@param tg function 未知。请资讯群主。
function
VgD
.
BeRidedByCard
(
c
,
m
,
code
,
op
,
cost
,
con
,
tg
)
function
VgD
.
BeRidedByCard
(
c
,
m
,
code
,
op
,
cost
,
con
,
tg
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -839,6 +858,18 @@ function VgD.BeRidedByCardOpCondtion(e,tp,eg,ep,ev,re,r,rp)
...
@@ -839,6 +858,18 @@ function VgD.BeRidedByCardOpCondtion(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
GetFirst
()
==
e
:
GetHandler
()
return
eg
:
GetFirst
()
==
e
:
GetHandler
()
end
end
---当c在loc时,code时点被触发时执行的效果。
---@param c Card 要触发效果的卡
---@param m integer 指示脚本的整数。cxxx的脚本应填入xxx。cm的脚本应填入m。
---@param loc integer 发动时所处的位置
---@param typ integer 若是自己状态变化引发,则填EFFECT_TYPE_SINGLE;<br>若是场上任意一卡状态变化引发,则填EFFECT_TYPE_FIELD。
---@param code integer 触发的时点
---@param op function 触发的效果
---@param cost function 效果的费用
---@param con function 效果触发的条件
---@param tg function 未知。请资讯群主。
---@param count integer 指示效果在同一回合内最多发动的次数
---@param property integer 指示效果的特殊属性。如确有必要填,请咨询群主。
function
VgD
.
EffectTypeTrigger
(
c
,
m
,
loc
,
typ
,
code
,
op
,
cost
,
con
,
tg
,
count
,
property
,
stringid
)
function
VgD
.
EffectTypeTrigger
(
c
,
m
,
loc
,
typ
,
code
,
op
,
cost
,
con
,
tg
,
count
,
property
,
stringid
)
local
type2
=
EFFECT_TYPE_TRIGGER_F
local
type2
=
EFFECT_TYPE_TRIGGER_F
if
VgF
.
GetValueType
(
cost
)
==
"function"
then
type2
=
EFFECT_TYPE_TRIGGER_O
end
if
VgF
.
GetValueType
(
cost
)
==
"function"
then
type2
=
EFFECT_TYPE_TRIGGER_O
end
...
@@ -859,6 +890,16 @@ function VgD.EffectTypeTrigger(c,m,loc,typ,code,op,cost,con,tg,count,property,st
...
@@ -859,6 +890,16 @@ function VgD.EffectTypeTrigger(c,m,loc,typ,code,op,cost,con,tg,count,property,st
if
VgF
.
GetValueType
(
op
)
==
"function"
then
e1
:
SetOperation
(
op
)
end
if
VgF
.
GetValueType
(
op
)
==
"function"
then
e1
:
SetOperation
(
op
)
end
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
---当c在loc时,可以发动的【起】效果。
---@param c Card 要触发效果的卡
---@param m integer 指示脚本的整数。cxxx的脚本应填入xxx。cm的脚本应填入m。
---@param loc integer 发动时所处的位置
---@param op function 触发的效果
---@param cost function 效果的费用
---@param con function 效果触发的条件
---@param tg function 未知。请资讯群主。
---@param count integer 指示效果在同一回合内最多发动的次数
---@param property integer 指示效果的特殊属性。如确有必要填,请咨询群主。
function
VgD
.
EffectTypeIgnition
(
c
,
m
,
loc
,
op
,
cost
,
con
,
tg
,
count
,
property
,
stringid
)
function
VgD
.
EffectTypeIgnition
(
c
,
m
,
loc
,
op
,
cost
,
con
,
tg
,
count
,
property
,
stringid
)
if
not
loc
then
loc
=
LOCATION_MZONE
end
if
not
loc
then
loc
=
LOCATION_MZONE
end
if
not
stringid
then
stringid
=
1
end
if
not
stringid
then
stringid
=
1
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