--虚拟YouTuber 东北 切蒲英 function c33700388.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --atk local e6=Effect.CreateEffect(c) e6:SetDescription(aux.Stringid(33700388,0)) e6:SetCategory(CATEGORY_ATKCHANGE) e6:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE) e6:SetCode(EVENT_SPSUMMON_SUCCESS) e6:SetCost(c33700388.atkcost) e6:SetOperation(c33700388.atkop) c:RegisterEffect(e6) end function c33700388.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckLPCost(tp,2000) end local lp=Duel.GetLP(tp) local t={} local f=math.floor((lp)/1000) local l=2 while l<=f and l<=20 do t[l]=l*1000 l=l+1 end local announce=Duel.AnnounceNumber(tp,table.unpack(t)) Duel.PayLPCost(tp,announce) e:SetLabel(announce) e:GetHandler():SetHint(CHINT_NUMBER,announce) end function c33700388.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local ct=e:GetLabel() if c:IsFacedown() or not c:IsRelateToEffect(e) then return end local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetValue(e:GetLabel()) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_RECOVER) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetRange(LOCATION_MZONE) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetCountLimit(1) e2:SetLabel(ct) e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetCondition(c33700388.reccon) e2:SetTarget(c33700388.rectg) e2:SetOperation(c33700388.recop) c:RegisterEffect(e2) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e3:SetValue(1) e3:SetCondition(c33700388.con2) e3:SetReset(RESET_EVENT+RESETS_STANDARD) e3:SetLabel(ct) c:RegisterEffect(e3) local e4=Effect.CreateEffect(c) e4:SetType(EFFECT_TYPE_SINGLE) e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e4:SetRange(LOCATION_MZONE) e4:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e4:SetCondition(c33700388.con3) e4:SetReset(RESET_EVENT+RESETS_STANDARD) e4:SetLabel(ct) e4:SetValue(aux.tgoval) c:RegisterEffect(e4) local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(33700388,1)) e5:SetCategory(CATEGORY_TOGRAVE) e5:SetType(EFFECT_TYPE_IGNITION) e5:SetCountLimit(1) e5:SetRange(LOCATION_MZONE) e5:SetReset(RESET_EVENT+RESETS_STANDARD) e5:SetCondition(c33700388.con4) e5:SetTarget(c33700388.tgtg) e5:SetOperation(c33700388.tgop) e5:SetLabel(ct) c:RegisterEffect(e5) end function c33700388.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,0,LOCATION_ONFIELD+LOCATION_HAND,1,nil) end local g=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,0,LOCATION_ONFIELD+LOCATION_HAND,nil) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,g:GetCount(),0,0) end function c33700388.tgop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,0,LOCATION_ONFIELD+LOCATION_HAND,nil) Duel.SendtoGrave(g,REASON_EFFECT) end function c33700388.con4(e) return e:GetLabel()>=16000 end function c33700388.con3(e) return e:GetLabel()>=5000 end function c33700388.con2(e) return e:GetLabel()>=4000 end function c33700388.reccon(e,tp,eg,ep,ev,re,r,rp) return tp==Duel.GetTurnPlayer() and e:GetHandler():GetAttack()>0 and e:GetLabel()>=3000 end function c33700388.rectg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(e:GetHandler():GetAttack()/2) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,e:GetAttack()/2) end function c33700388.recop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) if not e:GetHandler():IsRelateToEffect(e) or e:GetHandler():IsFacedown() then return end local atk=e:GetHandler():GetAttack() Duel.Recover(p,atk/2,REASON_EFFECT) end