Editing OBSE Wish List

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
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.  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.
** '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.
** Examples:
    getRecord "WorldObjects/Static/Armor/BladesArmorFparttest" ; returns the BladesArmorFparttest object record.
    getRecord "Actors/Creature/Creature/ICArenaBear" ; returns the ICArenaBear actor object record.
    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.


==Questionable Requests==
==Questionable Requests==

Please note that all contributions to the Oblivion ConstructionSet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see CSwiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)