Difference between revisions of "AddToLeveledList"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
m (→‎Notes: Switched order of notes)
imported>Haama
(→‎Notes: Added Pluggy note)
Line 9: Line 9:
* Changes to existing leveled lists are not saved.  However, changes to a [[CloneForm]]ed leveled list ''will'' be saved.  This extends to the property mentioned above where ''any'' object can be added to a leveled list regardless of what type of object that list would normally rerturn.
* Changes to existing leveled lists are not saved.  However, changes to a [[CloneForm]]ed leveled list ''will'' be saved.  This extends to the property mentioned above where ''any'' object can be added to a leveled list regardless of what type of object that list would normally rerturn.
* You can add any item to a list, but the engine will probably go haywire if you add abnormal items to a leveled list that is actually used in the game world. However, you can use this feature in combination with [[CalcLeveledItem]] to make indexed arrays of any kind of reference object, by setting the level requirement of the item as the index.  OBSE 0015 is slated to add functions which will not recurse through nested leveled lists, allowing creation of hierarchical data structures (such as multidimensional arrays).
* You can add any item to a list, but the engine will probably go haywire if you add abnormal items to a leveled list that is actually used in the game world. However, you can use this feature in combination with [[CalcLeveledItem]] to make indexed arrays of any kind of reference object, by setting the level requirement of the item as the index.  OBSE 0015 is slated to add functions which will not recurse through nested leveled lists, allowing creation of hierarchical data structures (such as multidimensional arrays).
** For real arrays, use the OBSE plug-in Pluggy.


==See Also==
==See Also==

Revision as of 13:17, 14 February 2008

A command for Oblivion Script Extender

Syntax:

(nothing) AddToLeveledList leveledList:ref object:ref level:short count:short

Adds an object to a leveled creature, spell, or item list. Count defaults to 1 if unspecified.

Notes

  • Changes to existing leveled lists are not saved. However, changes to a CloneFormed leveled list will be saved. This extends to the property mentioned above where any object can be added to a leveled list regardless of what type of object that list would normally rerturn.
  • You can add any item to a list, but the engine will probably go haywire if you add abnormal items to a leveled list that is actually used in the game world. However, you can use this feature in combination with CalcLeveledItem to make indexed arrays of any kind of reference object, by setting the level requirement of the item as the index. OBSE 0015 is slated to add functions which will not recurse through nested leveled lists, allowing creation of hierarchical data structures (such as multidimensional arrays).
    • For real arrays, use the OBSE plug-in Pluggy.

See Also