Editing
LeveledItem 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 for the manipulation of leveled item base objects. == Definition == <syntaxhighlight lang="papyrus"> ScriptName LeveledItem extends Form </syntaxhighlight> == Properties == None == Global Functions == None == Member Functions == :'''[[AddForm - LeveledItem|AddForm]](Form ''apForm'', Int ''auiLevel'', Int ''auiCount'')''' :*Adds the given count of given form to the leveled list under the given level. :'''[[Revert - LeveledItem|Revert]]()''' :*Removes all script added forms from the leveled list. == SKSE Member Functions == :'''Int [[GetChanceNone - LeveledItem|GetChanceNone]]()''' :*Returns the Chance of Getting None for the Leveled List. :'''[[SetChanceNone - LeveledItem|SetChanceNone]](Int ''chance'')''' :*Sets the Chance of Getting None for the Leveled List. :'''GlobalVariable [[GetChanceGlobal - LeveledItem|GetChanceGlobal]]()''' :*Returns the GlobalVariable(If used) used for calculating Chance None for the leveled list. :'''[[SetChanceGlobal - LeveledItem|SetChanceGlobal]](GlobalVariable ''glob'')''' :*Sets the GlobalVariable used for calculating Chance None for the leveled list. :'''Int [[GetNumForms - LeveledItem|GetNumForms]]()''' :*Returns the number of Forms within the leveled list. :'''Form [[GetNthForm - LeveledItem|GetNthForm]](Int ''n'')''' :*Returns the form at the specified index. :'''Int [[GetNthLevel - LeveledItem|GetNthLevel]](Int ''n'')''' :*Returns the List Level for the Form at the specified index :'''[[SetNthLevel - LeveledItem|SetNthLevel]](Int ''n'', Int ''level'')''' :*Sets the list Level for the Form at the specified index to the specified amount. :'''Int [[GetNthCount - LeveledItem|GetNthCount]](Int ''n'')''' :*Returns the count for the Form at the specified index. :'''Int [[SetNthCount - LeveledItem|SetNthCount]](Int ''n'', Int ''count'')''' :*Sets the count for the Form at the specified index == Events == None == Notes == # List entries added via AddForm() do persist through a save and reload, and do not leak to other saves during the same play session. # Conversely, SetChanceNone() and SetChanceGlobal() '''do not''' persist through a save and reload (so they must be manually restored on each reload), and they '''do''' leak to other saves during the same play session (the same way i.e. SetGoldValue() does). # If a LeveledItem has a global variable defined for chance none (whether it's via SetChanceGlobal() or in the CK), the numeric chance none is ignored and only the global variable is considered. # SetChanceNone() does not automatically clear SetChanceGlobal(), so you may have to explicitly call SetChanceGlobal(None) to ensure that a new numeric chance none takes effect. # Revert() does remove all entries added via AddForm(), but (as of SKSE 1.7.1) '''does not''' revert the chance none (numeric or global)! [[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]]
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