LearnNextEffect - Ingredient
Revision as of 13:50, 20 October 2011 by imported>Plplecuyer
Member of: Ingredient Script
Flags the next unknown effect as known by the player and returns the index of the effect that was learned.
Syntax[edit | edit source]
int Function LearnNextEffect() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
0-based index of effect that was learned.
Examples[edit | edit source]
; Learn the next effect from the carrot
if (Carrot.LearnNextEffect() == 0)
Debug.Trace("We learned the first effect from the carrot!")
endIf