Difference between revisions of "OBSE Wish List"

153 bytes added ,  20:48, 16 January 2012
m
imported>8asrun6aer
imported>8asrun6aer
Line 132: Line 132:
*'''get/add/deleteRecord''' - The idea is to work with any type of record associated with the editor paths.   
*'''get/add/deleteRecord''' - The idea is to work with any type of record associated with the editor paths.   
** 'Get' returns a reference of a type dependent on the actual type of the record being fetched (actor, item, spell, etc).  The parameter is a string and must be the full path to this record as set in the TES CS object window path.
** 'Get' returns a reference of a type dependent on the actual type of the record being fetched (actor, item, spell, etc).  The parameter is a string and must be the full path to this record as set in the TES CS object window path.
** 'Add' requires a reference and adds this reference record to the game (a misplaced 'spell' record accidentally placed under 'npc' could crash the game, but this is left up to the modder to know and avoid this).  The two parameters are "path" (or parentRef) and "ref" (the record/object to add).
** 'Add' requires a reference and adds this reference record to the game (a misplaced 'spell' record accidentally placed under 'npc' could crash the game, but this is left up to the modder to know and avoid this).  The two parameters are "path" (or parentRef) and "ref" (the record/object to add).  Note: this may require adding the ability to create a brand new record object from scratch via code.  This could also work with 'copyobject' functions.
** 'Delete' removes the reference record from the game completely.  The single parameter is a path to the existing ref record.
** 'Delete' removes the reference record from the game completely.  The single parameter is a path to the existing ref record.
** Examples:
** Examples:
Anonymous user