LearnNextEffect - Ingredient

Revision as of 14:50, 20 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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