Jump to content

Item Swap Script


thewaronandrew

Recommended Posts

I thought I had this working, but it hasn't worked out like I had planned it. I am trying to get a script for an object that only runs when you have an item in your inventory.

 

I want to be able to have an empty Nuka-Cola bottle and walk up to a designated sink and have it remove the empty bottle from your inventory and give you a Purified Water bottle.

 

I know it is possible, but I'm at a loss for the exact script commands I would need for this.

 

I know the script command to remove and item is

RemoveItem

and to add,

AddItem

 

But how do I set up the variables? I know there is more to the format of the script than

RemoveItem XXXXXXXX 1
AddItem XXXXXXXX 1

Link to comment
Share on other sites

You could search the Vanilla scripts in the GECK for the scripts for removing Scrap Metal and giving caps, or the Outcasts tech exchange for other items. It sounds like that is what you want to do, just with uhm... sinks. :)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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