Skip to content

Duel.SetChainLimit ​

Signature ​

lua
Duel.SetChainLimit(function f) -> void

Description ​

Registers a temporary chain-limit callback for the current Chain window. The callback is stored with the current reason player and is later called as f(e, chain_player, activating_player). If it returns false, that effect cannot be chained.

Parameters ​

  • f function

Source ​

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

Used By ​

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

  • Detected in 89 indexed script(s).
  • Search this function in the Script Explorer with Duel.SetChainLimit.
CardIDScriptDetected Calls
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Ultra Polymerization76647978Scripts/c76647978.lua1
Enneacraft - Atil.SPIA71801447Scripts/c71801447.lua1
W:P Fancy Ball4993187Scripts/c4993187.lua1
Super Duper Polymerization44886582Scripts/c44886582.lua1
Phara the Primordial Goddess82344137Scripts/c82344137.lua1
Borrelshroud Dragon66452432Scripts/c66452432.lua1
Accesscode Talker86066372Scripts/c86066372.lua2
Borreload Dragon31833038Scripts/c31833038.lua1
Sky Striker Mecha Modules - Multirole24010609Scripts/c24010609.lua1
Metaltronus64664373Scripts/c64664373.lua1
King's Resonance17269895Scripts/c17269895.lua1
Infernoid Pirmais60551528Scripts/c60551528.lua1
Frozen Domain of the Ice Barrier35380371Scripts/c35380371.lua1
Borrelguard Dragon68987122Scripts/c68987122.lua1
Super Polymerization48130397Scripts/c48130397.lua1
Number S38: Titanic Galaxy16110708Scripts/c16110708.lua1
Knight Armed Dragon, the Armored Knight Dragon98007437Scripts/c98007437.lua1
Lovely Labrynth of the Silver Castle2347656Scripts/c2347656.lua1
Uria, Lord of Searing Flames6007213Scripts/c6007213.lua1
The Winged Dragon of Ra - Immortal Phoenix10000090Scripts/c10000090.lua1
Borreload Liberator Dragon27096833Scripts/c27096833.lua1
Megalith Notrah Plura44293356Scripts/c44293356.lua1
Hot Red Dragon Archfiend King Calamity62242678Scripts/c62242678.lua1
...and 65 more

Script Examples ​

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
	Duel.SetOperationInfo(0,CATEGORY_HANDES_OPPO,nil,0,1-tp,1)
	Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,1)
	Duel.SetChainLimit(aux.FALSE)
end
function s.drop(e,tp,eg,ep,ev,re,r,rp)

Ultra Polymerization (76647978) ​

Source: Scripts/c76647978.lua

lua
	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
	if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
		Duel.SetChainLimit(aux.FALSE)
	end
end

Enneacraft - Atil.SPIA (71801447) ​

Source: Scripts/c71801447.lua

lua
	local c=e:GetHandler()
	if ep==1-tp and c:GetFlagEffect(id)>0 then
		Duel.SetChainLimit(s.chainlm)
	end
end