Hi-Speedroid
1 WIND Machine Tuner + 1+ non-Tuner monsters
If this card is Synchro Summoned: You can activate 1 of these effects;
��Destroy all other cards on the field.
��Negate the effects of all face-up cards your opponent currently controls.
If this card in your possession is sent to your GY by an opponent's card: You can add 1 "Speedroid" monster from your Deck to your hand.
You can only use each effect of "Hi-Speedroid Kitedrake" once per turn.
local SETCARD_ID_0 = 0x2016 --Speedroid

local SETCARD_ID_0 = 0x2016 --Speedroid
local s, id, o = GetID()
function s.initial_effect(c)
	--synchro summon
	aux.AddSynchroProcedure(c, s.sfilter, aux.NonTuner(nil), 1)
	c:EnableReviveLimit()
	--link success
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
	e1:SetProperty(EFFECT_FLAG_DELAY)
	e1:SetCountLimit(1, id)
	e1:SetCondition(s.con)
	e1:SetTarget(s.target)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
	--spsummon
	local e2 = Effect.CreateEffect(c)
	e2:SetDescription(aux.Stringid(id, 3))
	e2:SetCategory(CATEGORY_TOHAND + CATEGORY_SEARCH)
	e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e2:SetCode(EVENT_TO_GRAVE)
	e2:SetCountLimit(1, id + 1)
	e2:SetProperty(EFFECT_FLAG_DELAY)
	e2:SetCondition(s.thcon)
	e2:SetTarget(s.thtg)
	e2:SetOperation(s.thop)
	c:RegisterEffect(e2)
end
function s.sfilter(c)
	return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_WIND)
end
function s.con(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	local b1 = Duel.GetMatchingGroup(nil, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, e:GetHandler())
	local b2 = Duel.GetMatchingGroup(aux.NegateAnyFilter, tp, 0, LOCATION_ONFIELD, nil)
	if chk == 0 then
		return #b1 > 0 or #b2 > 0
	end
	local off = 1
	local ops = {}
	local opval = {}
	if #b1 > 0 then
		ops[off] = aux.Stringid(id, 1)
		opval[off] = 0
		off = off + 1
	end
	if #b2 > 0 then
		ops[off] = aux.Stringid(id, 2)
		opval[off] = 1
		off = off + 1
	end
	local op = Duel.SelectOption(tp, table.unpack(ops)) + 1
	local sel = opval[op]
	e:SetLabel(sel)
	Duel.Hint(HINT_OPSELECTED, 1 - tp, aux.Stringid(id, sel + 1))
	if sel == 0 then
		e:SetCategory(CATEGORY_DESTROY)
		Duel.SetOperationInfo(0, CATEGORY_DESTROY, b1, b1:GetCount(), 0, 0)
	else
		e:SetCategory(CATEGORY_DISABLE)
	end
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	local sel = e:GetLabel()
	local c = e:GetHandler()
	local b1 = Duel.GetMatchingGroup(nil, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, aux.ExceptThisCard(e))
	local b2 = Duel.GetMatchingGroup(aux.NegateAnyFilter, tp, 0, LOCATION_ONFIELD, nil)
	if sel == 0 then
		Duel.Destroy(b1, REASON_EFFECT)
	else
		local nc = b2:GetFirst()
		while nc do
			local e1 = Effect.CreateEffect(c)
			e1:SetType(EFFECT_TYPE_SINGLE)
			e1:SetCode(EFFECT_DISABLE)
			e1:SetReset(RESET_EVENT + RESETS_STANDARD)
			nc:RegisterEffect(e1)
			local e2 = Effect.CreateEffect(c)
			e2:SetType(EFFECT_TYPE_SINGLE)
			e2:SetCode(EFFECT_DISABLE_EFFECT)
			e2:SetReset(RESET_EVENT + RESETS_STANDARD)
			nc:RegisterEffect(e2)
			if nc:IsType(TYPE_TRAPMONSTER) then
				local e3 = Effect.CreateEffect(c)
				e3:SetType(EFFECT_TYPE_SINGLE)
				e3:SetCode(EFFECT_DISABLE_TRAPMONSTER)
				e3:SetReset(RESET_EVENT + RESETS_STANDARD)
				nc:RegisterEffect(e3)
			end
			nc = b2:GetNext()
		end
	end
end
function s.thcon(e, tp, eg, ep, ev, re, r, rp)
	local c = e:GetHandler()
	return rp == 1 - tp and c:IsPreviousControler(tp)
end
function s.thfilter(c)
	return c:IsSetCard(SETCARD_ID_0) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function s.thtg(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return Duel.IsExistingMatchingCard(s.thfilter, tp, LOCATION_DECK, 0, 1, nil)
	end
	Duel.SetOperationInfo(0, CATEGORY_TOHAND, nil, 1, tp, LOCATION_DECK)
end
function s.thop(e, tp, eg, ep, ev, re, r, rp)
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATOHAND)
	local g = Duel.SelectMatchingCard(tp, s.thfilter, tp, LOCATION_DECK, 0, 1, 1, nil)
	if g:GetCount() > 0 then
		Duel.SendtoHand(g, nil, REASON_EFFECT)
		Duel.ConfirmCards(1 - tp, g)
	end
end


Hi-Speedroid
1 WIND Machine Tuner + 1+ non-Tuner monsters
If this card is Synchro Summoned: You can activate 1 of these effects;
��Destroy all other cards on the field.
��Negate the effects of all face-up cards your opponent currently controls.
If this card in your possession is sent to your GY by an opponent's card: You can add 1 "Speedroid" monster from your Deck to your hand.
You can only use each effect of "Hi-Speedroid Kitedrake" once per turn.
-- Hi-Speedroid
local SETCARD_ID_0 = 0x2016 --Speedroid
local s, id, o = GetID()
function s.initial_effect(c)
	--synchro summon
	aux.AddSynchroProcedure(c, s.sfilter, aux.NonTuner(nil), 1)
	c:EnableReviveLimit()
	--link success
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
	e1:SetProperty(EFFECT_FLAG_DELAY)
	e1:SetCountLimit(1, id)
	e1:SetCondition(s.con)
	e1:SetTarget(s.target)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
	--spsummon
	local e2 = Effect.CreateEffect(c)
	e2:SetDescription(aux.Stringid(id, 3))
	e2:SetCategory(CATEGORY_TOHAND + CATEGORY_SEARCH)
	e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e2:SetCode(EVENT_TO_GRAVE)
	e2:SetCountLimit(1, id + 1)
	e2:SetProperty(EFFECT_FLAG_DELAY)
	e2:SetCondition(s.thcon)
	e2:SetTarget(s.thtg)
	e2:SetOperation(s.thop)
	c:RegisterEffect(e2)
end
function s.sfilter(c)
	return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_WIND)
