a place for all your custom card needs you can post scripts pics and request for card to be made also please donate to the funding for a new server made for custom card duels
 
HomePortalLatest imagesSearchRegisterLog in

Share
 

 I need help scripting 4 cards .

View previous topic View next topic Go down 
AuthorMessage
Maxesmose




Member Title : Maximose <->
Posts : 3
Join date : 2014-11-15

I need help scripting 4 cards . Empty
PostSubject: I need help scripting 4 cards .   I need help scripting 4 cards . Icon_minitimeSat Nov 15, 2014 12:15 am

I need help scripting 4 cards will some body please help me?
https://imgur.com/AGNuJK8,mf42IM4,JWDDfhn,saEpuWo
Back to top Go down
TGAP-Trixie

TGAP-Trixie


Member Title : Trixie does not even...
Posts : 273
Join date : 2014-04-17

I need help scripting 4 cards . Empty
PostSubject: Re: I need help scripting 4 cards .   I need help scripting 4 cards . Icon_minitimeSat Nov 15, 2014 3:05 am

Should be easy to script. Learn PSCT and it'll be easier when you're looking around in the lua files.
OP stats though. I can do one for you now, I'm waiting on ygopro to dload cause I have to reinstall it xD

Lichea:

Replace xxxxxxxx with your card's serial code (3-9 digits long I believe) and YOURSETCODEHERE with your archtype's setcode
Back to top Go down
Maxesmose




Member Title : Maximose <->
Posts : 3
Join date : 2014-11-15

I need help scripting 4 cards . Empty
PostSubject: Re: I need help scripting 4 cards .   I need help scripting 4 cards . Icon_minitimeSat Nov 15, 2014 9:22 am

Im trying to script them but they just end up doing some weird thing O.o.
Back to top Go down
cane_63106

cane_63106


Member Title : D.D. Dragon Kaiser
Posts : 454
Join date : 2013-07-23
Location : St. Louis, MO

I need help scripting 4 cards . Empty
PostSubject: Re: I need help scripting 4 cards .   I need help scripting 4 cards . Icon_minitimeFri Nov 21, 2014 3:23 pm

--West Pirate Vansi
function c000000.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1)
c:RegisterEffect(e1)
--atk change
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(000000,0))
e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_PHASE+PHASE_BATTLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetTarget(c000000.atktg)
e2:SetOperation(c000000.atkop)
c:RegisterEffect(e2)
--search
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(000000,1))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE)
e3:SetTarget(c000000.target)
e3:SetOperation(c000000.operation)
c:RegisterEffect(e3)
end
function c000000.sfilter(c)
return c:IsSetCard(0x???) and c:IsAbleToHand()
end
function c000000.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c000000.sfilter,tp,LOCATION_DECK,0,2,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_DECK)
end
function c000000.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c000000.sfilter,tp,LOCATION_DECK,0,2,2,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c000000.filter(c,bc)
return c:IsFaceup() and c:GetBattledGroup():IsContains(bc)
end
function c000000.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c000000.filter,tp,0,LOCATION_MZONE,1,nil,e:GetHandler()) end
end
function c000000.atkop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c000000.filter,tp,0,LOCATION_MZONE,nil,e:GetHandler())
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(0)
e1:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e1)
tc=g:GetNext()
end
end
Back to top Go down
http:// https://www.youtube.com/user/cane63106/videos
Maxesmose




Member Title : Maximose <->
Posts : 3
Join date : 2014-11-15

I need help scripting 4 cards . Empty
PostSubject: Re: I need help scripting 4 cards .   I need help scripting 4 cards . Icon_minitimeFri Nov 21, 2014 5:47 pm

thx XD
Back to top Go down
Sponsored content





I need help scripting 4 cards . Empty
PostSubject: Re: I need help scripting 4 cards .   I need help scripting 4 cards . Icon_minitime

Back to top Go down
 

I need help scripting 4 cards .

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Gunbuster custom cards scripting request
» I need these cards plz :D
» I need help scripting .
» Problem with scripting
» Card scripting request

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Requests-