name: Locomotion
card_text: 1 "Genex" Tuner + 1 or more non-Tuner DARK monsters
  When this card is Synchro Summoned, take control of the face-up monster your opponent controls with the highest Level. (If it's a tie, you get to choose.)
external_ids: local SETCARD_ID_0 = 0x2 --Genex
  
lua: local SETCARD_ID_0 = 0x2 --Genex
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--synchro summon
  	aux.AddSynchroProcedure(c, aux.FilterBoolFunction(Card.IsSetCard, SETCARD_ID_0), aux.NonTuner(Card.IsAttribute, ATTRIBUTE_DARK), 1)
  	c:EnableReviveLimit()
  	--control
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_CONTROL)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
  	e1:SetCondition(s.ctcon)
  	e1:SetOperation(s.ctop)
  	c:RegisterEffect(e1)
  end
  function s.ctcon(e, tp, eg, ep, ev, re, r, rp)
  	return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:GetLevel() > 0
  end
  function s.ctop(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetMatchingGroup(s.filter, tp, 0, LOCATION_MZONE, nil)
  	if g:GetCount() == 0 then
  		return
  	end
  	local sg = g:GetMaxGroup(Card.GetLevel)
  	if sg:GetCount() > 1 then
  		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_CONTROL)
  		sg = sg:Select(tp, 1, 1, nil)
  	end
  	local tc = sg:GetFirst()
  	Duel.GetControl(tc, tp)
  end
  
  
source_text: Locomotion
  1 "Genex" Tuner + 1 or more non-Tuner DARK monsters
  When this card is Synchro Summoned, take control of the face-up monster your opponent controls with the highest Level. (If it's a tie, you get to choose.)
target_text: -- Locomotion
  local SETCARD_ID_0 = 0x2 --Genex
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--synchro summon
  	aux.AddSynchroProcedure(c, aux.FilterBoolFunction(Card.IsSetCard, SETCARD_ID_0), aux.NonTuner(Card.IsAttribute, ATTRIBUTE_DARK), 1)
  	c:EnableReviveLimit()
  	--control
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_CONTROL)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
  	e1:SetCondition(s.ctcon)
  	e1:SetOperation(s.ctop)
  	c:RegisterEffect(e1)
  end
  function s.ctcon(e, tp, eg, ep, ev, re, r, rp)
  	return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:GetLevel() > 0
  end
  function s.ctop(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetMatchingGroup(s.filter, tp, 0, LOCATION_MZONE, nil)
  	if g:GetCount() == 0 then
  		return
  	end
  	local sg = g:GetMaxGroup(Card.GetLevel)
  	if sg:GetCount() > 1 then
  		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_CONTROL)
  		sg = sg:Select(tp, 1, 1, nil)
  	end
  	local tc = sg:GetFirst()
  	Duel.GetControl(tc, tp)
  end
  
  