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
 

 Help with Number 3: The Mad Fiend

View previous topic View next topic Go down 
AuthorMessage
Marc1




Posts : 43
Join date : 2013-08-03

Help with Number 3: The Mad Fiend Empty
PostSubject: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeTue Nov 26, 2013 9:15 pm

Not sure how to script this one.


 
Number 3: The Mad Fiend


Rank 3 Fiend Dark 0/0


2 level 3 monsters


Once per turn: you can detach 1 Xyz Material from this card to target 1 monster from your hand or Graveyard and equip it to this card. This card gains the ATK/DEF and effect of the equipped monster.


Last edited by Marc1 on Tue Nov 26, 2013 9:44 pm; edited 1 time in total
Back to top Go down
outlaw1994

outlaw1994
Admin
Admin

Member Title : Red-Eyes Lord
Posts : 797
Join date : 2013-07-09
Age : 29
Location : bundaberg qld australia

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeWed Nov 27, 2013 5:12 am

here you go i can see this is gonna be a staple also do you have a picture if not i can do one up for you anyway heres the script

Code:
--Number 3: The Mad Fiend
function c55278647.initial_effect(c)
   --xyz summon
   aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,3),2)
   c:EnableReviveLimit()
   --equip
   local e1=Effect.CreateEffect(c)
   e1:SetCategory(CATEGORY_EQUIP)
   e1:SetDescription(aux.Stringid(69610924,0))
   e1:SetType(EFFECT_TYPE_IGNITION)
   e1:SetCountLimit(1)
   e1:SetRange(LOCATION_MZONE)
   e1:SetCost(c55278647.cost)
   e1:SetTarget(c55278647.eqtg)
   e1:SetOperation(c55278647.eqop)
   c:RegisterEffect(e1)
end
function c55278647.cost(e,tp,eg,ep,ev,re,r,rp,chk)
   if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
   e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c55278647.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
   if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
      and Duel.IsExistingTarget(Card.IsType,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil,TYPE_MONSTER) end
   Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
   local g=Duel.SelectTarget(tp,Card.IsType,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,TYPE_MONSTER)
   Duel.SetOperationInfo(0,CATEGORY_EQUIP,g,1,0,0)
end
function c55278647.eqop(e,tp,eg,ep,ev,re,r,rp)
   local c=e:GetHandler()
   local tc=Duel.GetFirstTarget()
   if tc:IsRelateToEffect(e) then
      if c:IsFaceup() and c:IsRelateToEffect(e) then
         local atk=tc:GetAttack()
         local def=tc:GetDefence()
         Duel.Equip(tp,tc,c,true)
         local e1=Effect.CreateEffect(c)
         e1:SetType(EFFECT_TYPE_EQUIP)
         e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_OWNER_RELATE)
         e1:SetCode(EFFECT_UPDATE_ATTACK)
         e1:SetReset(RESET_EVENT+0x1fe0000)
         e1:SetValue(atk)
         tc:RegisterEffect(e1)
         local e2=Effect.CreateEffect(c)
         e2:SetType(EFFECT_TYPE_EQUIP)
         e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_OWNER_RELATE)
         e2:SetCode(EFFECT_UPDATE_DEFENCE)
         e2:SetReset(RESET_EVENT+0x1fe0000)
         e2:SetValue(def)
         tc:RegisterEffect(e2)
         local e3=Effect.CreateEffect(c)
         e3:SetProperty(EFFECT_FLAG_OWNER_RELATE)
         e3:SetType(EFFECT_TYPE_SINGLE)
         e3:SetCode(EFFECT_EQUIP_LIMIT)
         e3:SetReset(RESET_EVENT+0x1fe0000)
         e3:SetValue(c55278647.eqlimit)
         tc:RegisterEffect(e3)      
         c:CopyEffect(tc:GetOriginalCode(),RESET_EVENT+0x1fe0000)
      end
end
end
function c55278647.eqlimit(e,c)
   return e:GetOwner()==c
end
Back to top Go down
https://mackpro.forumotion.com
cane_63106

cane_63106


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

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeWed Nov 27, 2013 7:11 am

