Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
Tribute 1 monster to activate this card. All face-up monsters on the field that you own are unaffected by other Trap Cards.
--暴君の威圧
--Tyrant's Temper
local s,id=GetID()
function s.initial_effect(c)
	--Activate
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_FREE_CHAIN)
	e1:SetCost(s.cost)
	c:RegisterEffect(e1)
	--immune
	local e2=Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_FIELD)
	e2:SetCode(EFFECT_IMMUNE_EFFECT)
	e2:SetRange(LOCATION_SZONE)
	e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
	e2:SetTarget(s.etarget)
	e2:SetValue(s.efilter)
	c:RegisterEffect(e2)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.CheckReleaseGroupCost(tp,aux.TRUE,1,false,nil,nil,tp) end
	local g=Duel.SelectReleaseGroupCost(tp,aux.TRUE,1,1,false,nil,nil,tp)
	Duel.Release(g,REASON_COST)
end
function s.etarget(e,c)
	return c:GetOwner()==e:GetHandlerPlayer()
end
function s.efilter(e,te)
	return te:IsTrapEffect() and te:GetOwner()~=e:GetOwner()
end