LeveledItem Script: Difference between revisions

Jump to navigation Jump to search
1,255 bytes added ,  3 February 2014
Added SKSE 1.7.0 functions
imported>CraftySentinel
m (→‎Member Functions: Formatting Change)
imported>CraftySentinel
(Added SKSE 1.7.0 functions)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]
'''Extends:''' [[Form Script]]
'''Extends:''' [[Form Script]]


Script for the manipulation of leveled item base objects.
Script for the manipulation of leveled item base objects.


== Definition ==
== Definition ==
Line 11: Line 8:
ScriptName LeveledItem extends Form
ScriptName LeveledItem extends Form
</source>
</source>


== Properties ==
== Properties ==
None
None


== Global Functions ==
== Global Functions ==
None
None


== Member Functions ==
== Member Functions ==


{|class="wikitable" width =100%
:'''[[AddForm - LeveledItem|AddForm]](Form ''apForm'', Int ''auiLevel'', Int ''auiCount'')'''
!style="text-align:left;"|Function
:*Adds the given count of given form to the leveled list under the given level.
!style="text-align:left;"|Description
 
|-
:'''[[Revert - LeveledItem|Revert]]()'''
|[[AddForm - LeveledItem|'''AddForm'''(Form ''apForm'', Int ''auiLevel'', Int ''auiCount'')]]
:*Removes all script added forms from the leveled list.
|Adds the given count of given form to the leveled list under the given level.
 
|-
 
== SKSE Member Functions ==


|[[Revert - LeveledItem|'''Revert'''()]]
:'''Int [[GetChanceNone - LeveledItem|GetChanceNone]]()'''
|Removes all script added forms from the leveled list.
:*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 ==
== Events ==
None
None
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]

Navigation menu