name: The
card_text: Cannot be Special Summoned. Must be Normal Summoned/Set by Tributing 3 monsters. This card's ATK/DEF are equal to the number of cards your opponent controls x 1000. During your Main Phase: You can destroy this card. If this card is destroyed and sent to the GY: Destroy all cards on the field.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--summon with 3 tribute
  	local e1 = Effect.CreateEffect(c)
  	e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_LIMIT_SUMMON_PROC)
  	e1:SetCondition(s.ttcon)
  	e1:SetOperation(s.ttop)
  	e1:SetValue(SUMMON_TYPE_ADVANCE)
  	c:RegisterEffect(e1)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_LIMIT_SET_PROC)
  	c:RegisterEffect(e2)
  	--cannot special summon
  	local e3 = Effect.CreateEffect(c)
  	e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
  	e3:SetType(EFFECT_TYPE_SINGLE)
  	e3:SetCode(EFFECT_SPSUMMON_CONDITION)
  	c:RegisterEffect(e3)
  	--atk
  	local e4 = Effect.CreateEffect(c)
  	e4:SetType(EFFECT_TYPE_SINGLE)
  	e4:SetCode(EFFECT_SET_ATTACK)
  	e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e4:SetRange(LOCATION_MZONE)
  	e4:SetValue(s.adval)
  	c:RegisterEffect(e4)
  	local e5 = e4:Clone()
  	e5:SetCode(EFFECT_SET_DEFENSE)
  	c:RegisterEffect(e5)
  	--Eraser
  	local e6 = Effect.CreateEffect(c)
  	e6:SetDescription(aux.Stringid(id, 0))
  	e6:SetCategory(CATEGORY_DESTROY)
  	e6:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e6:SetCode(EVENT_TO_GRAVE)
  	e6:SetCondition(s.erascon)
  	e6:SetTarget(s.erastg)
  	e6:SetOperation(s.erasop)
  	c:RegisterEffect(e6)
  	--suicide
  	local e7 = Effect.CreateEffect(c)
  	e7:SetDescription(aux.Stringid(id, 1))
  	e7:SetType(EFFECT_TYPE_IGNITION)
  	e7:SetCategory(CATEGORY_DESTROY)
  	e7:SetRange(LOCATION_MZONE)
  	e7:SetTarget(s.destg)
  	e7:SetOperation(s.desop)
  	c:RegisterEffect(e7)
  end
  function s.ttcon(e, c, minc)
  	if c == nil then
  		return true
  	end
  	return minc <= 3 and Duel.CheckTribute(c, 3)
  end
  function s.ttop(e, tp, eg, ep, ev, re, r, rp, c)
  	local g = Duel.SelectTribute(tp, c, 3, 3)
  	c:SetMaterial(g)
  	Duel.Release(g, REASON_SUMMON + REASON_MATERIAL)
  end
  function s.adval(e, c)
  	return Duel.GetFieldGroupCount(c:GetControler(), 0, LOCATION_ONFIELD) * 1000
  end
  function s.erascon(e)
  	return e:GetHandler():IsReason(REASON_DESTROY)
  end
  function s.erastg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	local dg = Duel.GetMatchingGroup(aux.TRUE, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, nil)
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, dg, dg:GetCount(), 0, 0)
  end
  function s.erasop(e, tp, eg, ep, ev, re, r, rp)
  	local dg = Duel.GetMatchingGroup(nil, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, nil)
  	Duel.Destroy(dg, REASON_EFFECT)
  end
  function s.destg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, e:GetHandler(), 1, 0, 0)
  end
  function s.desop(e, tp, eg, ep, ev, re, r, rp)
  	Duel.Destroy(e:GetHandler(), REASON_EFFECT)
  end
  
  
source_text: The
  Cannot be Special Summoned. Must be Normal Summoned/Set by Tributing 3 monsters. This card's ATK/DEF are equal to the number of cards your opponent controls x 1000. During your Main Phase: You can destroy this card. If this card is destroyed and sent to the GY: Destroy all cards on the field.
target_text: -- The
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--summon with 3 tribute
  	local e1 = Effect.CreateEffect(c)
  	e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_LIMIT_SUMMON_PROC)
  	e1:SetCondition(s.ttcon)
  	e1:SetOperation(s.ttop)
  	e1:SetValue(SUMMON_TYPE_ADVANCE)
  	c:RegisterEffect(e1)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_LIMIT_SET_PROC)
  	c:RegisterEffect(e2)
  	--cannot special summon
  	local e3 = Effect.CreateEffect(c)
  	e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
  	e3:SetType(EFFECT_TYPE_SINGLE)
  	e3:SetCode(EFFECT_SPSUMMON_CONDITION)
  	c:RegisterEffect(e3)
  	--atk
  	local e4 = Effect.CreateEffect(c)
  	e4:SetType(EFFECT_TYPE_SINGLE)
  	e4:SetCode(EFFECT_SET_ATTACK)
  	e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e4:SetRange(LOCATION_MZONE)
  	e4:SetValue(s.adval)
  	c:RegisterEffect(e4)
  	local e5 = e4:Clone()
  	e5:SetCode(EFFECT_SET_DEFENSE)
  	c:RegisterEffect(e5)
  	--Eraser
  	local e6 = Effect.CreateEffect(c)
  	e6:SetDescription(aux.Stringid(id, 0))
  	e6:SetCategory(CATEGORY_DESTROY)
  	e6:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e6:SetCode(EVENT_TO_GRAVE)
  	e6:SetCondition(s.erascon)
  	e6:SetTarget(s.erastg)
  	e6:SetOperation(s.erasop)
  	c:RegisterEffect(e6)
  	--suicide
  	local e7 = Effect.CreateEffect(c)
  	e7:SetDescription(aux.Stringid(id, 1))
  	e7:SetType(EFFECT_TYPE_IGNITION)
  	e7:SetCategory(CATEGORY_DESTROY)
  	e7:SetRange(LOCATION_MZONE)
  	e7:SetTarget(s.destg)
  	e7:SetOperation(s.desop)
  	c:RegisterEffect(e7)
  end
  function s.ttcon(e, c, minc)
  	if c == nil then
  		return true
  	end
  	return minc <= 3 and Duel.CheckTribute(c, 3)
  end
  function s.ttop(e, tp, eg, ep, ev, re, r, rp, c)
  	local g = Duel.SelectTribute(tp, c, 3, 3)
  	c:SetMaterial(g)
  	Duel.Release(g, REASON_SUMMON + REASON_MATERIAL)
  end
  function s.adval(e, c)
  	return Duel.GetFieldGroupCount(c:GetControler(), 0, LOCATION_ONFIELD) * 1000
  end
  function s.erascon(e)
  	return e:GetHandler():IsReason(REASON_DESTROY)
  end
  function s.erastg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	local dg = Duel.GetMatchingGroup(aux.TRUE, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, nil)
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, dg, dg:GetCount(), 0, 0)
  end
  function s.erasop(e, tp, eg, ep, ev, re, r, rp)
  	local dg = Duel.GetMatchingGroup(nil, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, nil)
  	Duel.Destroy(dg, REASON_EFFECT)
  end
  function s.destg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, e:GetHandler(), 1, 0, 0)
  end
  function s.desop(e, tp, eg, ep, ev, re, r, rp)
  	Duel.Destroy(e:GetHandler(), REASON_EFFECT)
  end
  
  