LearnNextEffect - Ingredient

From the CreationKit Wiki
Revision as of 13:50, 20 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

See Also[edit | edit source]