Skip to content

Duel.AnnounceAttribute ​

Signature ​

lua
Duel.AnnounceAttribute(int player, int count, int available) -> int

Description ​

Lets player declare count Attributes from the available Attribute bitmask and returns the selected Attribute bitmask. available should be a bitwise combination of ATTRIBUTE_* constants.

Parameters ​

  • player int
  • count int
  • available int

Returns ​

  • int - Selected Attribute bitmask.

Source ​

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

Used By ​

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

  • Detected in 54 indexed script(s).
  • Search this function in the Script Explorer with Duel.AnnounceAttribute.
CardIDScriptDetected Calls
Surprise Fusion35167375Scripts/c35167375.lua2
Mixousia the Confounder80843006Scripts/c80843006.lua2
Plunder Patrollship Jord85969517Scripts/c85969517.lua1
Hyperinvoked Aeon33166263Scripts/c33166263.lua1
Nephe Shaddoll Fusion60226558Scripts/c60226558.lua1
Eidos the Underworld Monarch31596518Scripts/c31596518.lua1
Plunder Patroll Booty20426176Scripts/c20426176.lua1
Theorealize48739627Scripts/c48739627.lua2
Spiritual Art Familiars45538320Scripts/c45538320.lua2
Archnemeses Protos6728559Scripts/c6728559.lua1
Strike of the Monarchs5795980Scripts/c5795980.lua1
Ancient Warriors Saga - Deception and Betrayal45115956Scripts/c45115956.lua1
Crowley, the Magistus of Grimoires9505425Scripts/c9505425.lua1
Shipping Archfiend57256127Scripts/c57256127.lua1
Dark Infant @Ignister74567889Scripts/c74567889.lua1
Dipsea Fiend66472129Scripts/c66472129.lua1
Xyz Poseidon Splash16938770Scripts/c16938770.lua1
Elementsaber Aina83032858Scripts/c83032858.lua1
Elementsaber Nalu46425662Scripts/c46425662.lua1
Elementsaber Molehu45702014Scripts/c45702014.lua1
Ancient Warriors Saga - Sun-Liu Alliance58116537Scripts/c58116537.lua1
You and A.I.32056070Scripts/c32056070.lua1
Tualatin27769400Scripts/c27769400.lua1
Maple Maiden73104892Scripts/c73104892.lua1
...and 30 more

Script Examples ​

Surprise Fusion (35167375) ​

Source: Scripts/c35167375.lua

lua
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
	if RACE_ALL&~tc:GetRace()==0 or race==tc:GetRace() then
		att=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL&~tc:GetAttribute())
	else
		att=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL)

Mixousia the Confounder (80843006) ​

Source: Scripts/c80843006.lua

lua
	local g=Duel.SelectTarget(tp,s.cosfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
	local att=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL&~g:GetFirst():GetAttribute())
	e:SetLabel(att)
end

Plunder Patrollship Jord (85969517) ​

Source: Scripts/c85969517.lua

lua
	end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
	local attr=Duel.AnnounceAttribute(tp,1,s.GetLegalAttributesOnly(tp))
	Duel.SetTargetParam(attr)
	Duel.SetOperationInfo(0,CATEGORY_TODECK,c,1,0,0)