Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
This card is treated as a Normal Monster while face-up on the field or in the GY. While this card is a Normal Monster on the field, you can Normal Summon it to have it become an Effect Monster with this effect. ● If this card attacks, your opponent cannot activate any Spell/Trap Cards until the end of the Damage Step.
--古代の機械騎士
--Ancient Gear Knight
local s,id=GetID()
function s.initial_effect(c)
	Gemini.AddProcedure(c)
	--Opponent cannot activate Spell/Trap cards
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetCode(EFFECT_CANNOT_ACTIVATE)
	e1:SetRange(LOCATION_MZONE)
	e1:SetTargetRange(0,1)
	e1:SetCondition(function(e) return Gemini.EffectStatusCondition(e) and Duel.GetAttacker()==e:GetHandler() end)
	e1:SetValue(function(_,re) return re:IsHasType(EFFECT_TYPE_ACTIVATE) end)
	c:RegisterEffect(e1)
end