Skip to content

Commit 532bfd1

Browse files
committed
Update official cards
Added hints to some cards to be shown when the player has to target cards
1 parent 4f7b36d commit 532bfd1

File tree

6 files changed

+64
-64
lines changed

6 files changed

+64
-64
lines changed

official/c18954366.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
--優麗なる霊鏡
22
--Necroquip Prism
33
--Scripted by Naim
4-
54
local s,id=GetID()
65
function s.initial_effect(c)
7-
--Special 1 monster from hand
6+
--Special Summon 1 monster from hand
87
local e1=Effect.CreateEffect(c)
98
e1:SetDescription(aux.Stringid(id,0))
109
e1:SetCategory(CATEGORY_EQUIP+CATEGORY_SPECIAL_SUMMON)
@@ -30,6 +29,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
3029
local ft2=Duel.GetLocationCount(tp,LOCATION_SZONE)
3130
if not e:GetHandler():IsLocation(LOCATION_SZONE) then ft2=ft2-1 end
3231
if chk==0 then return ft1>0 and ft2>0 and Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
32+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
3333
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
3434
e:SetLabel(g:GetFirst():GetLevel())
3535
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
@@ -51,7 +51,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
5151
local e1=Effect.CreateEffect(c)
5252
e1:SetType(EFFECT_TYPE_SINGLE)
5353
e1:SetCode(EFFECT_EQUIP_LIMIT)
54-
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
54+
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
5555
e1:SetValue(s.eqlimit)
5656
e1:SetLabelObject(tc)
5757
tg:RegisterEffect(e1)
@@ -61,7 +61,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
6161
local e2=Effect.CreateEffect(c)
6262
e2:SetType(EFFECT_TYPE_EQUIP)
6363
e2:SetCode(EFFECT_UPDATE_ATTACK)
64-
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
64+
e2:SetReset(RESET_EVENT|RESETS_STANDARD)
6565
e2:SetValue(atk)
6666
tg:RegisterEffect(e2)
6767
--Cannot activate cards/effects with the same name
@@ -72,7 +72,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
7272
e3:SetTargetRange(1,0)
7373
e3:SetValue(s.aclimit)
7474
e3:SetLabelObject(tg)
75-
e3:SetReset(RESET_PHASE+PHASE_END)
75+
e3:SetReset(RESET_PHASE|PHASE_END)
7676
Duel.RegisterEffect(e3,tp)
7777
end
7878
end

official/c2102065.lua

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@
44
--Substitute ID
55
local s,id=GetID()
66
function s.initial_effect(c)
7-
--ATK gain if normal summoned
7+
--This card gains ATK equal to the ATK of a target until the end of this turn
88
local e1=Effect.CreateEffect(c)
99
e1:SetDescription(aux.Stringid(id,0))
1010
e1:SetCategory(CATEGORY_ATKCHANGE)
1111
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
12-
e1:SetRange(LOCATION_MZONE)
13-
e1:SetCountLimit(1,id)
1412
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
13+
e1:SetRange(LOCATION_MZONE)
1514
e1:SetCode(EVENT_SUMMON_SUCCESS)
15+
e1:SetCountLimit(1,id)
1616
e1:SetTarget(s.atktg)
1717
e1:SetOperation(s.atkop)
1818
c:RegisterEffect(e1)
19-
--Same as above, but if special summoned
2019
local e2=e1:Clone()
2120
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
2221
c:RegisterEffect(e2)
23-
--1000 ATK gain if sent to GY
22+
--1 WATER monster you control gains 1000 ATK until the end of this turn
2423
local e3=Effect.CreateEffect(c)
2524
e3:SetDescription(aux.Stringid(id,1))
2625
e3:SetCategory(CATEGORY_ATKCHANGE)
@@ -40,6 +39,7 @@ end
4039
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4140
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and s.atkfilter(chkc) end
4241
if chk==0 then return Duel.IsExistingTarget(s.atkfilter,tp,LOCATION_GRAVE,0,1,nil) end
42+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
4343
Duel.SelectTarget(tp,s.atkfilter,tp,LOCATION_GRAVE,0,1,1,nil)
4444
end
4545
--ATK up equal to targeted WATER monster in GY
@@ -51,7 +51,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
5151
e1:SetType(EFFECT_TYPE_SINGLE)
5252
e1:SetCode(EFFECT_UPDATE_ATTACK)
5353
e1:SetValue(tc:GetAttack())
54-
e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END)
54+
e1:SetReset(RESETS_STANDARD_DISABLE_PHASE_END)
5555
c:RegisterEffect(e1)
5656
end
5757
end
@@ -64,7 +64,8 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
6464
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end
6565
if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil) end
6666
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
67-
Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil)
67+
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil)
68+
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,g,1,tp,1000)
6869
end
6970
--Targeted monster gains 1000 ATK until end of turn
7071
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
@@ -74,7 +75,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
7475
e1:SetType(EFFECT_TYPE_SINGLE)
7576
e1:SetCode(EFFECT_UPDATE_ATTACK)
7677
e1:SetValue(1000)
77-
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
78+
e1:SetReset(RESETS_STANDARD_PHASE_END)
7879
tc:RegisterEffect(e1)
7980
end
8081
end

