Create a powerful "Hieratic dragon" support, and create a lua script for that support…
- User
Create a powerful "Hieratic dragon" support, and create a lua script for that support for edopro.
- Assistant
Certainly! Here's a powerful support card for the "Hieratic Dragon" archetype, along with the corresponding Lua script for EDOPro.
Card Name: Hieratic Dragon of Celestial Light
Level: 6
Attribute: LIGHT
Type: Dragon/Effect
ATK/DEF: 2000/1600Card Effect:
If you control a "Hieratic" monster: You can Special Summon this card from your hand or GY. You can only Special Summon "Hieratic Dragon of Celestial Light" once per turn this way. When this card is Special Summoned: You can add 1 "Hieratic" Spell/Trap from your Deck to your hand. Once per turn: You can Tribute this card; Special Summon 1 "Hieratic" monster from your Deck in Defense Position.
Lua Script for EDOPro:
--Hieratic Dragon of Celestial Light local s,id=GetID() function s.initial_effect(c) -- Special Summon from hand or GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetCountLimit(1,id) e1:SetCondition(s.spcon) e1:SetTarget(s.sptg) e1:SetOperation(s.spop) c:RegisterEffect(e1) -- Tribute to Special Summon from Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) e2:SetCategory(CATEGORY_RELEASE+CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,id+1) e2:SetCost(s.spcost) e2:SetTarget(s.sptg2) e2:SetOperation(s.spop2) c:RegisterEffect(e2) end function s.cfilter(c) return c:IsFaceup() and c:IsSetCard(0x69) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end function s.thfilter(c) return c:IsSetCard(0x69) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then local c=e:GetHandler() return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil) if #g>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsReleasable() end Duel.Release(e:GetHandler(),REASON_COST) end function s.spfilter(c,e,tp) return c:IsSetCard(0x69) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) end function s.spop2(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end end
Explanation of the Card and Script:
-
First Effect (Special Summon): If you control a "Hieratic" monster, you can Special Summon this card from your hand or GY, allowing for easy access to this card to facilitate your plays. Upon Special Summoning, you can add a "Hieratic" Spell/Trap from your Deck to your hand, providing consistency by searching key cards.
-
Second Effect (Tribute to Summon from Deck): Once per turn, you can Tribute "Hieratic Dragon of Celestial Light" to Special Summon any "Hieratic" monster from your Deck in Defense Position. This effect continues the "Hieratic" theme of Tribute Summoning and enables you to bring out powerful "Hieratic" monsters quickly.
The Lua script corresponds to these effects, with proper handling of conditions, costs, targets, and operations based on the card's intended functionality. The script uses standard EDOPro scripting conventions, ensuring compatibility with the game.
Usage in Deck Building:
- Consistency Boost: This card greatly improves the consistency of "Hieratic" decks by providing both search power and field presence.
- Combo Potential: Being able to Special Summon from the Deck enables various combo plays, especially when summoning high-Level "Hieratic" monsters that can facilitate powerful XYZ or Synchro Summons.
- Recovery: The ability to Special Summon from the GY allows for resource recovery, ensuring that you can maintain pressure even after losing your field.
Feel free to integrate this card into your EDOPro game and adjust any values or effects to better suit your balance preferences!
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.