Difference between revisions of "OBSE Wish List"

Jump to navigation Jump to search
No change in size ,  19:54, 16 January 2012
m
imported>8asrun6aer
imported>8asrun6aer
Line 130: Line 130:
  set stringVar to anyRef.getReference
  set stringVar to anyRef.getReference
  set stringVar.anyVariable to x
  set stringVar.anyVariable to x
*'''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.  Note: because these records may be added/deleted/modified only via script this way and only while the game is running, changes made using these added script functions will obviously not show up using the TESCS to view/edit mods.
 
** '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).  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.
** '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.
Line 139: Line 140:
     addRecord "Actors/Creature/Creature/myBrandNewCreature" ; adds the myBrandNewCreature actor object record to the game.
     addRecord "Actors/Creature/Creature/myBrandNewCreature" ; adds the myBrandNewCreature actor object record to the game.
     deleteRecord "Actors/Creature/Creature/myBrandNewCreature" ; completely removes the myBrandNewCreature actor object record from the game.
     deleteRecord "Actors/Creature/Creature/myBrandNewCreature" ; completely removes the myBrandNewCreature actor object record from the game.
Note: because these records may be added/deleted/modified only via script this way and only while the game is running, changes made using these added script functions will obviously not show up using the TESCS to view/edit mods.


==Questionable Requests==
==Questionable Requests==
Anonymous user

Navigation menu