name: Bellcat
card_text: 3 monsters, including a Token
  When this card destroys an opponent's monster by battle: You can Special Summon 1 "Bellcat Token" (Machine/WIND/Level 4/ATK 2000/DEF 2000) in Defense Position.
external_ids: local CARD_ID_0 = 22953212 --Bellcat Token
  
lua: local CARD_ID_0 = 22953212 --Bellcat Token
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--link summon
  	aux.AddLinkProcedure(c, nil, 3, 3, s.lcheck)
  	c:EnableReviveLimit()
  	--token
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_SPECIAL_SUMMON + CATEGORY_TOKEN)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
  	e1:SetCode(EVENT_BATTLE_DESTROYING)
  	e1:SetCondition(aux.bdocon)
  	e1:SetTarget(s.tktg)
  	e1:SetOperation(s.tkop)
  	c:RegisterEffect(e1)
  end
  function s.lcheck(g, lc)
  	return g:IsExists(Card.IsLinkType, 1, nil, TYPE_TOKEN)
  end
  function s.tktg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and Duel.IsPlayerCanSpecialSummonMonster(
  			tp,
  			id + 1,
  			0,
  			TYPES_TOKEN_MONSTER,
  			2000,
  			2000,
  			4,
  			RACE_MACHINE,
  			ATTRIBUTE_WIND,
  			POS_FACEUP_DEFENSE
  		)
  	end
  	Duel.SetOperationInfo(0, CATEGORY_TOKEN, nil, 1, 0, 0)
  	Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, nil, 1, 0, 0)
  end
  function s.tkop(e, tp, eg, ep, ev, re, r, rp)
  	if
  		Duel.GetLocationCount(tp, LOCATION_MZONE) <= 0 or not Duel.IsPlayerCanSpecialSummonMonster(tp, id + 1, 0, TYPES_TOKEN_MONSTER, 2000, 2000, 4, RACE_MACHINE, ATTRIBUTE_WIND, POS_FACEUP_DEFENSE)
  	then
  		return
  	end
  	local token = Duel.CreateToken(tp, id + 1)
  	Duel.SpecialSummon(token, 0, tp, tp, false, false, POS_FACEUP_DEFENSE)
  end
  
  
source_text: Bellcat
  3 monsters, including a Token
  When this card destroys an opponent's monster by battle: You can Special Summon 1 "Bellcat Token" (Machine/WIND/Level 4/ATK 2000/DEF 2000) in Defense Position.
target_text: -- Bellcat
  local CARD_ID_0 = 22953212 --Bellcat Token
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--link summon
  	aux.AddLinkProcedure(c, nil, 3, 3, s.lcheck)
  	c:EnableReviveLimit()
  	--token
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_SPECIAL_SUMMON + CATEGORY_TOKEN)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
  	e1:SetCode(EVENT_BATTLE_DESTROYING)
  	e1:SetCondition(aux.bdocon)
  	e1:SetTarget(s.tktg)
  	e1:SetOperation(s.tkop)
  	c:RegisterEffect(e1)
  end
  function s.lcheck(g, lc)
  	return g:IsExists(Card.IsLinkType, 1, nil, TYPE_TOKEN)
  end
  function s.tktg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and Duel.IsPlayerCanSpecialSummonMonster(
  			tp,
  			id + 1,
  			0,
  			TYPES_TOKEN_MONSTER,
  			2000,
  			2000,
  			4,
  			RACE_MACHINE,
  			ATTRIBUTE_WIND,
  			POS_FACEUP_DEFENSE
  		)
  	end
  	Duel.SetOperationInfo(0, CATEGORY_TOKEN, nil, 1, 0, 0)
  	Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, nil, 1, 0, 0)
  end
  function s.tkop(e, tp, eg, ep, ev, re, r, rp)
  	if
  		Duel.GetLocationCount(tp, LOCATION_MZONE) <= 0 or not Duel.IsPlayerCanSpecialSummonMonster(tp, id + 1, 0, TYPES_TOKEN_MONSTER, 2000, 2000, 4, RACE_MACHINE, ATTRIBUTE_WIND, POS_FACEUP_DEFENSE)
  	then
  		return
  	end
  	local token = Duel.CreateToken(tp, id + 1)
  	Duel.SpecialSummon(token, 0, tp, tp, false, false, POS_FACEUP_DEFENSE)
  end
  
  