paprika
2013-11-01T21:23:05Z
Can any help my witch this

Tribute 1 face-up (Peter Parker(SP)) on you side of the field and this card.Special summon 1(Spider Man(SP))from your deck or hand.

--ナチュル·ナーブ
function c83516588.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(83516588,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c83516588.spcost)
e1:SetTarget(c83516588.sptg)
e1:SetOperation(c83516588.spop)
c:RegisterEffect(e1)
end
function c83516588.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsReleasable() and Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,c,0x1500) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,c,0x1500)
g:AddCard(c)
Duel.Release(g,REASON_COST)
end
function c83516588.filter(c,e,tp)
return c:GetCode()==63710421 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c83516588.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2
and Duel.IsExistingMatchingCard(c83516588.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND)
end
function c83516588.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c83516588.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then
Duel.BreakEffect()
local tg=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local tc=tg:GetFirst()
end

end


i cnow for code 0x1500,but i dont know how to made witch number
Jackmoonward
2013-11-02T17:18:14Z
When you we're putting in the cards, for the setcode did you use the number 1500 or 5376? Also how much of your script works? By that I mean when in the effect does it stop working?

~Jack
Go here to vote for the next cards in Jackpro 1.5:
http://www.tehmadhouse.tk 
Youtube:
http://www.youtube.com/user/jackmoonward
paprika
2013-11-03T15:29:05Z
Originally Posted by: Jackmoonward 

When you we're putting in the cards, for the setcode did you use the number 1500 or 5376? Also how much of your script works? By that I mean when in the effect does it stop working?

~Jack



:9: attemp to call method"function" (a nil value)
YuGiOhMoDDeR
2013-11-03T15:45:13Z
line 9: e1:SetCost(c83516588.spcost) doesnt match line 14: function c83516588.discost(e,tp,eg,ep,ev,re,r,rp,chk)

rename one of them (either c83516588.spcost or c83516588.discost)
paprika
2013-11-03T16:11:18Z
Originally Posted by: YuGiOhMoDDeR 

line 9: e1:SetCost(c83516588.spcost) doesnt match line 14: function c83516588.discost(e,tp,eg,ep,ev,re,r,rp,chk)

rename one of them (either c83516588.spcost or c83516588.discost)



:9:parameter 2 should be "function"
Users browsing this topic