Richiesta Script

« Older   Newer »
 
  Share  
.
  1. edo9300
        +1   +1   -1
     
    .
    Avatar

    Traduttore, scripter e developer di ygopro

    Group
    Vecchie Glorie
    Posts
    1,131
    Duel Points
    +105
    Location
    Casa mia

    Status
    Offline
    CITAZIONE (Aster Phoenix 94 @ 27/2/2016, 15:55) 
    No cacchio!

    ho preso twin vortex, ho messo remove/REMOVED al posto di "Destroy/destroyed", ma non succede più niente. Almeno prima distruggeva.

    Ma cos'altro devo cambiare? Credevo bastasse sostituire removed con destroy....

    ecco lo script di questa carta ;):
    --contrattack
    function c3003.initial_effect(c)
    --destroy
    local e1=Effect.CreateEffect(c)
    e1:SetCategory(CATEGORY_REMOVE)
    e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
    e1:SetType(EFFECT_TYPE_ACTIVATE)
    e1:SetCode(EVENT_FREE_CHAIN)
    e1:SetTarget(c3003.target)
    e1:SetOperation(c3003.operation)
    c:RegisterEffect(e1)
    end
    function c3003.desfilter(c)
    return c:IsFaceup() and c:IsSetCard(0x98) and c:IsAbleToRemove()
    and Duel.IsExistingTarget(Card.IsAbleToRemove,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
    end
    function c3003.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
    if chkc then return false end
    if chk==0 then return Duel.IsExistingTarget(c3003.desfilter,tp,LOCATION_MZONE,0,1,nil) end
    Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
    local g1=Duel.SelectTarget(tp,c3003.desfilter,tp,LOCATION_MZONE,0,1,1,nil)
    Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
    local g2=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_MZONE,1,1,g1:GetFirst())
    g1:Merge(g2)
    Duel.SetOperationInfo(0,CATEGORY_REMOVE,g1,g1:GetCount(),0,0)
    end
    function c3003.operation(e,tp,eg,ep,ev,re,r,rp)
    local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
    Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
    end
     
    Top
    .
15 replies since 23/2/2016, 21:32   120 views
  Share  
.