Class IngredientScript
- Namespace
- SkyrimForge.Papyrus
- Assembly
- SkyrimForge.Game.dll
Functions and comments from Ingredient.psc.
public static class IngredientScript
- Inheritance
-
IngredientScript
- Inherited Members
Properties
Dispatcher
The dispatcher that binds this script to a form and calls the functions and properties that have no generated member.
public static PapyrusScriptDispatcher Dispatcher { get; }
Property Value
Methods
GetCostliestEffectIndex(PapyrusScript<Ingredient>)
return the index of the costliest effect
public static Task<int> GetCostliestEffectIndex(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
GetEffectAreas(PapyrusScript<Ingredient>)
Returns all the areas of this object in order
public static Task<int[]> GetEffectAreas(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
GetEffectDurations(PapyrusScript<Ingredient>)
Returns all the durations of this object in order
public static Task<int[]> GetEffectDurations(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
GetEffectMagnitudes(PapyrusScript<Ingredient>)
Returns all the magnitudes of this object in order
public static Task<float[]> GetEffectMagnitudes(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
GetIsNthEffectKnown(PapyrusScript<Ingredient>, int)
determines whether the player knows this effect
public static Task<bool> GetIsNthEffectKnown(this PapyrusScript<Ingredient> self, int index)
Parameters
selfPapyrusScript<Ingredient>indexint
Returns
GetMagicEffects(PapyrusScript<Ingredient>)
Returns all the magic effects of this object in order
public static Task<MagicEffect[]> GetMagicEffects(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
- Task<MagicEffect[]>
GetNthEffectArea(PapyrusScript<Ingredient>, int)
return the area of the specified effect
public static Task<int> GetNthEffectArea(this PapyrusScript<Ingredient> self, int index)
Parameters
selfPapyrusScript<Ingredient>indexint
Returns
GetNthEffectDuration(PapyrusScript<Ingredient>, int)
return the duration of the specified effect
public static Task<int> GetNthEffectDuration(this PapyrusScript<Ingredient> self, int index)
Parameters
selfPapyrusScript<Ingredient>indexint
Returns
GetNthEffectMagicEffect(PapyrusScript<Ingredient>, int)
return the magic effect of the specified effect
public static Task<MagicEffect?> GetNthEffectMagicEffect(this PapyrusScript<Ingredient> self, int index)
Parameters
selfPapyrusScript<Ingredient>indexint
Returns
GetNthEffectMagnitude(PapyrusScript<Ingredient>, int)
return the magnitude of the specified effect
public static Task<float> GetNthEffectMagnitude(this PapyrusScript<Ingredient> self, int index)
Parameters
selfPapyrusScript<Ingredient>indexint
Returns
GetNumEffects(PapyrusScript<Ingredient>)
SKSE64 additions built 2024-01-17 20:01:40.731000 UTC return the number of the effects
public static Task<int> GetNumEffects(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
IsHostile(PapyrusScript<Ingredient>)
Is this ingredient classified as hostile?
public static Task<bool> IsHostile(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
LearnAllEffects(PapyrusScript<Ingredient>)
Flags the all effects as known by the player
[Obsolete("Uses the Papyrus virtual machine. Prefer Ingredient.LearnAllEffects().", DiagnosticId = "SKYRIMFORGE0002")]
public static Task LearnAllEffects(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
LearnEffect(PapyrusScript<Ingredient>, int)
Flags the effect with the given 0 based index as known by the player
public static Task LearnEffect(this PapyrusScript<Ingredient> self, int aiIndex)
Parameters
selfPapyrusScript<Ingredient>aiIndexint
Returns
LearnNextEffect(PapyrusScript<Ingredient>)
Flags the next unknown effect as known by the player, returning index of effect learned
public static Task<int> LearnNextEffect(this PapyrusScript<Ingredient> self)
Parameters
selfPapyrusScript<Ingredient>
Returns
SetNthEffectArea(PapyrusScript<Ingredient>, int, int)
sets the area of the specified effect
public static Task SetNthEffectArea(this PapyrusScript<Ingredient> self, int index, int value)
Parameters
selfPapyrusScript<Ingredient>indexintvalueint
Returns
SetNthEffectDuration(PapyrusScript<Ingredient>, int, int)
sets the duration of the specified effect
public static Task SetNthEffectDuration(this PapyrusScript<Ingredient> self, int index, int value)
Parameters
selfPapyrusScript<Ingredient>indexintvalueint
Returns
SetNthEffectMagnitude(PapyrusScript<Ingredient>, int, float)
sets the magnitude of the specified effect
public static Task SetNthEffectMagnitude(this PapyrusScript<Ingredient> self, int index, float value)
Parameters
selfPapyrusScript<Ingredient>indexintvaluefloat