YGOPRO Forum

Welcome Guest! To enable all features please try to register or login.
Options
Go to last post Go to first unread
Vincado  
#1 Posted : Tuesday, April 17, 2018 2:46:26 AM(UTC)
Vincado

Rank: Newbie

Joined: 2/22/2016(UTC)
Posts: 23

Thanks: 2 times
Can someone make me a script with gatling dragon, but with banishing monster from graveyard than destroy?
Katsunahido  
#2 Posted : Thursday, April 19, 2018 7:25:56 AM(UTC)
Katsunahido

Rank: Newbie

Joined: 12/24/2017(UTC)
Posts: 5

I think simply changing these parts from Gatling Dragon's script could work:

Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) to Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
and
Duel.Destroy(dg,REASON_EFFECT) to Duel.Remove(dg,nil,REASON_EFFECT)
Valossa  
#3 Posted : Thursday, April 19, 2018 1:40:28 PM(UTC)
Valossa

Rank: Advanced Member

Joined: 2/19/2015(UTC)
Posts: 518

Thanks: 40 times
Was thanked: 8 time(s) in 8 post(s)
dont use nil in Duel.Remove, this willl cause the banishing face-down
Vincado  
#4 Posted : Friday, April 20, 2018 12:14:43 PM(UTC)
Vincado

Rank: Newbie

Joined: 2/22/2016(UTC)
Posts: 23

Thanks: 2 times
Originally Posted by: Katsunahido Go to Quoted Post
I think simply changing these parts from Gatling Dragon's script could work:

Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) to Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
and
Duel.Destroy(dg,REASON_EFFECT) to Duel.Remove(dg,nil,REASON_EFFECT)


i already do that, here
function c235.initial_effect(c)

--fusion material

c:EnableReviveLimit()

aux.AddFusionProcCode2(c,4035199,55784832,true,true)

--destroy

local e1=Effect.CreateEffect(c)

e1:SetDescription(aux.Stringid(235,0))

e1:SetCategory(CATEGORY_REMOVE+CATEGORY_COIN)

e1:SetType(EFFECT_TYPE_IGNITION)

e1:SetRange(LOCATION_MZONE)

e1:SetCountLimit(1)

e1:SetTarget(c235.rmtg)

e1:SetOperation(c235.rmop)

c:RegisterEffect(e1)

end

function c235.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)

if chk==0 then return if chkc then return chkc:IsOnField() and chkc:IsAbleToRemove()
end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end

Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,3)

end

function c235.rmop(e,tp,eg,ep,ev,re,r,rp)

local g=Duel.GetMatchingGroup(tp,Card.IsAbleToRemove,tp,LOCATION_MZONE,LOCATION_MZONE,nil)

if g:GetCount()==0 then return
end

local c1,c2,c3=Duel.TossCoin(tp,3)

local ct=c1+c2+c3

if ct==0 then return
end

if ct>g:GetCount() then ct=g:GetCount()
end

Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)

local dg=g:Select(tp,ct,ct,nil)

Duel.HintSelection(dg)

Duel.Remove(dg,REASON_EFFECT)

end

It still does not work. what am i missing here?
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error