Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
While this card is in Defense Position, all Plant-Type monsters you control gain 500 ATK and DEF.
--妖精王オベロン
--Fairy King Truesdale
local s,id=GetID()
function s.initial_effect(c)
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetRange(LOCATION_MZONE)
	e1:SetTargetRange(LOCATION_MZONE,0)
	e1:SetCode(EFFECT_UPDATE_ATTACK)
	e1:SetCondition(s.con)
	e1:SetTarget(s.tg)
	e1:SetValue(500)
	c:RegisterEffect(e1)
	local e2=e1:Clone()
	e2:SetCode(EFFECT_UPDATE_DEFENSE)
	e2:SetValue(500)
	c:RegisterEffect(e2)
end
function s.con(e)
	return e:GetHandler():IsDefensePos()
end
function s.tg(e,c)
	return c:IsRace(RACE_PLANT)
end