Jump to content

Help with adding empty containers


DEagle62

Recommended Posts

Okay, so I have just gotten into modding. I'm kind of teaching myself by finding simple mods, figuring out how they do what they do, and r-creating it myself. So far I have done this for the "Longer Death Camera" mod (easy, but took forever to find the thying I was supposed to change).

 

Anyway, I was re-creating the mod that adds an empty Nuka-Cola bottle when you drink it, and when I was done testing, I wanted to make all of the drinks and stuff give you empty containers back. I started with Whiskey, and I'm stuck.

I created the script, but I don't understand how to add it to the effects of Drinking the whiskey.

 

I'm also going to make it so that an empty syringe is added on use of Stimpacks, and I'm going to make empty clips drop to the ground that you can pick up. (that one is going to be complicated, I assume)

 

Well, any help would be greatly appreciated.

Link to comment
Share on other sites

Whenever the player consumes an ingestible, like a Stimpak, its effect is run on them. In order to add an effect to an ingestible, you'll need to add a new effect item (which points to a Base Effect) to the ingestible. Your base effect will need to be a script effect, and the script wouldn't need to be very complicated:

Begin ScriptEffectStart
AddItem EmptyStimpak 1
End

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

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