Skip to content

Duel.ChangeTargetCard ​

Signature ​

lua
Duel.ChangeTargetCard(int chainc, Group g) -> void

Description ​

Replaces the target card group recorded for Chain Link chainc with g.

Parameters ​

  • chainc int
  • g Group

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:4924

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 30 indexed script(s).
  • Search this function in the Script Explorer with Duel.ChangeTargetCard.
CardIDScriptDetected Calls
Chaos Magical Hats2372506Scripts/c2372506.lua1
Nerva the Power Patron of Creation53589300Scripts/c53589300.lua1
Dyna Tank75780818Scripts/c75780818.lua1
Artifact Durendal69840739Scripts/c69840739.lua1
Mermail Abysstrite59170782Scripts/c59170782.lua1
Subterror Nemesis Defender68823957Scripts/c68823957.lua1
Blackwing Tamer - Obsidian Hawk Joe81983656Scripts/c81983656.lua1
Samsara D Lotus62318994Scripts/c62318994.lua1
Grapha, Dragon Overlord of Dark World39552584Scripts/c39552584.lua1
Exosister Karmael77675029Scripts/c77675029.lua1
Prototype Sky Striker Ace - Amatsu25072579Scripts/c25072579.lua1
Centur-Ion Chimerea81696879Scripts/c81696879.lua1
World Legacy's Mind Meld27705190Scripts/c27705190.lua1
Abyss Playhouse - Fantastic Theater77297908Scripts/c77297908.lua1
Phantom of Yubel80453041Scripts/c80453041.lua1
Number 75: Bamboozling Gossip Shadow71166481Scripts/c71166481.lua1
Cielo, the Night Sky of Raise Moon - No More Bets!73090586Scripts/c73090586.lua1
Fairy Tail - Sleeper42921475Scripts/c42921475.lua1
Shipping Error58761791Scripts/c58761791.lua1
Cairngorgon, Antiluminescent Knight21501505Scripts/c21501505.lua1
Dark World Brainwashing10131855Scripts/c10131855.lua1
Shift59560625Scripts/c59560625.lua1
Vortex of Time42138622Scripts/c42138622.lua1
Fabled Dianaira53199020Scripts/c53199020.lua1
...and 6 more

Script Examples ​

Chaos Magical Hats (2372506) ​

Source: Scripts/c2372506.lua

lua
	Duel.ShuffleSetCard(sg)
	local tg=Group.CreateGroup()
	Duel.ChangeTargetCard(ev,tg)
	Duel.ChangeChainOperation(ev,s.repop)
end

Nerva the Power Patron of Creation (53589300) ​

Source: Scripts/c53589300.lua

lua
function s.chop(e,tp,eg,ep,ev,re,r,rp)
	local g=Group.CreateGroup()
	Duel.ChangeTargetCard(ev,g)
	Duel.ChangeChainOperation(ev,s.repop)
end

Dyna Tank (75780818) ​

Source: Scripts/c75780818.lua

lua
	local tc=Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) then
		Duel.ChangeTargetCard(ev,Group.FromCards(tc))
	end
end