Skip to content

Duel.Hint ​

Signature ​

lua
Duel.Hint(int hint_type, int player, int desc) -> void

Description ​

Sends a hint message of hint_type to player using desc as the message id. For HINT_SELECTMSG, desc is also stored as that player's last selection hint. HINT_OPSELECTED is displayed to the other player.

Parameters ​

  • hint_type int
  • player int
  • desc int

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 10035 indexed script(s).
  • Search this function in the Script Explorer with Duel.Hint.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua3
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua3
Artmage Non-Finito74631897Scripts/c74631897.lua6
Pendulum Evolution55795155Scripts/c55795155.lua7
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua3
Lady's Dragonmaid48658295Scripts/c48658295.lua5
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua3
Eternal Favorite87532344Scripts/c87532344.lua4
Surprise Fusion35167375Scripts/c35167375.lua5
Astrograph Sorcerer76794549Scripts/c76794549.lua5
Spellbook of the Grand Circle11911336Scripts/c11911336.lua3
Ultra Polymerization76647978Scripts/c76647978.lua2
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua4
Melffy Playtime Surprise58036097Scripts/c58036097.lua2
Ashtraja Susanoo17020474Scripts/c17020474.lua4
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua4
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua3
Yomagna the Fire Phantom17350692Scripts/c17350692.lua3
Fiendsmith's Sequence49867899Scripts/c49867899.lua2
D/D/D Alfred the Divine Sage King11852093Scripts/c11852093.lua3
El Shaddoll Apkallone50907446Scripts/c50907446.lua5
Mementotlan Fusion66518509Scripts/c66518509.lua3
Meteoroa Drytron24166324Scripts/c24166324.lua4
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua4
...and 10011 more

Script Examples ​

Salamandra with Chain (62091148) ​

Source: Scripts/c62091148.lua

lua
	if chk==0 then return e:IsCostChecked()
		and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
	Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
	Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)

Astrograph Sorcerer, the Starfrost Magician (48171151) ​

Source: Scripts/c48171151.lua

lua
	if not c:IsRelateToChain() then return end
	if Duel.Destroy(c,REASON_EFFECT)==0 then return end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
	local g=Duel.SelectMatchingCard(tp,s.pfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,tp)
	local tc=g:GetFirst()

Artmage Non-Finito (74631897) ​

Source: Scripts/c74631897.lua

lua
	local g=s.getrg(tp,c)
	local g2=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND,0,nil)
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
	local tc=g2:SelectUnselect(nil,tp,false,true,1,1)
	if tc then