Sure! Here's a powerful "Hieratic Dragon" support card along with the Lua script for EDOPro.
Card Name: Hieratic Dragon of Celestial Radiance
Attribute: LIGHT
Level: 6
Type: Dragon / Effect
ATK/DEF: 2200 / 1000
Card Text:
"If this card is in your hand or GY: You can send 1 'Hieratic' monster from your hand or field to the GY; Special Summon this card. You can only use this effect of 'Hieratic Dragon of Celestial Radiance' once per turn.
If this card is Special Summoned: You can Special Summon 1 Level 6 or lower Dragon monster from your hand, Deck, or GY in Defense Position, but its effects are negated, and it becomes Level 6. You can only use this effect of 'Hieratic Dragon of Celestial Radiance' once per turn."
EDOPro Lua Script:
--Hieratic Dragon of Celestial Radiance
local s,id=GetID()
function s.initial_effect(c)
--Special Summon from hand or GY by sending 1 'Hieratic' monster from hand or field to GY
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetCountLimit(1,id)
e1:SetCost(s.spcost)
e1:SetTarget(s.sptg)
e1:SetOperation(s.spop)
c:RegisterEffect(e1)
--On Special Summon: Special Summon 1 Level 6 or lower Dragon monster from hand, Deck, or GY in Defense Position, its effects are negated, and it becomes Level 6
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,id+100)
e2:SetTarget(s.sptg2)
e2:SetOperation(s.spop2)
c:RegisterEffect(e2)
end
function s.cfilter(c)
return c:IsSetCard(0x69) and c:IsAbleToGraveAsCost()
end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
function s.spfilter(c,e,tp)
return c:IsRace(RACE_DRAGON) and c:IsLevelBelow(6) 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.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE)
end
function s.spop2(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc then
if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0 then
--Negate effects
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(3300)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_DISABLE_EFFECT)
tc:RegisterEffect(e2)
--Change Level to 6
local e3=Effect.CreateEffect(e:GetHandler())
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CHANGE_LEVEL)
e3:SetValue(6)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e3)
end
end
end
How to Add the Card to EDOPro:
-
Create the Card in the Database:
- Open the
cards.cdb database file using a SQLite editor (like SQLiteStudio).
- Insert a new entry for your card with the appropriate values:
id: A unique number (e.g., 12345678).
name: "Hieratic Dragon of Celestial Radiance".
type: Monster type code for Effect Monster (0x1 for Monster + 0x2 for Effect Monster).
atk: 2200.
def: 1000.
level: 6.
race: Dragon (0x80000000).
attribute: LIGHT (0x10).
- Ensure you set
setcode to 0x69 to associate it with the 'Hieratic' archetype.
-
Save the Card Image:
- Place the card image in the
pics folder of EDOPro.
- Name the image file with the card's ID (e.g.,
12345678.jpg or 12345678.png).
-
Add the Script File:
- Create a new Lua script file named
c12345678.lua in the script folder of EDOPro.
- Paste the Lua script provided above into this file.
- Save the file.
-
Reload Card Scripts:
- Launch EDOPro.
- Use the "Reload Scripts" option to load your new card into the game.
-
Test the Card:
- Build a deck including "Hieratic Dragon of Celestial Radiance".
- Play a duel to test the card's effects and ensure it works as intended.
Enjoy your new powerful Hieratic Dragon support card in EDOPro!