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
35a75fed
Commit
35a75fed
authored
Apr 11, 2024
by
whenmo
Committed by
GitHub
Apr 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
bbf7e7e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
10 deletions
+44
-10
README.md
README.md
+44
-10
No files found.
README.md
View file @
35a75fed
...
...
@@ -290,6 +290,12 @@ end
# [VgFuncLib函数库](VgFuncLib.lua)详解
常用参数解析
> **c : 要判断的卡**
>
> **e : 要判断的效果**
## 1.每个卡的必备
VgD库内的函数装封,每张可入卡组的卡必须注册
...
...
@@ -316,7 +322,7 @@ vgf.AddCodeList(c, ...)
参数注释
> **... :
可填入多个参数
**
> **... :
记述的卡名, 可填入多个参数, 如: vgf.AddCodeList(c, code1, code2)
**
范例 :
[
瓦尔里纳
](
c10101006.lua
)
...
...
@@ -345,12 +351,6 @@ vgf.RMonsterFilter(c)
vgf
.
RMonsterCondition
(
e
)
```
参数注释
> **c : 要判断的卡**
>
> **e : 要判断的效果**
> 实际上 : **vgf.VMonsterCondition(e) == vgf.VMonsterFilter(e:GetHandler())**
>
> 后防者的判断同理
...
...
@@ -381,12 +381,46 @@ end
## 5.等级的判断
用于判断
`自己场上的先导者等级`
是否
`大于等于
这个效果的持有者等级`
, 返回
`boolean`
值
用于判断
`自己场上的先导者等级`
是否
大于等于
`这张卡/
这个效果的持有者等级`
, 返回
`boolean`
值
```
lua
vgf
.
VgF
.
LvCondition
(
e
)
vgf
.
LvCondition
(
e_or_c
)
```
参数注释
> **e : 要判断的效果**
> **e_or_c : 要判断的效果或者卡**
## 6.等级的判断
用于判断
`这张卡的等级`
是否在
`...`
之中, 返回
`boolean`
值
```
lua
vgf
.
IsLevel
(
c
,
...
)
```
参数注释
> **... : 要判断的等级, 可填入多个参数, 如: vgf.IsLevel(c, 1, 2)**
范例 :
[
天枪的骑士 勒克斯
](
c10103002.lua
)
> **【永】【R】:你的回合中,你的等级3的单位有3个以上的话,这个单位获得『支援』的技能,力量+5000。**
```
lua
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
VgF
.
VgCard
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
SKILL_SUPPORT
)
e2
:
SetCondition
(
cm
.
condition
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
vgf
.
VMonsterCondition
(
e
)
and
Duel
.
IsExistingMatchingCard
(
vgf
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
,
3
)
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