Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
Choose 1 of these effects; apply that effect, but skip your next Battle Phase. ● Banish cards from the top of your opponent's Deck, up to the number of cards they control. ● Special Summon 1 "Runick" monster from your Extra Deck to the Extra Monster Zone. You can only activate 1 "Runick Smiting Storm" per turn. * The above text is unofficial and describes the card's functionality in the OCG.
--黄金の雫の神碑
--Runick Smiting Storm
--Scripted by Hatter
local s,id=GetID()
function s.initial_effect(c)
	--Activate
	local e1=Effect.CreateMysteruneQPEffect(c,id,0,s.rmtg,s.rmop,1)
	c:RegisterEffect(e1)
end
s.listed_series={SET_RUNICK}
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)>0 end
end
function s.rmop(e,tp,eg,ep,ev,re,r,rp)
	local max=math.min(Duel.GetFieldGroupCount(tp,0,LOCATION_DECK),Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD))
	if max<1 then return end
	Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,3))
	local ct=Duel.AnnounceNumberRange(tp,1,max)
	if ct<1 then return end
	local rg=Duel.GetDecktopGroup(1-tp,ct)
	if #rg>0 then
		Duel.DisableShuffleCheck()
		Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)
	end
end