official/c28806532.lua

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
--Scripted by Eerie Code
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--place
6+
--Place 2 "The Weather" Spells/Traps face-up in your Spell & Trap Zone
77
local e1=Effect.CreateEffect(c)
88
e1:SetDescription(aux.Stringid(id,0))
99
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
10-
e1:SetCode(EVENT_TO_GRAVE)
1110
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
11+
e1:SetCode(EVENT_TO_GRAVE)
1212
e1:SetRange(LOCATION_MZONE)
1313
e1:SetCountLimit(1,id)
1414
e1:SetCondition(s.tfcon)
1515
e1:SetTarget(s.tftg)
1616
e1:SetOperation(s.tfop)
1717
c:RegisterEffect(e1)
18-
--spsummon
18+
--Special Summon this banished card
1919
local e2=Effect.CreateEffect(c)
2020
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
2121
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
@@ -34,24 +34,25 @@ function s.initial_effect(c)
3434
e3:SetLabelObject(e2)
3535
c:RegisterEffect(e3)
3636
end
37-
s.listed_series={0x109}
37+
s.listed_series={SET_THE_WEATHER}
3838
function s.tfcfilter(c,tp)
39-
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) and c:IsPreviousSetCard(0x109) and c:IsPreviousLocation(LOCATION_ONFIELD)
39+
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) and c:IsPreviousSetCard(SET_THE_WEATHER) and c:IsPreviousLocation(LOCATION_ONFIELD)
4040
end
4141
function s.tfcon(e,tp,eg,ep,ev,re,r,rp)
4242
return eg:IsExists(s.tfcfilter,1,e:GetHandler(),tp)
4343
end
4444
function s.tffilter(c,tp)
45-
return c:IsSpellTrap() and c:IsSetCard(0x109) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
46-
and not c:IsType(TYPE_FIELD)
45+
return c:IsSpellTrap() and c:IsSetCard(SET_THE_WEATHER) and not c:IsForbidden()
46+
and c:CheckUniqueOnField(tp) and not c:IsType(TYPE_FIELD)
4747
end
4848
function s.tftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4949
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.tffilter(chkc,tp) end
5050
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
5151
and Duel.IsExistingTarget(s.tffilter,tp,LOCATION_GRAVE,0,1,nil,tp) end
5252
local ct=math.min(Duel.GetLocationCount(tp,LOCATION_SZONE),2)
53+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
5354
local g=Duel.SelectTarget(tp,s.tffilter,tp,LOCATION_GRAVE,0,1,ct,nil,tp)
54-
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,g,#g,0,0)
55+
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,g,#g,tp,0)
5556
end
5657
function s.tfop(e,tp,eg,ep,ev,re,r,rp)
5758
local g=Duel.GetTargetCards(e)
@@ -71,9 +72,9 @@ function s.spreg(e,tp,eg,ep,ev,re,r,rp)
7172
if not re then return end
7273
local c=e:GetHandler()
7374
local rc=re:GetHandler()
74-
if c:IsReason(REASON_COST) and rc:IsSetCard(0x109) then
75+
if c:IsReason(REASON_COST) and rc:IsSetCard(SET_THE_WEATHER) then
7576
e:SetLabel(Duel.GetTurnCount()+1)
76-
c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,2)
77+
c:RegisterFlagEffect(id,RESETS_STANDARD_PHASE_END,0,2)
7778
end
7879
end
7980
function s.spcon(e,tp,eg,ep,ev,re,r,rp)

