Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
This card is used to Ritual Summon "Ruin, Queen of Oblivion" or "Demise, King of Armageddon" from your hand or Deck. You must also Tribute Ritual Monsters from your hand whose total Levels equal or exceed the Level of the Ritual Monster you Ritual Summon. You can only activate 1 "Turning of the World" per turn.
--リバース・オブ・ザ・ワールド
--Turning of the World
local s,id=GetID()
function s.initial_effect(c)
	--Ritual Summon
	local e1=Ritual.CreateProc(c,RITPROC_GREATER,aux.FilterBoolFunction(Card.IsCode,46427957,72426662),nil,nil,nil,nil,s.mfilter,nil,LOCATION_HAND|LOCATION_DECK)
	e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH)
	c:RegisterEffect(e1)
end
s.listed_names={46427957,72426662}
function s.mfilter(c)
	return c:IsLocation(LOCATION_HAND) and c:IsType(TYPE_RITUAL)
end