LearnNextEffect - Ingredient

From Creation Kit
Jump to: navigation, 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

int Function LearnNextEffect() native

Parameters

None.

Return Value

0-based index of effect that was learned.

Examples

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

See Also