official/c33103459.lua

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
--EMコン
2+
--Performapal Corn
23
local s,id=GetID()
34
function s.initial_effect(c)
4-
--to hand
5+
--Change both it this card and a "Perfomapal" monster you control to Defense Position, and if you do, add 1 "Odd-Eyes" monster from your Deck to your hand
56
local e1=Effect.CreateEffect(c)
67
e1:SetDescription(aux.Stringid(id,0))
78
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
89
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
910
e1:SetType(EFFECT_TYPE_IGNITION)
1011
e1:SetRange(LOCATION_MZONE)
1112
e1:SetCountLimit(1)
12-
e1:SetCondition(s.thcon)
13+
e1:SetCondition(function(e) return e:GeHandler():HasFlagEffect(id) end)
1314
e1:SetTarget(s.thtg)
1415
e1:SetOperation(s.thop)
1516
c:RegisterEffect(e1)
16-
--lp recover
17+
--Gain 500 LP
1718
local e2=Effect.CreateEffect(c)
1819
e2:SetDescription(aux.Stringid(id,1))
1920
e2:SetCategory(CATEGORY_RECOVER)
2021
e2:SetType(EFFECT_TYPE_QUICK_O)
2122
e2:SetCode(EVENT_FREE_CHAIN)
2223
e2:SetRange(LOCATION_GRAVE)
23-
e2:SetCondition(s.lpcon)
24+
e2:SetCondition(function(e,tp) return Duel.IsTurnPlayer(1-tp) end)
2425
e2:SetCost(s.lpcost)
2526
e2:SetTarget(s.lptg)
2627
e2:SetOperation(s.lpop)
@@ -39,23 +40,21 @@ function s.initial_effect(c)
3940
Duel.RegisterEffect(ge2,0)
4041
end)
4142
end
42-
s.listed_series={0x9f,0x99}
43+
s.listed_series={SET_PERFORMAPAL,SET_ODD_EYES}
4344
s.listed_names={id}
44-
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
45-
return e:GetHandler():GetFlagEffect(id)~=0
46-
end
4745
function s.filter(c)
48-
return c:IsFaceup() and c:IsSetCard(0x9f) and c:IsAttackBelow(1000)
46+
return c:IsFaceup() and c:IsSetCard(SET_PERFORMAPAL) and c:IsAttackBelow(1000)
4947
and c:IsPosition(POS_FACEUP_ATTACK) and c:IsCanChangePosition()
5048
end
5149
function s.thfilter(c)
52-
return c:IsSetCard(0x99) and c:IsMonster() and c:IsAbleToHand()
50+
return c:IsSetCard(SET_ODD_EYES) and c:IsMonster() and c:IsAbleToHand()
5351
end
5452
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
5553
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) and chkc~=e:GetHandler() end
5654
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil)
5755
and e:GetHandler():IsPosition(POS_FACEUP_ATTACK)
5856
and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end
57+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
5958
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
6059
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
6160
end
@@ -74,10 +73,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
7473
end
7574
end
7675
function s.cfilter(c)
77-
return c:IsSetCard(0x9f) and c:IsMonster() and c:IsAbleToRemoveAsCost() and not c:IsCode(id)
78-
end
79-
function s.lpcon(e,tp,eg,ep,ev,re,r,rp)
80-
return Duel.GetTurnPlayer()~=tp
76+
return c:IsSetCard(SET_PERFORMAPAL) and c:IsMonster() and c:IsAbleToRemoveAsCost() and not c:IsCode(id)
8177
end
8278
function s.lpcost(e,tp,eg,ep,ev,re,r,rp,chk)
8379
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0)
@@ -96,4 +92,4 @@ end
9692
function s.lpop(e,tp,eg,ep,ev,re,r,rp)
9793
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
9894
Duel.Recover(p,d,REASON_EFFECT)
99-
end
95+
end

official/c34449261.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
--融合死円舞曲
2+
--Fusion Fright Waltz
23
local s,id=GetID()
34
function s.initial_effect(c)
45
--Activate
56
local e1=Effect.CreateEffect(c)
7+
e1:SetDescription(aux.Stringid(id,0))
68
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
79
e1:SetType(EFFECT_TYPE_ACTIVATE)
810
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
@@ -11,9 +13,9 @@ function s.initial_effect(c)
1113
e1:SetOperation(s.activate)
1214
c:RegisterEffect(e1)
1315
end
14-
s.listed_series={0xad}
16+
s.listed_series={SET_FRIGHTFUR}
1517
function s.filter1(c,tp)
16-
return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsSetCard(0xad)
18+
return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsSetCard(SET_FRIGHTFUR)
1719
and Duel.IsExistingTarget(s.filter2,tp,0,LOCATION_MZONE,1,nil,tp,c)
1820
end
1921
function s.filter2(c,tp,tc)
@@ -27,7 +29,9 @@ end
2729
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
2830
if chkc then return false end
2931
if chk==0 then return Duel.IsExistingTarget(s.filter1,tp,LOCATION_MZONE,0,1,nil,tp) end
32+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
3033
local g1=Duel.SelectTarget(tp,s.filter1,tp,LOCATION_MZONE,0,1,1,nil,tp)
34+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
3135
local g2=Duel.SelectTarget(tp,s.filter2,tp,0,LOCATION_MZONE,1,1,nil,tp,g1:GetFirst())
3236
g1:Merge(g2)
3337
local g=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,g1)
@@ -52,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
5256
if dg:IsExists(aux.FilterEqualFunction(Card.GetPreviousControler,1-tp),1,nil) then Duel.Damage(1-tp,dam,REASON_EFFECT,true) end
5357
Duel.RDComplete()
5458
end
55-
end
59+
end

0 commit comments

Comments
 (0)