Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
If this card attacks a monster, after damage calculation: The ATK of that monster becomes 0, also it cannot change its battle position.
--レプティレス・ゴルゴーン
--Reptilianne Gorgon
local s,id=GetID()
function s.initial_effect(c)
	--Attacked monster's ATK becomes 0, also cannot change its battle position
	local e1=Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id,0))
	e1:SetCategory(CATEGORY_ATKCHANGE)
	e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
	e1:SetCode(EVENT_BATTLED)
	e1:SetCondition(s.condition)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
	return e:GetHandler()==Duel.GetAttacker() and Duel.GetAttackTarget()
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
	local d=Duel.GetAttackTarget()
	if not d:IsRelateToBattle() then return end
	--ATK becomes 0
	local e1=Effect.CreateEffect(e:GetHandler())
	e1:SetType(EFFECT_TYPE_SINGLE)
	e1:SetCode(EFFECT_SET_ATTACK_FINAL)
	e1:SetValue(0)
	e1:SetReset(RESET_EVENT|RESETS_STANDARD)
	d:RegisterEffect(e1)
	--Cannot change its battle position
	local e2=Effect.CreateEffect(e:GetHandler())
	e2:SetDescription(3313)
	e2:SetProperty(EFFECT_FLAG_CLIENT_HINT)
	e2:SetType(EFFECT_TYPE_SINGLE)
	e2:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
	e2:SetReset(RESET_EVENT|RESETS_STANDARD)
	d:RegisterEffect(e2)
end