Editing
Potion 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!
[[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]] [[Category:SKSE]] [[Category:SKSE Script Objects]] '''Extends:''' [[Form Script]] Script that represents an alchemy potion. == Definition == <syntaxhighlight lang="papyrus"> ScriptName Potion extends Form </syntaxhighlight> == Properties == None == Global Functions == None == Member Functions == :'''Bool [[IsHostile - Potion|IsHostile]]()''' :*Returns whether this potion is considered hostile or not. == SKSE Member Functions == :'''Bool [[IsFood - Potion|IsFood]]()''' :*Returns whether the potion is considered food. :'''Bool [[IsPoison- Potion|IsPoison]]()''' :*Returns whether the potion is considered Poison. :'''Int [[GetNumEffects - Potion|GetNumEffects]]()''' :*Returns the number of effects on this potion. :'''Float [[GetNthEffectMagnitude - Potion|GetNthEffectMagnitude]](Int ''index'')''' :*Returns the magnitude of the specified effect of this potion. :'''Int [[GetNthEffectArea - Potion|GetNthEffectArea]](Int ''index'')''' :*Returns the area of the specified effect of this potion. :'''Int [[GetNthEffectDuration - Potion|GetNthEffectDuration]](Int ''index'')''' :*Returns the duration of the specified effect of this potion. :'''MagicEffect [[GetNthEffectMagicEffect - Potion|GetNthEffectMagicEffect]](Int ''index'')''' :*Returns the MagicEffect of the specified effect of this potion. :'''Int [[GetCostliestEffectIndex - Potion|GetCostliestEffectIndex]]()''' :*Returns which effect of the potion has the highest cost. :'''[[SetNthEffectMagnitude - Potion|SetNthEffectMagnitude]](Int ''index'', Float ''value'')''' :*Sets the magnitude of the specified effect. :'''[[SetNthEffectArea - Potion|SetNthEffectArea]](Int ''index'', Int ''value'')''' :*Sets the area of the specified effect. :'''[[SetNthEffectDuration - Potion|SetNthEffectDuration]](Int ''index'', Int ''value'')''' :*Sets the duration of the specified effect. :'''SoundDescriptor [[GetUseSound- Potion|GetUseSound]]()''' :*Returns the [[Sound Descriptor|sound descriptor]] of this potion as a form id. :'''Float[] [[GetEffectMagnitudes - Potion|GetEffectMagnitudes]]()''' :*Returns all the magnitudes of this object in order. :'''Int[] [[GetEffectAreas- Potion|GetEffectAreas]]()''' :*Returns all the areas of this object in order. :'''Int[] [[GetEffectDurations - Potion|GetEffectDurations]]()''' :*Returns all the durations of this object in order. :'''MagicEffect[] [[GetMagicEffects- Potion|GetMagicEffects]]()''' :*Returns all the magic effects of this object in order. == Events == None
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