Skip to content

Duel.ResetFlagEffect ​

Signature ​

lua
Duel.ResetFlagEffect(int player, int code) -> void

Description ​

Resets all player flag effects with code for player. This clears matching player markers manually; card markers use Card.ResetFlagEffect.

How To Use It ​

Use this to manually clear all matching player markers.

lua
Duel.ResetFlagEffect(tp,id)

This only removes player flag effects for the requested player and code. Card markers use Card.ResetFlagEffect.

Parameters ​

  • player int - Player whose matching flag effects are reset.
  • code int - Flag-effect code to clear.

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 28 indexed script(s).
  • Search this function in the Script Explorer with Duel.ResetFlagEffect.
CardIDScriptDetected Calls
Ghostrick Renovation61818176Scripts/c61818176.lua1
Artmage Pact -Awakening-23599634Scripts/c23599634.lua2
Echelon of the Fire Kings38798785Scripts/c38798785.lua2
Beyond the Pendulum22125101Scripts/c22125101.lua1
Favorite Hero11881272Scripts/c11881272.lua2
Jurrac Volcano89948817Scripts/c89948817.lua1
Clown Crew Meteor93172951Scripts/c93172951.lua2
Odd-Eyes Pendulum Dragon, Four Heavenly Dragons75787708Scripts/c75787708.lua1
Heart of the Blue-Eyes54475145Scripts/c54475145.lua1
Sweet Dreams, Nemleria44843954Scripts/c44843954.lua2
Numeron Wall42352091Scripts/c42352091.lua2
PenduLuMoon66150724Scripts/c66150724.lua1
Dragonroid9069157Scripts/c9069157.lua1
Raise Moon Starter Squeeze47605577Scripts/c47605577.lua2
Arcana Force V - The Hierophant3376703Scripts/c3376703.lua2
The Legendary Fisherman III44968687Scripts/c44968687.lua1
Trap Tracks70825459Scripts/c70825459.lua1
Ghost Sister & Spooky Dogwood60643553Scripts/c60643553.lua1
Trap Trick80101899Scripts/c80101899.lua1
Spell Wall84117021Scripts/c84117021.lua2
Mulcharmy Purulia84192580Scripts/c84192580.lua1
Mulcharmy Fuwalos42141493Scripts/c42141493.lua1
Mulcharmy Meowls87126721Scripts/c87126721.lua1
Metaverse89208725Scripts/c89208725.lua2
...and 4 more

Script Examples ​

Ghostrick Renovation (61818176) ​

Source: Scripts/c61818176.lua

lua
		if e:GetLabel()==1 then Duel.RegisterFlagEffect(tp,15248873,RESET_CHAIN,0,1) end
		local g=Duel.GetMatchingGroup(c61818176.actfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,tp)
		Duel.ResetFlagEffect(tp,15248873)
		if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(61818176,1)) then
			Duel.BreakEffect()

Artmage Pact -Awakening- (23599634) ​

Source: Scripts/c23599634.lua

lua
end
function s.resetop(e,tp,eg,ep,ev,re,r,rp)
	Duel.ResetFlagEffect(tp,id)
	e:Reset()
end

Echelon of the Fire Kings (38798785) ​

Source: Scripts/c38798785.lua

lua
		Duel.SetChainLimitTillChainEnd(s.efun)
	end
	Duel.ResetFlagEffect(tp,id)
end
function s.resetop(e,tp,eg,ep,ev,re,r,rp)