Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
Inflict 400 damage to your opponent each time you activate a Normal Spell Card.
--連弾の魔術師
--Rapid-Fire Magician
local s,id=GetID()
function s.initial_effect(c)
	--damage
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
	e1:SetCode(EVENT_CHAIN_SOLVED)
	e1:SetRange(LOCATION_MZONE)
	e1:SetOperation(s.damop)
	c:RegisterEffect(e1)
end
function s.damop(e,tp,eg,ep,ev,re,r,rp)
	if re:GetActiveType()==TYPE_SPELL and re:IsHasType(EFFECT_TYPE_ACTIVATE) and rp==tp then
		Duel.Damage(1-tp,400,REASON_EFFECT)
	end
end