YGOPRO Forum

Welcome Guest! To enable all features please try to register or login.
Options
Go to last post Go to first unread
Marc  
#1 Posted : Sunday, May 31, 2020 5:28:39 PM(UTC)
Marc

Rank: Advanced Member

Joined: 1/6/2013(UTC)
Posts: 176

Thanks: 9 times
Was thanked: 1 time(s) in 1 post(s)
I can't figure out how to edit this card to work in Edopro. It worked fine in the old version.

Can anyone help?

1 or more LIGHT monsters
Must first be Special Summoned by sending the above cards from either side of the field to the GY. (You do not use "Polymerization".) The original ATK of this card becomes 1000 x the number of Fusion Materials used for its Fusion Summon.

Quote:
--Celestia - Light Alchemy
function c10750000.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_LIGHT),1,99)
aux.AddContactFusion(c,c10750000.contactfil,c10750000.contactop,c10750000.splimit)
--cannot be fusion material
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetValue(1)
c:RegisterEffect(e3)
end
function c10750000.splimit(e,se,sp,st)
return e:GetHandler():GetLocation()~=LOCATION_EXTRA
end
function c10750000.contactfil(tp)
return Duel.GetMatchingGroup(c10750000.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,tp)
end
function c10750000.cfilter(c,tp)
return c:IsAbleToGraveAsCost() and (c:IsControler(tp) or c:IsFaceup())
end
function c10750000.contactop(g,tp,c)
Duel.SendtoGrave(g,REASON_COST+REASON_MATERIAL)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetReset(RESET_EVENT+0xff0000)
e1:SetValue(g:GetCount()*1000)
c:RegisterEffect(e1)
end
BananaPhone42  
#2 Posted : Monday, June 08, 2020 7:01:17 PM(UTC)
BananaPhone42

Rank: Advanced Member

Joined: 1/16/2018(UTC)
Posts: 190

Thanks: 13 times
Was thanked: 10 time(s) in 10 post(s)
Here you go. This is for the most recent version of EDOPro...

Code:
--Celestia - Light Alchemy
local s,id=GetID()
function s.initial_effect(c)
--fusion material
	Fusion.AddProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_LIGHT),1,99)
	Fusion.AddContactProc(c,s.contactfil,s.contactop,true)
--cannot be fusion material
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetValue(1)
c:RegisterEffect(e3)
end
function s.splimit(e,se,sp,st)
return e:GetHandler():GetLocation()~=LOCATION_EXTRA
end
function s.contactfil(tp)
return Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,tp)
end
function s.cfilter(c,tp)
return c:IsAbleToGraveAsCost() and (c:IsControler(tp) or c:IsControler(1-tp) or c:IsFaceup())
end
function s.contactop(g,tp,c)
Duel.SendtoGrave(g,REASON_COST+REASON_MATERIAL)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetReset(RESET_EVENT+0xff0000)
e1:SetValue(g:GetCount()*1000)
c:RegisterEffect(e1)
end

Edited by user Monday, June 08, 2020 7:02:36 PM(UTC)  | Reason: Not specified

thanks 1 user thanked BananaPhone42 for this useful post.
Marc  
#3 Posted : Tuesday, June 09, 2020 10:51:02 PM(UTC)
Marc

Rank: Advanced Member

Joined: 1/6/2013(UTC)
Posts: 176

Thanks: 9 times
Was thanked: 1 time(s) in 1 post(s)
Thank you! I really appreciate it.
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