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
7e1a9ec5
Commit
7e1a9ec5
authored
Sep 11, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6b57696f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
36 deletions
+9
-36
VgD.Lua
VgD.Lua
+1
-1
c10101005.lua
c10101005.lua
+1
-8
c10102002.lua
c10102002.lua
+2
-9
c10102003.lua
c10102003.lua
+2
-9
c10104003.lua
c10104003.lua
+2
-8
c10501082.lua
c10501082.lua
+1
-1
No files found.
VgD.Lua
View file @
7e1a9ec5
...
@@ -1242,7 +1242,7 @@ function VgD.ContinuousSpellOperation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -1242,7 +1242,7 @@ function VgD.ContinuousSpellOperation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
VgF
.
Sendto
(
LOCATION_ORDER
,
c
,
tp
,
POS_FACEUP_ATTACK
,
REASON_RULE
)
VgF
.
Sendto
(
LOCATION_ORDER
,
c
,
tp
,
POS_FACEUP_ATTACK
,
REASON_RULE
)
end
end
function
vgd
.
EffectTypeContinuousChangeAttack
(
c
,
m
,
typ
,
val
,
con
,
tg
,
loc_self
,
loc_op
,
reset
,
mc
)
function
VgD
.
EffectTypeContinuousChangeAttack
(
c
,
m
,
typ
,
val
,
con
,
tg
,
loc_self
,
loc_op
,
reset
,
mc
)
if
VgF
.
GetValueType
(
mc
)
~=
"Card"
then
mc
=
c
end
if
VgF
.
GetValueType
(
mc
)
~=
"Card"
then
mc
=
c
end
if
not
typ
then
typ
=
EFFECT_TYPE_SINGLE
end
if
not
typ
then
typ
=
EFFECT_TYPE_SINGLE
end
if
not
loc_self
then
loc_self
=
0
end
if
not
loc_self
then
loc_self
=
0
end
...
...
c10101005.lua
View file @
7e1a9ec5
...
@@ -2,14 +2,7 @@
...
@@ -2,14 +2,7 @@
local
cm
,
m
,
o
=
GetID
()
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
vgf
.
VgCard
(
c
)
vgf
.
VgCard
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
vgd
.
EffectTypeContinuousChangeAttack
(
c
,
m
,
EFFECT_TYPE_SINGLE
,
2000
,
cm
.
con
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetValue
(
2000
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
con
(
e
)
function
cm
.
con
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
...
...
c10102002.lua
View file @
7e1a9ec5
...
@@ -2,14 +2,7 @@ local cm,m,o=GetID()
...
@@ -2,14 +2,7 @@ local cm,m,o=GetID()
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
vgf
.
VgCard
(
c
)
vgf
.
VgCard
(
c
)
vgd
.
EffectTypeTrigger
(
c
,
m
,
nil
,
EFFECT_TYPE_SINGLE
,
EVENT_SPSUMMON_SUCCESS
,
cm
.
op
,
cm
.
cost
,
vgf
.
VSummonCondition
)
vgd
.
EffectTypeTrigger
(
c
,
m
,
nil
,
EFFECT_TYPE_SINGLE
,
EVENT_SPSUMMON_SUCCESS
,
cm
.
op
,
cm
.
cost
,
vgf
.
VSummonCondition
)
local
e1
=
Effect
.
CreateEffect
(
c
)
vgd
.
EffectTypeContinuousChangeAttack
(
c
,
m
,
EFFECT_TYPE_SINGLE
,
5000
,
cm
.
con
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
con2
)
e1
:
SetValue
(
5000
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
...
@@ -20,6 +13,6 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,6 +13,6 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_XMATERIAL
,
e
,
tp
,
vgf
.
RMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_XMATERIAL
,
e
,
tp
,
vgf
.
RMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
vgf
.
Sendto
(
LOCATION_OVERLAY
,
g
,
c
)
vgf
.
Sendto
(
LOCATION_OVERLAY
,
g
,
c
)
end
end
function
cm
.
con
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFlagEffectLabel
(
tp
,
FLAG_CONDITION
)
==
10102001
return
Duel
.
GetFlagEffectLabel
(
tp
,
FLAG_CONDITION
)
==
10102001
end
end
\ No newline at end of file
c10102003.lua
View file @
7e1a9ec5
...
@@ -2,16 +2,9 @@ local cm,m,o=GetID()
...
@@ -2,16 +2,9 @@ local cm,m,o=GetID()
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
vgf
.
VgCard
(
c
)
vgf
.
VgCard
(
c
)
vgd
.
EffectTypeTrigger
(
c
,
m
,
LOCATION_MZONE
,
EFFECT_TYPE_SINGLE
,
EVENT_SPSUMMON_SUCCESS
,
cm
.
op
,
nil
,
vgf
.
VSummonCondition
)
vgd
.
EffectTypeTrigger
(
c
,
m
,
LOCATION_MZONE
,
EFFECT_TYPE_SINGLE
,
EVENT_SPSUMMON_SUCCESS
,
cm
.
op
,
nil
,
vgf
.
VSummonCondition
)
local
e1
=
Effect
.
CreateEffect
(
c
)
vgd
.
EffectTypeContinuousChangeAttack
(
c
,
m
,
EFFECT_TYPE_SINGLE
,
5000
,
cm
.
con
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
con2
)
e1
:
SetValue
(
5000
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
con
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetFlagEffectLabel
(
tp
,
FLAG_CONDITION
)
local
ct
=
Duel
.
GetFlagEffectLabel
(
tp
,
FLAG_CONDITION
)
return
VgF
.
GetValueType
(
ct
)
==
"number"
and
ct
==
10102001
return
VgF
.
GetValueType
(
ct
)
==
"number"
and
ct
==
10102001
end
end
...
...
c10104003.lua
View file @
7e1a9ec5
...
@@ -5,14 +5,8 @@ function cm.initial_effect(c)
...
@@ -5,14 +5,8 @@ function cm.initial_effect(c)
--【自】:这个单位被「树角兽 拉提斯」RIDE时,将你的牌堆顶的1张卡公开,那张卡是等级2以下的单位卡的话,CALL到R上,不是的话,放置到你的灵魂里。
--【自】:这个单位被「树角兽 拉提斯」RIDE时,将你的牌堆顶的1张卡公开,那张卡是等级2以下的单位卡的话,CALL到R上,不是的话,放置到你的灵魂里。
vgd
.
BeRidedByCard
(
c
,
m
,
10104002
,
cm
.
operation
)
vgd
.
BeRidedByCard
(
c
,
m
,
10104002
,
cm
.
operation
)
--【永】【后列的R】:这个单位攻击的战斗中,这个单位的力量+5000。
--【永】【后列的R】:这个单位攻击的战斗中,这个单位的力量+5000。
local
e1
=
Effect
.
CreateEffect
(
c
)
vgd
.
EffectTypeContinuousChangeAttack
(
c
,
m
,
EFFECT_TYPE_SINGLE
,
5000
,
cm
.
con
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetValue
(
5000
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c10501082.lua
View file @
7e1a9ec5
...
@@ -4,7 +4,7 @@ function cm.initial_effect(c)
...
@@ -4,7 +4,7 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
AFFECT_OVERLAY_INSTEAD_WHEN_RIDE
)
e1
:
SetCode
(
AFFECT_
CODE_
OVERLAY_INSTEAD_WHEN_RIDE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
vgf
.
VMonsterCondition
(
e
)
return
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
vgf
.
VMonsterCondition
(
e
)
...
...
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