Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
Activate this card by declaring 1 Attribute; the equipped monster becomes that Attribute.
--幻惑の巻物
--Scroll of Bewitchment
local s,id=GetID()
function s.initial_effect(c)
	aux.AddEquipProcedure(c,nil,nil,nil,nil,s.target)
	--ATTRIBUTE
	local e2=Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_EQUIP)
	e2:SetCode(EFFECT_CHANGE_ATTRIBUTE)
	e2:SetCondition(s.attcon)
	e2:SetValue(s.value)
	c:RegisterEffect(e2)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,tc,chk)
	if chk==0 then return true end
	local rc=tc:AnnounceAnotherAttribute(tp)
	e:GetHandler():RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD,0,1,rc)
	e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc)
end
function s.attcon(e)
	return e:GetHandler():GetFlagEffect(id)~=0
end
function s.value(e,c)
	return e:GetHandler():GetFlagEffectLabel(id)
end