Jump to content

PLEASE HELP SELLING keys


DEATHWALKER95

Recommended Posts

I have a made a mod where i have added a ton of new player houses that can be obtained by buying them the only problem is is you cant sell keys. I need help learning a way to sell keys. If someone has a working script that makes it so i can sell an item that will after in my inventory give me that key that would be awsome. PLEASE HELP

Link to comment
Share on other sites

Make a misc object with whatever name, value, and other data you want for it. Then make a script like

BEGIN GameMode
    set rCont to GetContainer
    if (rCont == Player)
        Player.additem AwesomeHouseKey 1
        RemoveMe
    endif
END
Link to comment
Share on other sites

 

Make a misc object with whatever name, value, and other data you want for it. Then make a script like

BEGIN GameMode
    set rCont to GetContainer
    if (rCont == Player)
        Player.additem AwesomeHouseKey 1
        RemoveMe
    endif
END

I tried using this script and when i go to save it as a script it does that thing where it wont save and when u go to x out of it it will be like do you want to save? and if you click yes it will keep it open and not save

Link to comment
Share on other sites

Never mind everyone i just self taught myself how to sell a key through dialogue. But thanks for the help i found out what i did wrong this is what my scripts did look like and was why it wasnt giving me a key

"player.AddKey KEYNAME 1"

it should have been

"player.AddItem KEYNAME 1"

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...