end
function s.con(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	local b1 = Duel.GetMatchingGroup(nil, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, e:GetHandler())
	local b2 = Duel.GetMatchingGroup(aux.NegateAnyFilter, tp, 0, LOCATION_ONFIELD, nil)
	if chk == 0 then
		return #b1 > 0 or #b2 > 0
	end
	local off = 1
	local ops = {}
	local opval = {}
	if #b1 > 0 then
		ops[off] = aux.Stringid(id, 1)
		opval[off] = 0
		off = off + 1
	end
	if #b2 > 0 then
		ops[off] = aux.Stringid(id, 2)
		opval[off] = 1
		off = off + 1
	end
	local op = Duel.SelectOption(tp, table.unpack(ops)) + 1
	local sel = opval[op]
	e:SetLabel(sel)
	Duel.Hint(HINT_OPSELECTED, 1 - tp, aux.Stringid(id, sel + 1))
	if sel == 0 then
		e:SetCategory(CATEGORY_DESTROY)
		Duel.SetOperationInfo(0, CATEGORY_DESTROY, b1, b1:GetCount(), 0, 0)
	else
		e:SetCategory(CATEGORY_DISABLE)
	end
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	local sel = e:GetLabel()
	local c = e:GetHandler()
	local b1 = Duel.GetMatchingGroup(nil, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, aux.ExceptThisCard(e))
	local b2 = Duel.GetMatchingGroup(aux.NegateAnyFilter, tp, 0, LOCATION_ONFIELD, nil)
	if sel == 0 then
		Duel.Destroy(b1, REASON_EFFECT)
	else
		local nc = b2:GetFirst()
		while nc do
			local e1 = Effect.CreateEffect(c)
			e1:SetType(EFFECT_TYPE_SINGLE)
			e1:SetCode(EFFECT_DISABLE)
			e1:SetReset(RESET_EVENT + RESETS_STANDARD)
			nc:RegisterEffect(e1)
			local e2 = Effect.CreateEffect(c)
			e2:SetType(EFFECT_TYPE_SINGLE)
			e2:SetCode(EFFECT_DISABLE_EFFECT)
			e2:SetReset(RESET_EVENT + RESETS_STANDARD)
			nc:RegisterEffect(e2)
			if nc:IsType(TYPE_TRAPMONSTER) then
				local e3 = Effect.CreateEffect(c)
				e3:SetType(EFFECT_TYPE_SINGLE)
				e3:SetCode(EFFECT_DISABLE_TRAPMONSTER)
				e3:SetReset(RESET_EVENT + RESETS_STANDARD)
				nc:RegisterEffect(e3)
			end
			nc = b2:GetNext()
		end
	end
end
function s.thcon(e, tp, eg, ep, ev, re, r, rp)
	local c = e:GetHandler()
	return rp == 1 - tp and c:IsPreviousControler(tp)
end
function s.thfilter(c)
	return c:IsSetCard(SETCARD_ID_0) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function s.thtg(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return Duel.IsExistingMatchingCard(s.thfilter, tp, LOCATION_DECK, 0, 1, nil)
	end
	Duel.SetOperationInfo(0, CATEGORY_TOHAND, nil, 1, tp, LOCATION_DECK)
end
function s.thop(e, tp, eg, ep, ev, re, r, rp)
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATOHAND)
	local g = Duel.SelectMatchingCard(tp, s.thfilter, tp, LOCATION_DECK, 0, 1, 1, nil)
	if g:GetCount() > 0 then
		Duel.SendtoHand(g, nil, REASON_EFFECT)
		Duel.ConfirmCards(1 - tp, g)
	end
end

