Duel.AnnounceAttribute
Signature
lua
Duel.AnnounceAttribute(int player, int count, int available) -> intDescription
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
playerintcountintavailableint
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Surprise Fusion | 35167375 | Scripts/c35167375.lua | 2 |
| Mixousia the Confounder | 80843006 | Scripts/c80843006.lua | 2 |
| Plunder Patrollship Jord | 85969517 | Scripts/c85969517.lua | 1 |
| Hyperinvoked Aeon | 33166263 | Scripts/c33166263.lua | 1 |
| Nephe Shaddoll Fusion | 60226558 | Scripts/c60226558.lua | 1 |
| Eidos the Underworld Monarch | 31596518 | Scripts/c31596518.lua | 1 |
| Plunder Patroll Booty | 20426176 | Scripts/c20426176.lua | 1 |
| Theorealize | 48739627 | Scripts/c48739627.lua | 2 |
| Spiritual Art Familiars | 45538320 | Scripts/c45538320.lua | 2 |
| Archnemeses Protos | 6728559 | Scripts/c6728559.lua | 1 |
| Strike of the Monarchs | 5795980 | Scripts/c5795980.lua | 1 |
| Ancient Warriors Saga - Deception and Betrayal | 45115956 | Scripts/c45115956.lua | 1 |
| Crowley, the Magistus of Grimoires | 9505425 | Scripts/c9505425.lua | 1 |
| Shipping Archfiend | 57256127 | Scripts/c57256127.lua | 1 |
| Dark Infant @Ignister | 74567889 | Scripts/c74567889.lua | 1 |
| Dipsea Fiend | 66472129 | Scripts/c66472129.lua | 1 |
| Xyz Poseidon Splash | 16938770 | Scripts/c16938770.lua | 1 |
| Elementsaber Aina | 83032858 | Scripts/c83032858.lua | 1 |
| Elementsaber Nalu | 46425662 | Scripts/c46425662.lua | 1 |
| Elementsaber Molehu | 45702014 | Scripts/c45702014.lua | 1 |
| Ancient Warriors Saga - Sun-Liu Alliance | 58116537 | Scripts/c58116537.lua | 1 |
| You and A.I. | 32056070 | Scripts/c32056070.lua | 1 |
| Tualatin | 27769400 | Scripts/c27769400.lua | 1 |
| Maple Maiden | 73104892 | Scripts/c73104892.lua | 1 |
| ...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)
endPlunder 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)