Amazement
When your opponent activates a card or effect that targets an "Amazement" monster(s) you control: Target 1 of those "Amazement" monsters you control; return it to the hand, then, you can Special Summon 1 "Amazement" monster from your hand.
local SETCARD_ID_0 = 0x15b --Amazement

local SETCARD_ID_0 = 0x15b --Amazement
local s, id, o = GetID()
function s.initial_effect(c)
	--tohand and spsummon
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON + CATEGORY_TOHAND)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_CHAINING)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetCondition(s.spcon)
	e1:SetTarget(s.sptg)
	e1:SetOperation(s.spop)
	c:RegisterEffect(e1)
end
function s.thfilter(c, tp, e)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0) and c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) and c:IsCanBeEffectTarget(e) and c:IsAbleToHand()
end
function s.spcon(e, tp, eg, ep, ev, re, r, rp)
	if rp == tp or not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then
		return false
	end
	local tg = Duel.GetChainInfo(ev, CHAININFO_TARGET_CARDS)
	return tg and tg:IsExists(s.thfilter, 1, nil, tp, e)
end
function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	local g = Duel.GetChainInfo(ev, CHAININFO_TARGET_CARDS)
	if chkc then
		return eg:IsContains(chkc) and s.thfilter(chkc, tp, e)
	end
	if chk == 0 then
		return true
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_RTOHAND)
	local sg = g:FilterSelect(tp, s.thfilter, 1, 1, nil, tp, e)
	Duel.SetTargetCard(sg)
	Duel.SetOperationInfo(0, CATEGORY_TOHAND, sg, 1, 0, 0)
end
function s.spfilter(c, e, tp)
	return c:IsSetCard(SETCARD_ID_0) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
end
function s.spop(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc, nil, REASON_EFFECT) ~= 0 then
		local g = Duel.GetMatchingGroup(s.spfilter, tp, LOCATION_HAND, 0, nil, e, tp)
		if #g > 0 and Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
			Duel.BreakEffect()
			Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_SPSUMMON)
			local sg = g:Select(tp, 1, 1, nil)
			Duel.SpecialSummon(sg, 0, tp, tp, false, false, POS_FACEUP)
		end
	end
end


Amazement
When your opponent activates a card or effect that targets an "Amazement" monster(s) you control: Target 1 of those "Amazement" monsters you control; return it to the hand, then, you can Special Summon 1 "Amazement" monster from your hand.
-- Amazement
local SETCARD_ID_0 = 0x15b --Amazement
local s, id, o = GetID()
function s.initial_effect(c)
	--tohand and spsummon
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON + CATEGORY_TOHAND)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_CHAINING)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetCondition(s.spcon)
	e1:SetTarget(s.sptg)
	e1:SetOperation(s.spop)
	c:RegisterEffect(e1)
end
function s.thfilter(c, tp, e)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0) and c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) and c:IsCanBeEffectTarget(e) and c:IsAbleToHand()
end
function s.spcon(e, tp, eg, ep, ev, re, r, rp)
	if rp == tp or not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then
		return false
	end
	local tg = Duel.GetChainInfo(ev, CHAININFO_TARGET_CARDS)
	return tg and tg:IsExists(s.thfilter, 1, nil, tp, e)
end
function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	local g = Duel.GetChainInfo(ev, CHAININFO_TARGET_CARDS)
	if chkc then
		return eg:IsContains(chkc) and s.thfilter(chkc, tp, e)
	end
	if chk == 0 then
		return true
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_RTOHAND)
	local sg = g:FilterSelect(tp, s.thfilter, 1, 1, nil, tp, e)
	Duel.SetTargetCard(sg)
	Duel.SetOperationInfo(0, CATEGORY_TOHAND, sg, 1, 0, 0)
end
function s.spfilter(c, e, tp)
	return c:IsSetCard(SETCARD_ID_0) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
end
function s.spop(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc, nil, REASON_EFFECT) ~= 0 then
		local g = Duel.GetMatchingGroup(s.spfilter, tp, LOCATION_HAND, 0, nil, e, tp)
		if #g > 0 and Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
			Duel.BreakEffect()
			Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_SPSUMMON)
			local sg = g:Select(tp, 1, 1, nil)
			Duel.SpecialSummon(sg, 0, tp, tp, false, false, POS_FACEUP)
		end
	end
end

