name: Talkback
card_text: 1 Level 2 or lower Cyberse monster
  You can Tribute 1 other Cyberse monster, then target 1 "Code Talker" monster in your GY with a different original name from that monster; Special Summon it to your zone this card points to. You can only use this effect of "Talkback Lancer" once per turn.
external_ids: local SETCARD_ID_0 = 0x101 --code
  
lua: local SETCARD_ID_0 = 0x101 --code
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--link summon
  	aux.AddLinkProcedure(c, s.matfilter, 1, 1)
  	c:EnableReviveLimit()
  	--spsummon
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
  	e1:SetType(EFFECT_TYPE_IGNITION)
  	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCountLimit(1, id)
  	e1:SetCost(s.spcost)
  	e1:SetTarget(s.sptg)
  	e1:SetOperation(s.spop)
  	c:RegisterEffect(e1)
  end
  function s.matfilter(c)
  	return c:IsLevelBelow(2) and c:IsLinkRace(RACE_CYBERSE)
  end
  function s.cfilter(c, e, tp, zone)
  	return c:IsRace(RACE_CYBERSE)
  		and c:IsType(TYPE_MONSTER)
  		and Duel.GetMZoneCount(tp, c, tp, LOCATION_REASON_TOFIELD, zone) > 0
  		and Duel.IsExistingTarget(s.spfilter, tp, LOCATION_GRAVE, 0, 1, nil, e, tp, c)
  end
  function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
  	local c = e:GetHandler()
  	local zone = c:GetLinkedZone(tp)
  	if chk == 0 then
  		return Duel.CheckReleaseGroup(tp, s.cfilter, 1, c, e, tp, zone)
  	end
  	local g = Duel.SelectReleaseGroup(tp, s.cfilter, 1, 1, c, e, tp, zone)
  	Duel.Release(g, REASON_COST)
  	e:SetLabelObject(g:GetFirst())
  end
  function s.spfilter(c, e, tp, rc)
  	return c:IsSetCard(SETCARD_ID_0) and c:IsType(TYPE_MONSTER) and not c:IsOriginalCodeRule(rc:GetOriginalCodeRule()) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
  end
  function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	local cc = e:GetLabelObject()
  	if chkc then
  		return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc, e, tp, cc)
  	end
  	if chk == 0 then
  		return true
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_SPSUMMON)
  	local g = Duel.SelectTarget(tp, s.spfilter, tp, LOCATION_GRAVE, 0, 1, 1, nil, e, tp, cc)
  	Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, g, 1, 0, 0)
  end
  function s.spop(e, tp, eg, ep, ev, re, r, rp)
  	local zone = e:GetHandler():GetLinkedZone(tp)
  	local tc = Duel.GetFirstTarget()
  	if tc:IsRelateToEffect(e) and zone & 0x1f ~= 0 then
  		Duel.SpecialSummon(tc, 0, tp, tp, false, false, POS_FACEUP, zone)
  	end
  end
  
  
source_text: Talkback
  1 Level 2 or lower Cyberse monster
  You can Tribute 1 other Cyberse monster, then target 1 "Code Talker" monster in your GY with a different original name from that monster; Special Summon it to your zone this card points to. You can only use this effect of "Talkback Lancer" once per turn.
target_text: -- Talkback
  local SETCARD_ID_0 = 0x101 --code
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--link summon
  	aux.AddLinkProcedure(c, s.matfilter, 1, 1)
  	c:EnableReviveLimit()
  	--spsummon
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
  	e1:SetType(EFFECT_TYPE_IGNITION)
  	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCountLimit(1, id)
  	e1:SetCost(s.spcost)
  	e1:SetTarget(s.sptg)
  	e1:SetOperation(s.spop)
  	c:RegisterEffect(e1)
  end
  function s.matfilter(c)
  	return c:IsLevelBelow(2) and c:IsLinkRace(RACE_CYBERSE)
  end
  function s.cfilter(c, e, tp, zone)
  	return c:IsRace(RACE_CYBERSE)
  		and c:IsType(TYPE_MONSTER)
  		and Duel.GetMZoneCount(tp, c, tp, LOCATION_REASON_TOFIELD, zone) > 0
  		and Duel.IsExistingTarget(s.spfilter, tp, LOCATION_GRAVE, 0, 1, nil, e, tp, c)
  end
  function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
  	local c = e:GetHandler()
  	local zone = c:GetLinkedZone(tp)
  	if chk == 0 then
  		return Duel.CheckReleaseGroup(tp, s.cfilter, 1, c, e, tp, zone)
  	end
  	local g = Duel.SelectReleaseGroup(tp, s.cfilter, 1, 1, c, e, tp, zone)
  	Duel.Release(g, REASON_COST)
  	e:SetLabelObject(g:GetFirst())
  end
  function s.spfilter(c, e, tp, rc)
  	return c:IsSetCard(SETCARD_ID_0) and c:IsType(TYPE_MONSTER) and not c:IsOriginalCodeRule(rc:GetOriginalCodeRule()) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
  end
  function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	local cc = e:GetLabelObject()
  	if chkc then
  		return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc, e, tp, cc)
  	end
  	if chk == 0 then
  		return true
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_SPSUMMON)
  	local g = Duel.SelectTarget(tp, s.spfilter, tp, LOCATION_GRAVE, 0, 1, 1, nil, e, tp, cc)
  	Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, g, 1, 0, 0)
  end
  function s.spop(e, tp, eg, ep, ev, re, r, rp)
  	local zone = e:GetHandler():GetLinkedZone(tp)
  	local tc = Duel.GetFirstTarget()
  	if tc:IsRelateToEffect(e) and zone & 0x1f ~= 0 then
  		Duel.SpecialSummon(tc, 0, tp, tp, false, false, POS_FACEUP, zone)
  	end
  end
  
  