Hope
If your opponent's LP is at least 1000 higher than yours: Pay 1000 LP; draw 1 card for every 2000 points difference between your LP and your opponent's.
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_DRAW)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_FREE_CHAIN)
	e1:SetCondition(s.condition)
	e1:SetCost(s.cost)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return Duel.GetLP(tp) <= Duel.GetLP(1 - tp) - 1000
end
function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
	e:SetLabel(1)
	if chk == 0 then
		return Duel.CheckLPCost(tp, 1000)
	end
	Duel.PayLPCost(tp, 1000)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		if e:GetLabel() == 0 then
			return Duel.IsPlayerCanDraw(tp, math.floor(math.abs(Duel.GetLP(tp) - Duel.GetLP(1 - tp)) / 2000))
		end
		e:SetLabel(0)
		local cost = 1000
		local ce = { Duel.IsPlayerAffectedByEffect(tp, EFFECT_LPCOST_CHANGE) }
		for _, te in ipairs(ce) do
			local con = te:GetCondition()
			local val = te:GetValue()
			if not con or con(te) then
				cost = val(te, e, tp, 1000)
			end
		end
		local lp = Duel.GetLP(tp) - cost
		return Duel.IsPlayerCanDraw(tp, math.floor(math.abs(lp - Duel.GetLP(1 - tp)) / 2000))
	end
	Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 0, tp, math.floor(math.abs(Duel.GetLP(tp) - Duel.GetLP(1 - tp)) / 2000))
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	local p1 = Duel.GetLP(tp)
	local p2 = Duel.GetLP(1 - tp)
	local s = p2 - p1
	if s < 0 then
		s = p1 - p2
	end
	local d = math.floor(s / 2000)
	Duel.Draw(tp, d, REASON_EFFECT)
end


Hope
If your opponent's LP is at least 1000 higher than yours: Pay 1000 LP; draw 1 card for every 2000 points difference between your LP and your opponent's.
-- Hope
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_DRAW)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_FREE_CHAIN)
	e1:SetCondition(s.condition)
	e1:SetCost(s.cost)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return Duel.GetLP(tp) <= Duel.GetLP(1 - tp) - 1000
end
function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
	e:SetLabel(1)
	if chk == 0 then
		return Duel.CheckLPCost(tp, 1000)
	end
	Duel.PayLPCost(tp, 1000)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		if e:GetLabel() == 0 then
			return Duel.IsPlayerCanDraw(tp, math.floor(math.abs(Duel.GetLP(tp) - Duel.GetLP(1 - tp)) / 2000))
		end
		e:SetLabel(0)
		local cost = 1000
		local ce = { Duel.IsPlayerAffectedByEffect(tp, EFFECT_LPCOST_CHANGE) }
		for _, te in ipairs(ce) do
			local con = te:GetCondition()
			local val = te:GetValue()
			if not con or con(te) then
				cost = val(te, e, tp, 1000)
			end
		end
		local lp = Duel.GetLP(tp) - cost
		return Duel.IsPlayerCanDraw(tp, math.floor(math.abs(lp - Duel.GetLP(1 - tp)) / 2000))
	end
	Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 0, tp, math.floor(math.abs(Duel.GetLP(tp) - Duel.GetLP(1 - tp)) / 2000))
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	local p1 = Duel.GetLP(tp)
	local p2 = Duel.GetLP(1 - tp)
	local s = p2 - p1
	if s < 0 then
		s = p1 - p2
	end
	local d = math.floor(s / 2000)
	Duel.Draw(tp, d, REASON_EFFECT)
end

