LearnNextEffect - Ingredient

Member of: Ingredient Script

Flags the next unknown effect as known by the player and returns the index of the effect that was learned.

SyntaxEdit

int Function LearnNextEffect() native

ParametersEdit

None.

Return ValueEdit

0-based index of effect that was learned.

ExamplesEdit

; Learn the next effect from the carrot
if (Carrot.LearnNextEffect() == 0)
  Debug.Trace("We learned the first effect from the carrot!")
endIf

See AlsoEdit