zapa1973 Posted July 5, 2018 Share Posted July 5, 2018 Hello it's the first time I write (I hope the google translator works well), I'm a rookie I am trying to get a new NPC to sell a key for some houses and rooms that I made. Probe making a vendor, but I put the key in the container or in your inventory and it does not appear as an item so you can buy it (I tried like misc item and tap all the options and nothing) The npc only serves to sell me or change the key for caps I have no idea how to create a dialogue to do it Link to comment Share on other sites More sharing options...
dubiousintent Posted July 6, 2018 Share Posted July 6, 2018 A "key" for the purpose you describe is no different than any other item. Once in the player's inventory, you can check for it's presence to enable access to the "dwelling" by way of a "script" triggered by the activator on the door. Please see the 'Spawning modded items', 'Custom NPCs' and 'Dialogue & Lip-synch' sections of the wiki "Getting started creating mods using GECK" article. -Dubious- Link to comment Share on other sites More sharing options...
zapa1973 Posted July 6, 2018 Author Share Posted July 6, 2018 thanks for reply i want the vendor (an npc that I created) sell me the key the vendor works, he sell me anything but no keyI put it in its own container and in its inventory and nothing happened I believe that the keys do not classify as "miscellaneous" or any other option of "Autocalc service" (weapon, food, alcohol ...) and that is why the vendor does not sell it. Link to comment Share on other sites More sharing options...
dubiousintent Posted July 7, 2018 Share Posted July 7, 2018 Don't get hung up on the term "key". What you are really dealing with is a "token" that is functioning as an indicator of "ownership" of the house. That token can be anything (slave collar, spoon, note entitled "deed", etc.) that you can get a Ref-ID for. Make it a "quest item" and the player can't drop it. Make it "invisible" and they don't even see it (though that has it's own problems). If you want, you can just use the "key" mesh & texture for your custom "misc" token (e.g. "spoon"). By itself, nothing is going to happen when the player has possession of that "token". It's up to you and your scripts to test for it and determine what happens when it is in the player's inventory. To get it into the player's inventory would typically be done in the "result script" of the trade dialog. That process should be apparent in any vendor's dialog "trade" script. -Dubious- Link to comment Share on other sites More sharing options...
Recommended Posts