LearnNextEffect - Ingredient

From the Fallout4 CreationKit Wiki
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]