Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-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
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
MyCard
ygopro-scripts
Commits
6dd58a06
Commit
6dd58a06
authored
Apr 12, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update counter
parent
622765d3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
26 deletions
+26
-26
c25920413.lua
c25920413.lua
+3
-3
c51192573.lua
c51192573.lua
+4
-4
c62437709.lua
c62437709.lua
+4
-4
c63253763.lua
c63253763.lua
+5
-5
c64160836.lua
c64160836.lua
+3
-3
c91070115.lua
c91070115.lua
+4
-4
c98719226.lua
c98719226.lua
+3
-3
No files found.
c25920413.lua
View file @
6dd58a06
...
@@ -64,7 +64,7 @@ end
...
@@ -64,7 +64,7 @@ end
function
c25920413
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25920413
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
c
:
AddCounter
(
0xe
,
1
)
c
:
AddCounter
(
0x
100
e
,
1
)
end
end
end
end
function
c25920413
.
adcon
(
e
)
function
c25920413
.
adcon
(
e
)
...
@@ -72,8 +72,8 @@ function c25920413.adcon(e)
...
@@ -72,8 +72,8 @@ function c25920413.adcon(e)
end
end
function
c25920413
.
adtg
(
e
,
c
)
function
c25920413
.
adtg
(
e
,
c
)
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
c
:
GetCounter
(
0xe
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
return
bc
and
c
:
GetCounter
(
0x
100
e
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
end
end
function
c25920413
.
adval
(
e
,
c
)
function
c25920413
.
adval
(
e
,
c
)
return
c
:
GetCounter
(
0xe
)
*-
300
return
c
:
GetCounter
(
0x
100
e
)
*-
300
end
end
c51192573.lua
View file @
6dd58a06
...
@@ -55,12 +55,12 @@ function c51192573.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -55,12 +55,12 @@ function c51192573.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0xe
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0x
100
e
,
1
)
end
end
function
c51192573
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51192573
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0xe
,
1
)
tc
:
AddCounter
(
0x
100
e
,
1
)
end
end
end
end
function
c51192573
.
adcon
(
e
)
function
c51192573
.
adcon
(
e
)
...
@@ -68,8 +68,8 @@ function c51192573.adcon(e)
...
@@ -68,8 +68,8 @@ function c51192573.adcon(e)
end
end
function
c51192573
.
adtg
(
e
,
c
)
function
c51192573
.
adtg
(
e
,
c
)
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
c
:
GetCounter
(
0xe
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
return
bc
and
c
:
GetCounter
(
0x
100
e
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
end
end
function
c51192573
.
adval
(
e
,
c
)
function
c51192573
.
adval
(
e
,
c
)
return
c
:
GetCounter
(
0xe
)
*-
300
return
c
:
GetCounter
(
0x
100
e
)
*-
300
end
end
c62437709.lua
View file @
6dd58a06
...
@@ -44,12 +44,12 @@ function c62437709.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -44,12 +44,12 @@ function c62437709.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0xe
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0x
100
e
,
1
)
end
end
function
c62437709
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62437709
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0xe
,
1
)
tc
:
AddCounter
(
0x
100
e
,
1
)
end
end
end
end
function
c62437709
.
flop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62437709
.
flop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -74,8 +74,8 @@ function c62437709.adcon(e)
...
@@ -74,8 +74,8 @@ function c62437709.adcon(e)
end
end
function
c62437709
.
adtg
(
e
,
c
)
function
c62437709
.
adtg
(
e
,
c
)
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
c
:
GetCounter
(
0xe
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
return
bc
and
c
:
GetCounter
(
0x
100
e
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
end
end
function
c62437709
.
adval
(
e
,
c
)
function
c62437709
.
adval
(
e
,
c
)
return
c
:
GetCounter
(
0xe
)
*-
300
return
c
:
GetCounter
(
0x
100
e
)
*-
300
end
end
c63253763.lua
View file @
6dd58a06
...
@@ -37,10 +37,10 @@ end
...
@@ -37,10 +37,10 @@ end
function
c63253763
.
spcon
(
e
,
c
)
function
c63253763
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsCanRemoveCounter
(
c
:
GetControler
(),
1
,
1
,
0xe
,
2
,
REASON_COST
)
and
Duel
.
IsCanRemoveCounter
(
c
:
GetControler
(),
1
,
1
,
0x
100
e
,
2
,
REASON_COST
)
end
end
function
c63253763
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c63253763
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
RemoveCounter
(
tp
,
1
,
1
,
0xe
,
2
,
REASON_COST
)
Duel
.
RemoveCounter
(
tp
,
1
,
1
,
0x
100
e
,
2
,
REASON_COST
)
end
end
function
c63253763
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c63253763
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
@@ -49,7 +49,7 @@ function c63253763.ctop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +49,7 @@ function c63253763.ctop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
tc
:
AddCounter
(
0xe
,
1
)
tc
:
AddCounter
(
0x
100
e
,
1
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
end
end
...
@@ -58,8 +58,8 @@ function c63253763.adcon(e)
...
@@ -58,8 +58,8 @@ function c63253763.adcon(e)
end
end
function
c63253763
.
adtg
(
e
,
c
)
function
c63253763
.
adtg
(
e
,
c
)
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
c
:
GetCounter
(
0xe
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
return
bc
and
c
:
GetCounter
(
0x
100
e
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
end
end
function
c63253763
.
adval
(
e
,
c
)
function
c63253763
.
adval
(
e
,
c
)
return
c
:
GetCounter
(
0xe
)
*-
300
return
c
:
GetCounter
(
0x
100
e
)
*-
300
end
end
c64160836.lua
View file @
6dd58a06
...
@@ -25,7 +25,7 @@ function c64160836.ctop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,7 @@ function c64160836.ctop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
while
tc
do
while
tc
do
if
tc
:
IsFaceup
()
and
tc
:
IsControler
(
1
-
tp
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsControler
(
1
-
tp
)
then
tc
:
AddCounter
(
0xe
,
1
)
tc
:
AddCounter
(
0x
100
e
,
1
)
end
end
tc
=
eg
:
GetNext
()
tc
=
eg
:
GetNext
()
end
end
...
@@ -35,8 +35,8 @@ function c64160836.adcon(e)
...
@@ -35,8 +35,8 @@ function c64160836.adcon(e)
end
end
function
c64160836
.
adtg
(
e
,
c
)
function
c64160836
.
adtg
(
e
,
c
)
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
c
:
GetCounter
(
0xe
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
return
bc
and
c
:
GetCounter
(
0x
100
e
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
end
end
function
c64160836
.
adval
(
e
,
c
)
function
c64160836
.
adval
(
e
,
c
)
return
c
:
GetCounter
(
0xe
)
*-
300
return
c
:
GetCounter
(
0x
100
e
)
*-
300
end
end
c91070115.lua
View file @
6dd58a06
...
@@ -27,8 +27,8 @@ function c91070115.initial_effect(c)
...
@@ -27,8 +27,8 @@ function c91070115.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c91070115
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c91070115
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
0
,
1
,
0xe
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
0
,
1
,
0x
100
e
,
1
,
REASON_COST
)
end
Duel
.
RemoveCounter
(
tp
,
0
,
1
,
0xe
,
1
,
REASON_COST
)
Duel
.
RemoveCounter
(
tp
,
0
,
1
,
0x
100
e
,
1
,
REASON_COST
)
end
end
function
c91070115
.
filter
(
c
)
function
c91070115
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
...
@@ -51,8 +51,8 @@ function c91070115.adcon(e)
...
@@ -51,8 +51,8 @@ function c91070115.adcon(e)
end
end
function
c91070115
.
adtg
(
e
,
c
)
function
c91070115
.
adtg
(
e
,
c
)
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
c
:
GetCounter
(
0xe
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
return
bc
and
c
:
GetCounter
(
0x
100
e
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
end
end
function
c91070115
.
adval
(
e
,
c
)
function
c91070115
.
adval
(
e
,
c
)
return
c
:
GetCounter
(
0xe
)
*-
300
return
c
:
GetCounter
(
0x
100
e
)
*-
300
end
end
c98719226.lua
View file @
6dd58a06
...
@@ -29,7 +29,7 @@ end
...
@@ -29,7 +29,7 @@ end
function
c98719226
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98719226
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetReasonCard
()
local
tc
=
e
:
GetHandler
():
GetReasonCard
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
then
tc
:
AddCounter
(
0xe
,
2
)
tc
:
AddCounter
(
0x
100
e
,
2
)
end
end
end
end
function
c98719226
.
adcon
(
e
)
function
c98719226
.
adcon
(
e
)
...
@@ -37,8 +37,8 @@ function c98719226.adcon(e)
...
@@ -37,8 +37,8 @@ function c98719226.adcon(e)
end
end
function
c98719226
.
adtg
(
e
,
c
)
function
c98719226
.
adtg
(
e
,
c
)
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
c
:
GetCounter
(
0xe
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
return
bc
and
c
:
GetCounter
(
0x
100
e
)
~=
0
and
bc
:
IsSetCard
(
0xc
)
end
end
function
c98719226
.
adval
(
e
,
c
)
function
c98719226
.
adval
(
e
,
c
)
return
c
:
GetCounter
(
0xe
)
*-
300
return
c
:
GetCounter
(
0x
100
e
)
*-
300
end
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