--Bigbang Raise local s,id,o=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CONTINUOUS_TARGET) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) --The equipped monster gains 1500 ATK/DEF, also it cannot attack. local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_EQUIP) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetValue(1500) c:RegisterEffect(e2) local e3=e2:Clone() e3:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e3) local e4=Effect.CreateEffect(c) e4:SetType(EFFECT_TYPE_EQUIP) e4:SetCode(EFFECT_CANNOT_ATTACK) c:RegisterEffect(e4) --Equip limit local e5=Effect.CreateEffect(c) e5:SetType(EFFECT_TYPE_SINGLE) e5:SetCode(EFFECT_EQUIP_LIMIT) e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e5:SetValue(1) c:RegisterEffect(e5) --If this card is destroyed: You can target 1 Bigbang Monster on the field; it gains 1000 ATK/DEF until the end of the next turn. local e6=Effect.CreateEffect(c) e6:SetCategory(CATEGORY_ATKCHANGE) e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e6:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e6:SetCode(EVENT_DESTROYED) e6:SetTarget(s.adtg) e6:SetOperation(s.adop) c:RegisterEffect(e6) --You can banish 3 monsters with different vibes from your GY; equip this card to 1 appropriate monster on the field. local e7=Effect.CreateEffect(c) e7:SetCategory(CATEGORY_EQUIP) e7:SetType(EFFECT_TYPE_IGNITION) e7:SetRange(LOCATION_GRAVE) e7:SetCountLimit(1,{id,0}) e7:SetCost(s.eqcost) e7:SetTarget(s.eqtg) e7:SetOperation(s.eqop) c:RegisterEffect(e7) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if e:GetHandler():IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Equip(tp,e:GetHandler(),tc) end end function s.adfilter(c) return c:IsType(TYPE_BIGBANG) and c:IsFaceup() end function s.adtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chk==0 then return Duel.IsExistingTarget(s.adfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.SelectTarget(tp,s.adfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) end function s.adop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) and tc:IsFaceup() then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END,2) e1:SetValue(1000) tc:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_UPDATE_DEFENSE) tc:RegisterEffect(e2) end end function s.costfilter(c) return c:HasVibe() and c:IsAbleToRemoveAsCost() end function s.dvcheck(g) return g:GetClassCount(Card.GetVibe)==#g end function s.eqcost(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_GRAVE,0,nil) if chk==0 then return g:GetClassCount(Card.GetVibe)>=3 end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local rg=g:SelectSubGroup(tp,s.dvcheck,false,3,3) Duel.Remove(rg,POS_FACEUP,REASON_COST) end function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(s.eqfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,c,tp) end Duel.SetOperationInfo(0,CATEGORY_EQUIP,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0) end function s.eqfilter(c,ec,tp) return c:IsFaceup() and ec:CheckEquipTarget(c) and ec:CheckUniqueOnField(tp,LOCATION_SZONE) and not ec:IsForbidden() end function s.eqop(e,tp,eg,ep,ev,re,r,rp) local ec=e:GetHandler() if ec:IsRelateToEffect(e) and aux.NecroValleyFilter()(ec) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(s.eqfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,ec,tp) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) local tg=Duel.SelectMatchingCard(tp,s.eqfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,ec,tp) Duel.HintSelection(tg) Duel.Equip(tp,ec,tg:GetFirst()) end end