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
 

 Verify card stats

View previous topic View next topic Go down 
AuthorMessage
TGAP-Trixie

TGAP-Trixie


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

Card - Verify card stats Empty
PostSubject: Verify card stats   Card - Verify card stats Icon_minitimeMon Sep 15, 2014 6:55 pm

I was going back through my old cards and fixing their "errors" (in quotations because the effects work, just not as intended) and one "error" was that I couldn't get a face-down card's stats. Basically how Shaddoll falcon special summons a monster face-down, after which the card flips up to verify what it is then back down, and when you hover over it, you can see its name (have that already) and stats (I don't have that).

Here's the code I have.

Code:

Of relevance: E1 effect, spcon through spop.
Back to top Go down
AoO

AoO


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

Card - Verify card stats Empty
PostSubject: Re: Verify card stats   Card - Verify card stats Icon_minitimeSun Sep 21, 2014 12:10 pm

Can you please write the first effect of the card. If it is really that simmilar to Falcon you can take its first effect to 100% and change sth. in your filter. I am not sure, but maybe it's the fault of the 
sptg function as it is not simmilar of the one of Falcon (in case your card effect is that simmilar to Falcon's effect).
Back to top Go down
TGAP-Trixie

TGAP-Trixie


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

Card - Verify card stats Empty
PostSubject: Re: Verify card stats   Card - Verify card stats Icon_minitimeFri Sep 26, 2014 6:18 am

You can only control 1 face-up "MLP- Pinkamena Diane Pie". If this card is removed from the field, special summon 1 "MLP- Pinkie Pie" from your deck in face-down defense position. Once per turn, during either player's turn: you can target 1 monster your opponent controls; destroy that target. During the end phase of the turn this effect was used: destroy 1 card you control.

The important part is in bold

I suppose it's not that big a deal since you can just hover over it and it'll show up at the side along with the stats (rather than in the little transparent box that shows up when you hover over a card). I almost don't care anymore, if you think it's a quick fix like adding 1 more line, then you can help. Otherwise you don't have to bother with this if you don't want to.
Back to top Go down
AoO

AoO


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

Card - Verify card stats Empty
PostSubject: Re: Verify card stats   Card - Verify card stats Icon_minitimeSun Sep 28, 2014 2:19 pm

Code:
function c60000007.initial_effect(c)
  c:SetUniqueOnField(1,0,60000007)
  --Special Summon
  local e1=Effect.CreateEffect(c)
  e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
  e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
  e1:SetCode(EVENT_LEAVE_FIELD)
  e1:SetCondition(c60000007.spcon)
  e1:SetTarget(c60000007.sptg)
  e1:SetOperation(c60000007.spop)
  c:RegisterEffect(e1)
  --Destroy opp monster
  local e2=Effect.CreateEffect(c)
  e2:SetCategory(CATEGORY_DESTROY)
  e2:SetType(EFFECT_TYPE_QUICK_O)
  e2:SetCode(EVENT_FREE_CHAIN)
  e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
  e2:SetRange(LOCATION_MZONE)
  e2:SetCountLimit(1)
  e2:SetTarget(c60000007.target)
  e2:SetOperation(c60000007.operation)
  c:RegisterEffect(e2)
  --EP des
  local e3=Effect.CreateEffect(c)
  e3:SetDescription(aux.Stringid(60000007,0))
  e3:SetCategory(CATEGORY_DESTROY)
  e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
  e3:SetCode(EVENT_PHASE+PHASE_END)
  e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
  e3:SetRange(LOCATION_MZONE)
  e3:SetCountLimit(1)
  e3:SetCondition(c60000007.descon)
  e3:SetTarget(c60000007.destg)
  e3:SetOperation(c60000007.desop)
  c:RegisterEffect(e3)
end
function c60000007.spcon(e,tp,eg,ep,ev,re,r,rp)
  local c=e:GetHandler()
  return c:IsPreviousPosition(POS_FACEUP) and not c:IsLocation(LOCATION_DECK)
end
function c60000007.filter(c,e,tp)
   return c:IsCode(60000006) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN)
end
function c60000007.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
   if chkc then return chkc:IsLocation(LOCATION_DECK) and chkc:IsControler(tp) and c60000007.filter(chkc,e,tp) end
   if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
      and Duel.IsExistingTarget(c60000007.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
   Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
   local g=Duel.SelectTarget(tp,c60000007.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
   Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c60000007.spop(e,tp,eg,ep,ev,re,r,rp)
   local tc=Duel.GetFirstTarget()
   if tc:IsRelateToEffect(e) then
      Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENCE)
      Duel.ConfirmCards(1-tp,tc)
   end
end
function c60000007.filter(c)
  return c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEUP_DEFENCE) or c:IsPosition(POS_FACEDOWN_DEFENCE) and c:IsDestructable()
end
function c60000007.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
  if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c60000007.filter(chkc) end
  if chk==0 then return Duel.IsExistingTarget(c60000007.filter,tp,0,LOCATION_MZONE,1,nil) end
  Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
  local g=Duel.SelectTarget(tp,c60000007.filter,tp,0,LOCATION_MZONE,1,1,nil)
  Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c60000007.operation(e,tp,eg,ep,ev,re,r,rp)
  local tc=Duel.GetFirstTarget()
  if tc:IsRelateToEffect(e) then
      Duel.Destroy(tc,REASON_EFFECT)
      e:GetHandler():RegisterFlagEffect(60000007,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
  end
end
function c60000007.descon(e,tp,eg,ep,ev,re,r,rp)
  return e:GetHandler():GetFlagEffect(60000007)~=0
end
function c60000007.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
  if chkc then return chkc:IsOnField() and chkc:IsDestructable() end
  if chk==0 then return true end
  Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
  local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,LOCATION_ONFIELD,0,1,1,nil)
  Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c60000007.desop(e,tp,eg,ep,ev,re,r,rp)
  local tc=Duel.GetFirstTarget()
  if tc and tc:IsRelateToEffect(e) then
      Duel.Destroy(tc,REASON_EFFECT)
  end
end

Ok, I just overworked it without testing, so if there are still problems I will have an closer look at it,
after my Mackpro works again (crashing the whole time lol).
Hope it workes^^'
Back to top Go down
TGAP-Trixie

TGAP-Trixie


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

Card - Verify card stats Empty
PostSubject: Re: Verify card stats   Card - Verify card stats Icon_minitimeThu Oct 02, 2014 2:43 am

Alright, will check to see if it works  Smile

Edit: No, it didn't. While play-testing, i kinda noticed another problem with the other card associated with this one. It SS a copy of this card from your hand, deck or graveyard but it doesn't let you pick from where. But it does SS them from the deck until there are none which is ideal.

I'll just leave this card as is and worry about the other one.
Back to top Go down
Sponsored content





Card - Verify card stats Empty
PostSubject: Re: Verify card stats   Card - Verify card stats Icon_minitime

Back to top Go down
 

Verify card stats

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

 Similar topics

-
» If Konami ever decided to build an archetype around an old card(s), which card(s) would you want it to be?
» Help me do a custom card
» Help with a card effect
» Card Requeat.
» Help with custom card

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