Effect.SetHintTiming
Signature
lua
Effect.SetHintTiming(Effect e, int s_time, [int o_time]) -> voidDescription
Sets when the client should offer or highlight e for the handler's controller and, optionally, the opponent. If o_time is omitted, the local core copies s_time to the opponent-side mask; masks are interpreted relative to the handler's controller when prompts are checked. This controls prompting and display timing only; it does not replace activation legality checks in the effect's condition, cost, or target callbacks.
Parameters
eEffects_timeint- Hint timing mask for the handler's controller.o_timeintoptional - Hint timing mask for the opponent. Defaults to s_time.
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:624
Guided Examples
Learn how to use this function in context:
- Categories, Properties, And Hint Timing
- Chain Timing And Activation Windows
- Client UI And Prompt Behavior
- First Scripts To Study
- Normal And Continuous Traps
- Quick-Play Spells
More guided lessons (2)
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1888 indexed script(s).
- Search this function in the Script Explorer with
Effect.SetHintTiming.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(aux.dscon)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,id+o*2)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e3:SetCondition(s.fspcon)
e3:SetTarget(s.fsptg)Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
e5:SetCode(EVENT_FREE_CHAIN)
e5:SetRange(LOCATION_MZONE)
e5:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e5:SetCountLimit(1)
e5:SetCondition(s.fspcon)