Adding in Keys to an Existing Game

Discussion in 'Modding and Scripting Support' started by rudyhenkel, Jan 19, 2011.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. rudyhenkel

    rudyhenkel New Member

    Messages:
    8
    Likes Received:
    0
    Joined:
    Jan 19, 2011
    Technical question:

    I would like to edit a file, such as InvenSource, to insert a specific key into someone's inventory, so that it can then be obtained in game. Specifically, I would like to obtain the key to Bates' mansion, so I can use all the awesome storage availability there without killing him. After all, we all know that NPCs only object when you pick locks; if you have a key, you can rummage through their drawers all you like.

    The difficulty with this is that there is only one inventory code, 12060, which is assigned to most keys as far as I can tell. description.mes has 12060, which is "Key", 12061, which is "Iron Clan Key", and "12062", which is Vorman Manor Key, and that is all. However, inserting code 12060 into an inventory gives default key 0, which opens no locks.

    In the oname.mes file, the Key to Bates' place is listed as number 4423 (it is not listed at all in the description.mes, as said). Attempting to insert item 4423 into an inventory, however, leads to crashes, and other forms of non-success. I've also attempted things like "12060:4423", "12060,4423", etc. with no success

    So, my question is, is there any way to generate this item? Any help would be very greatly appreciated.
     
  2. Drog Alt

    Drog Alt Member

    Messages:
    593
    Likes Received:
    19
    Joined:
    Jun 30, 2010
    Most of the keys are mobile objects (parts of the map), not prototypes (standard pre-generated objects), so you can't add them this way.
     
  3. rudyhenkel

    rudyhenkel New Member

    Messages:
    8
    Likes Received:
    0
    Joined:
    Jan 19, 2011
    Shame. Ah, well; thank you very much for the info.
     
Our Host!