damn, i'm working on this right now. i knew i should have refreshed a while ago lol
Back to top Go down
http:// https://www.youtube.com/user/cane63106/videos
outlaw1994

outlaw1994
Admin
Admin

Member Title : Red-Eyes Lord
Posts : 797
Join date : 2013-07-09
Age : 29
Location : bundaberg qld australia

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeWed Nov 27, 2013 8:23 am

lol only took me 10 minutes wasnt that hard
Back to top Go down
https://mackpro.forumotion.com
outlaw1994

outlaw1994
Admin
Admin

Member Title : Red-Eyes Lord
Posts : 797
Join date : 2013-07-09
Age : 29
Location : bundaberg qld australia

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeWed Nov 27, 2013 9:56 am

heres a pic as well if you dont have one



Help with Number 3: The Mad Fiend 1wSeYLP
Back to top Go down
https://mackpro.forumotion.com
Marc1




Posts : 43
Join date : 2013-08-03

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeWed Nov 27, 2013 5:11 pm

Thanks Outlaw! you are the best!
Back to top Go down
outlaw1994

outlaw1994
Admin
Admin

Member Title : Red-Eyes Lord
Posts : 797
Join date : 2013-07-09
Age : 29
Location : bundaberg qld australia

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeWed Nov 27, 2013 11:51 pm

no problem
Back to top Go down
https://mackpro.forumotion.com
cane_63106

cane_63106


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

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeThu Nov 28, 2013 2:04 am

Help with Number 3: The Mad Fiend Create10

this is what i was stuck on. couldn't get the DEF for some reason.

--No.3: The Mad Fiend
function c11262013.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,3),2)
c:EnableReviveLimit()
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11262013,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c11262013.eqcost)
e1:SetTarget(c11262013.eqtg)
e1:SetOperation(c11262013.eqop)
c:RegisterEffect(e1)
end
function c11262013.eqcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c11262013.filter(c,tp)
return c:IsType(TYPE_MONSTER)
end
function c11262013.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(c11262013.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end
function c11262013.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
if c:IsFacedown() or not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectMatchingCard(tp,c11262013.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,tp)
local tc=g:GetFirst()
if tc then
if not Duel.Equip(tp,tc,c,true) then return end
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT+EFFECT_FLAG_OWNER_RELATE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(c11262013.eqlimit)
tc:RegisterEffect(e1)
local atk=tc:GetTextAttack()
if atk>0 then
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_OWNER_RELATE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetReset(RESET_EVENT+0x1fe0000)
e2:SetValue(atk)
tc:RegisterEffect(e2)
local atk=tc:GetTextDefense()
if def>0 then
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_OWNER_RELATE)
e3:SetCode(EFFECT_UPDATE_DEFENSE)
e3:SetReset(RESET_EVENT+0x1fe0000)
e3:SetValue(def)
tc:RegisterEffect(e3)
end
end
end
function c11262013.eqlimit(e,c)
return e:GetOwner()==c
end
end
Back to top Go down
http:// https://www.youtube.com/user/cane63106/videos
outlaw1994

outlaw1994
Admin
Admin

Member Title : Red-Eyes Lord
Posts : 797
Join date : 2013-07-09
Age : 29
Location : bundaberg qld australia

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeThu Nov 28, 2013 7:03 am

Lol you spelt defence wrong
Back to top Go down
https://mackpro.forumotion.com
cane_63106

cane_63106


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

Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitimeThu Nov 28, 2013 5:09 pm

lol damn...i'm too old to be doing that
Back to top Go down
http:// https://www.youtube.com/user/cane63106/videos
Sponsored content





Help with Number 3: The Mad Fiend Empty
PostSubject: Re: Help with Number 3: The Mad Fiend   Help with Number 3: The Mad Fiend Icon_minitime

Back to top Go down
 

Help with Number 3: The Mad Fiend

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

 Similar topics

-
» Anime number C69 and Number 69 request
» Help with Number 18: Grave Retriever
» Number c102 103 and c103
» Help with Number 14: Mental Emperor
» Can someone program these Anime Number cards

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