Editing
Ingredient Script
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''Extends:''' [[Form Script]] Script that represents an alchemy ingredient. == Definition == <syntaxhighlight lang="papyrus"> ScriptName Ingredient extends Form </syntaxhighlight> == Properties == None == Global Functions == None == Member Functions == :'''Bool [[IsHostile - Ingredient|IsHostile]]()''' :*Returns whether this ingredient is considered hostile or not. :'''[[LearnEffect - Ingredient|LearnEffect]](Int ''aiIndex'')''' :*Flags the effect with the given index as known by the player. :'''Int [[LearnNextEffect - Ingredient|LearnNextEffect]]()''' :*Flags the next unknown effect as known by the player, returning index of learned effect. :'''[[LearnAllEffects - Ingredient|LearnAllEffects]]()''' :*Flags the all effects as known by the player. == SKSE Member Functions == :'''Int [[GetNumEffects - Ingredient|GetNumEffects]]()''' :*Returns the number of effects on this ingredient. :'''Float [[GetNthEffectMagnitude - Ingredient|GetNthEffectMagnitude]](Int ''index'')''' :*Returns the magnitude of the specified effect of this ingredient. :'''Int [[GetNthEffectArea - Ingredient|GetNthEffectArea]](Int ''index'')''' :*Returns the area of the specified effect of this ingredient. :'''Int [[GetNthEffectDuration - Ingredient|GetNthEffectDuration]](Int ''index'')''' :*Returns the duration of the specified effect of this ingredient. :'''MagicEffect [[GetNthEffectMagicEffect - Ingredient|GetNthEffectMagicEffect]](Int ''index'')''' :*Returns the MagicEffect of the specified effect of this ingredient. :'''Int [[GetCostliestEffectIndex - Ingredient|GetCostliestEffectIndex]]()''' :*Returns which effect of the ingredient has the highest cost. :'''[[SetNthEffectMagnitude - Spell|SetNthEffectMagnitude]](Int ''index'', Float ''value'')''' :*Sets the magnitude of the specified effect. :'''[[SetNthEffectArea - Spell|SetNthEffectArea]](Int ''index'', Int ''value'')''' :*Sets the area of the specified effect. :'''[[SetNthEffectDuration - Spell|SetNthEffectDuration]](Int ''index'', Int ''value'')''' :*Sets the duration of the specified effect. :'''Bool [[GetIsNthEffectKnown - Ingredient|GetIsNthEffectKnown]](Int ''index'')''' :*Determines whether the player knows this effect. == Events == None [[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]] [[Category:SKSE]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values