YGOPRO Forum

Welcome Guest! To enable all features please try to register or login.
Options
Go to last post Go to first unread
Shark02  
#1 Posted : Friday, December 30, 2016 10:27:17 PM(UTC)
Shark02

Rank: Advanced Member

Joined: 11/21/2013(UTC)
Posts: 138

Thanks: 3 times
Was thanked: 6 time(s) in 5 post(s)
My effect:

Declare 1 card name; excavate the top card of your Deck, and if it is the declared card, add it to your hand, then you can Special Summon up 3 but only 1 copy of each "Slifer the Sky Dragon", "Obelisk the Tormentor" and/or "The Winged Dragon of Ra" from your hand or Deck. The Summoned monsters by this effect cannot be send to Graveyard by its own effects. Otherwise, send it to the Graveyard. You can only activate 1 "The True Name" per turn.

the script effect:

local e5=Effect.CreateEffect(e:GetHandler())
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_CANNOT_TO_GRAVE)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetReset(RESET_EVENT+0x1fe0000)
e5:SetValue(c39913299.sumlimit2)
tc1:RegisterEffect(e5)
end
function c39913299.sumlimit2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 and re and re:GetOwner()==e:GetHandler()
end

The problem is that the monsters summoned for this effect can not be sent to the Graveyard by any card effect.
Does anyone know how to solve it?
Shark02  
#2 Posted : Friday, November 01, 2019 1:23:26 AM(UTC)
Shark02

Rank: Advanced Member

Joined: 11/21/2013(UTC)
Posts: 138

Thanks: 3 times
Was thanked: 6 time(s) in 5 post(s)
any help!
Shark02  
#3 Posted : Tuesday, November 05, 2019 4:18:54 AM(UTC)
Shark02

Rank: Advanced Member

Joined: 11/21/2013(UTC)
Posts: 138

Thanks: 3 times
Was thanked: 6 time(s) in 5 post(s)
Below is the updated version of the script, but 3 years later is still not working as it should

local e11=Effect.CreateEffect(e:GetHandler())
e11:SetType(EFFECT_TYPE_SINGLE)
e11:SetCode(EFFECT_CANNOT_TO_GRAVE)
e11:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE)
e11:SetValue(s.graveval)
e11:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e11,true)
end
function s.graveval(e,re,rp,c)
return re:GetOwner()==c
end

:wall :S
Shark02  
#4 Posted : Wednesday, November 06, 2019 2:14:34 PM(UTC)
Shark02

Rank: Advanced Member

Joined: 11/21/2013(UTC)
Posts: 138

Thanks: 3 times
Was thanked: 6 time(s) in 5 post(s)
waiting for problem to be resolved :thup :thup
BananaPhone42  
#5 Posted : Thursday, November 07, 2019 3:47:16 AM(UTC)
BananaPhone42

Rank: Advanced Member

Joined: 1/16/2018(UTC)
Posts: 174
United States

Thanks: 11 times
Was thanked: 7 time(s) in 7 post(s)
Originally Posted by: Shark02 Go to Quoted Post
waiting for problem to be resolved :thup :thup


This might be a crazy idea, but why not just do this? Put this...

--Cannot Send to Grave
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE)
e12:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e12:SetRange(LOCATION_MZONE)
e12:SetCode(EFFECT_CANNOT_TO_GRAVE)
c:RegisterEffect(e12)

in the main part of your script rather than what you have it as now?
Shark02  
#6 Posted : Thursday, November 07, 2019 1:49:33 PM(UTC)
Shark02

Rank: Advanced Member

Joined: 11/21/2013(UTC)
Posts: 138

Thanks: 3 times
Was thanked: 6 time(s) in 5 post(s)
because that way it can't be sent to the cemetery for the effect of any cards, and I just want it not to be sent for its own effect.

Edited by user Thursday, November 07, 2019 1:51:06 PM(UTC)  | Reason: Not specified

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