Universe Seed hintmsg and Tuner Star code fix
This commit is contained in:
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 119 KiB |
BIN
card pics/cover2.png
Normal file
BIN
card pics/cover2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 119 KiB |
@@ -14,29 +14,30 @@ function s.initial_effect(c)
|
|||||||
c:RegisterEffect(e1)
|
c:RegisterEffect(e1)
|
||||||
--Special summon 2 "Universe Seed" from hand or deck in defense
|
--Special summon 2 "Universe Seed" from hand or deck in defense
|
||||||
local e2=Effect.CreateEffect(c)
|
local e2=Effect.CreateEffect(c)
|
||||||
e2:SetDescription(aux.Stringid(id,1))
|
e2:SetDescription(aux.Stringid(id,0))
|
||||||
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
|
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
|
||||||
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) --quick effect | copied from obelisk
|
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
|
||||||
e2:SetCode(EVENT_SUMMON_SUCCESS) --added from obelisk
|
e2:SetCode(EVENT_SUMMON_SUCCESS)
|
||||||
e2:SetRange(LOCATION_MZONE)
|
e2:SetRange(LOCATION_MZONE)
|
||||||
e2:SetTarget(s.sptg)
|
e2:SetTarget(s.sptg)
|
||||||
e2:SetOperation(s.spop)
|
e2:SetOperation(s.spop)
|
||||||
c:RegisterEffect(e2)
|
c:RegisterEffect(e2)
|
||||||
end
|
end
|
||||||
function s.efilter(e,c)
|
function s.efilter(e,c)
|
||||||
return c:IsSetCard(0x25e) and c:IsFaceup() --Pendulum effect condition
|
return c:IsSetCard(0x25e) and c:IsFaceup()
|
||||||
end
|
end
|
||||||
function s.spfilter(c,e,tp)
|
function s.spfilter(c,e,tp)
|
||||||
return c:IsCode(561586057) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP_DEFENSE) --card id for sp summon
|
return c:IsCode(561586057) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP_DEFENSE)
|
||||||
end
|
end
|
||||||
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
|
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
|
||||||
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
|
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
|
||||||
if e:GetHandler():GetSequence()<5 then ft=ft+1 end --getting the targets
|
if e:GetHandler():GetSequence()<5 then ft=ft+1 end
|
||||||
if chk==0 then return ft>1 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,2,nil,e,tp)
|
if chk==0 then return ft>1 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,2,nil,e,tp)
|
||||||
and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) end
|
and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) end
|
||||||
|
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
|
||||||
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_HAND+LOCATION_DECK)
|
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_HAND+LOCATION_DECK)
|
||||||
end
|
end
|
||||||
function s.spop(e,tp,eg,ep,ev,re,r,rp) --special summon part
|
function s.spop(e,tp,eg,ep,ev,re,r,rp)
|
||||||
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end
|
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end
|
||||||
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
|
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
|
||||||
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,2,2,nil,e,tp)
|
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,2,2,nil,e,tp)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ function s.initial_effect(c)
|
|||||||
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
|
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
|
||||||
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
|
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
|
||||||
e2:SetCode(EVENT_SUMMON_SUCCESS)
|
e2:SetCode(EVENT_SUMMON_SUCCESS)
|
||||||
e2:SetTarget(s.sptg)
|
e2:SetTarget(s.sptged)
|
||||||
e2:SetOperation(s.spops)
|
e2:SetOperation(s.spops)
|
||||||
c:RegisterEffect(e2)
|
c:RegisterEffect(e2)
|
||||||
--spsummon from extra deck when special summon
|
--spsummon from extra deck when special summon
|
||||||
@@ -71,27 +71,24 @@ function s.spops(e,tp,eg,ep,ev,re,r,rp)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
-----Pendulum zone sp summon
|
-----Pendulum zone sp summon
|
||||||
------ dark armed dragon
|
function s.costfilter(c)
|
||||||
function s.costfilter(c)
|
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true)
|
||||||
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true)
|
end
|
||||||
|
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
|
||||||
|
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end
|
||||||
|
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
|
||||||
|
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil)
|
||||||
|
Duel.Remove(g,POS_FACEUP,REASON_COST)
|
||||||
|
end
|
||||||
|
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
|
||||||
|
local c=e:GetHandler()
|
||||||
|
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
|
||||||
|
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
|
||||||
|
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
|
||||||
|
end
|
||||||
|
function s.spop(e,tp,eg,ep,ev,re,r,rp)
|
||||||
|
local c=e:GetHandler()
|
||||||
|
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsRelateToEffect(e) then
|
||||||
|
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
|
||||||
end
|
end
|
||||||
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
|
end
|
||||||
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end
|
|
||||||
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
|
|
||||||
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil)
|
|
||||||
Duel.Remove(g,POS_FACEUP,REASON_COST)
|
|
||||||
end
|
|
||||||
|
|
||||||
--abyss actor
|
|
||||||
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
|
|
||||||
local c=e:GetHandler()
|
|
||||||
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
|
|
||||||
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
|
|
||||||
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
|
|
||||||
end
|
|
||||||
function s.spop(e,tp,eg,ep,ev,re,r,rp)
|
|
||||||
local c=e:GetHandler()
|
|
||||||
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsRelateToEffect(e) then
|
|
||||||
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user