Difference between revisions of "OBSE Wish List"
Jump to navigation
Jump to search
m
→Other Functions
imported>8asrun6aer |
imported>8asrun6aer |
||
Line 131: | Line 131: | ||
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. 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/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. |