Commit 34e7b9a2 authored by TanakaKotoha's avatar TanakaKotoha

strings fix

parent d3af8e25
No preview for this file type
--祝祭初学
local m=14140010
local cm=_G["c"..m]
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TRAP_ACT_IN_HAND)
e1:SetCondition(function(e)
return not Duel.IsExistingMatchingCard(function(c) return not c:IsSetCard(0x360) and c:IsFaceup() end,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end)
e1:SetValue(1)
c:RegisterEffect(e1)
local e1=Effect.CreateEffect(c)
e1:SetDescription(m*16+1)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(function()
local ph=Duel.GetCurrentPhase()
return ph>PHASE_MAIN1 and ph<PHASE_MAIN2
end)
e1:SetTarget(cm.xyztg)
e1:SetOperation(cm.xyzop)
c:RegisterEffect(e1)
end
function cm.spfilter1(c,e,tp)
return c:IsSetCard(0x360) and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetMZoneCount(tp)>0))
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local g=Duel.GetMatchingGroup(cm.spfilter1,tp,LOCATION_DECK,0,nil,e,tp)
return g:GetClassCount(Card.GetCode)>=3
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(cm.spfilter1,tp,LOCATION_DECK,0,nil)
if g:GetClassCount(Card.GetCode)>=3 then
local cg=Group.CreateGroup()
for i=1,3 do
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF)
local sg=g:Select(tp,1,1,nil)
g:Remove(Card.IsCode,nil,sg:GetFirst():GetCode())
cg:Merge(sg)
end
Duel.ConfirmCards(1-tp,cg)
Duel.ShuffleDeck(tp)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_OPPO)
local tg=cg:Select(1-tp,1,1,nil)
Duel.ConfirmCards(tp,cg)
local tc=tg:GetFirst()
Duel.Hint(HINT_CARD,0,tc:GetOriginalCode())
local b1=tc:IsAbleToHand()
local b2=tc:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetMZoneCount(tp)>0
local op
if b1 and b2 then
op=Duel.SelectOption(tp,m*16,m*16+1)
elseif b1 and not b2 then
op=Duel.SelectOption(tp,m*16)
elseif b2 and not b2 then
op=Duel.SelectOption(tp,m*16+1)+1
end
if op==0 then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
elseif op==1 then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
Duel.ShuffleDeck(tp)
end
end
function cm.xyzfilter(c)
if not c:IsSetCard(0x360) then return false end
return c:IsXyzSummonable(nil) or c:IsSynchroSummonable(nil)
end
function cm.xyztg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.xyzfilter,tp,LOCATION_EXTRA,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function cm.xyzop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,LOCATION_EXTRA,0,nil)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=g:Select(tp,1,1,nil)
Duel.SpecialSummonRule(tp,tg:GetFirst())
end
end
\ No newline at end of file
......@@ -11,6 +11,7 @@
#葱喵 ? 9 0xbb0-0xbbf
!setname 0xbb1 葱喵
!setname 0x1bb1 投影魔术
!setname 0x2bb1 葱喵亲卫队
#娜娜 119724848 10 0x200-0x20f
!setname 0xa200 绀珠传
......@@ -67,7 +68,7 @@
#金星 1564810631 52 0x360-0x36f
#豚马 1033851949 82 0x220-0x22f
!setname 0x3220 架空
!setname 0x1212 架空
#Astral 937868195 99 0x950-0x95f
!setname 0x955 天空漫步者
......@@ -228,8 +229,8 @@
!setname 0x17f2 格莱亚斯
!setname 0x27f2 雷维翁
!setname 0x47f2 冰狱冥河
!setname 0x87f2 玛纳
!setname 0xf7f2 玛纳历亚
!setname 0x37f4 玛纳
!setname 0x77f4 玛纳历亚
!setname 0x17f3 交响型
!setname 0x27f3 暗堕型
!setname 0x47f3 王位
......@@ -272,6 +273,7 @@
#lulu🦌 809229824 214 0xc20-c2f
!setname 0xc20 露文律
!setname 0xc21 流雾麟
!setname 0x3c25 戚晚秋
!setname 0x6c25 听春零
!setname 0x9c25 桃雪霖
......@@ -281,8 +283,12 @@
!setname 0x5490 艺形魔
!setname 0x495 玲珑
!setname 0x3495 玲珑法师
!setname 0x5495 玲珑术
!setname 0x494 灵子殖装
#烩焗 2510495719 220 0xfff
!setname 0xfff 从者 △
#兔锅 1874883039 222 (+0x50f)
#named_with_Valhalla 瓦尔哈拉
#named_with_Spar 晶石
......@@ -318,6 +324,7 @@
#TaxingCorn 1502312539 329 0xa10-0xa1f
!setname 0xaa12 破恒者
!setname 0x205 螺旋钻头
#萌萌尺酱 626386490 333 0x550-0x55f
!setname 0x550 造神计划
......@@ -369,6 +376,7 @@
!setname 0x6440 Protoform
!setname 0x441 GUARDIAN
!setname 0x442 动物朋友
!setname 0x3442 动物朋友 PPP
!setname 0x443 霓火
!setname 0x444 天降妹抖
!setname 0x445 虚拟YouTuber
......@@ -410,6 +418,8 @@
!setname 0xf16 降临
!setname 0xf17 刻兽
!setname 0xf18 究极异兽
!setname 0xf24 之蓝
!setname 0x1f24 睿智之蓝
!setname 0xdf1d 一人千面
#白苍圣一 673702667 444 0x900-0x90f
......@@ -481,6 +491,7 @@
!setname 0x9b23 军团
!setname 0xab23 两仪式
!setname 0xcb23 圣白莲
!setname 0x3b24 天符
!setname 0x6b25 佐仓杏子
!setname 0xcb25 鹿目圆香
!setname 0x3b26 天空的水晶部队
......@@ -514,7 +525,7 @@
!setname 0x9da1 幻念
!setname 0xcda1 二重阴影
!setname 0xada1 律歌
!setname 0xda2 时终
!setname 0x3da2 时终
!setname 0x5da2 雾落
!setname 0x6da2 终景
!setname 0xada2 流忆碎景
......@@ -560,6 +571,7 @@
#月月 644039032 666 0x660-0x66f global:prim
!setname 0x665 忘却之海
!setname 0x666 AIW
!setname 0x777 777
#小K 1318052139 669 0x370-0x37f
!setname 0x371 虚幻法师
......@@ -599,6 +611,7 @@
!setcounter 0x9c0 露西菲尼亚指示物
!setname 0xa9c0 大罪之器
!setname 0xb9c0 Evillious
!setname 0xc9c0 LapisLazuli
#Senya_name_with_difficulty 难题
#Sekka_name_with_lap LapisLazuli
......@@ -627,7 +640,7 @@
!setname 0x293 布加拉提
!setname 0x295 神迹
!setname 0x296 幻晶兽
!setname 0x297 亡灵
!setname 0x297 亡灵舰队
!setname 0x29b 界王
!setname 0x29c 邪界幻灵
!setname 0x29d 植占
......@@ -648,7 +661,7 @@
#Just BLACK 952 0x520-0x52f
!setname 0x9520 伊芙
!setname 0x9521 指令
!setname 0x9527 ???
!setname 0x9527 亚里亚
!setname 0x9528 机动
#Mary·Guertena 1316757130 983 0xad0-0xadf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment