Jump to content

Need help with a script


hawhaw521

Recommended Posts

Alright folks, I need help. I am making a mod and I want to make it so that you can dump corpses into a dumpster, you know like disappearing when you do

the quest Mortimer gives you to dump Carlyle's body in the dumpster.

What I need help with is writing the script that does that. Also, I want to make a script that adds rewards to a container when you dump the corpse in the dumpster and the container respawns with new loot only if the player puts a corpse in the dumpster. I honestly doubt that there is a script or something for this but if there is please help me with it. If anyone can help me with this, I would greatly greatly appreciate it. Have a nice rest of the day. Thank you!

Edited by hawhaw521
Link to comment
Share on other sites

Howdy hawkaw521 ... an interesting question you have there.

 

I did some snooping with all FNV DLC ... and couldn't find what was doing that with just the names you provide.

 

How about go in game and click the dumpster while in the console command ... First press ~ then click dumpster with mouse pointer. It will show a form ID at top of screen ... so write down and post here.

Link to comment
Share on other sites

I did make a dumpster but I just need the scripts. Here's the dumpster for the quest's id i think: 00127dda. I say i think because i wasnt doing the quest but i just went to the dumpster so i hope the id between them isn't different.

Link to comment
Share on other sites

Ok sorry it took a little while ... but these 3 objects with their scripts is what makes that scene work.

Well also the "VMS18Script" on VMS18 Quest which has some variables and objectives it keeps track of.

But I don't think we need to mess with how those are working.

 

So this object is what is there most of the time , just acting like a regular dumpster container ...

"VMS18DumpsterREF" based on "Dumpster02" base object ... which has its own lvled loot spawning not related to this quest.

 

This area trigger "VMS18DumpsterTriggerREF" that runs this script "VMS18DumpsterTriggerSCRIPT"

Just checks if the player enters dragging Carlye ... then disables the regular dumpster , and enables this next object.

 

"VMS18DumpsterActivatorREF" based on "VMS18Dumpster" base object , which is an activator only , not a container.

And it runs this script "VMS18DumpsterActivatorSCRIPT" Which for the most part just disables Carlyles body.

Sets the quest objectives ... and runs a timer to place the regular dumpster container back.

 

Which you could use a variable in that script , Call it BodyDumped ... Then have a script on a dumpster container checking if that variable == 1 ... then you run a "GetRandomPercent" and based on that number return , you place objects in the dumpster.

 

Thats the theory of it anyways ... give those a looksee , and if you need help writing the script ... I'll write up some specifics for ya.

 

Add edit : Would you like to be able to actually pick the body up and drop it into the dumpster ?

Using this static object with it's lid open "DumpsterAltStorage02"

Edited by Mktavish
Link to comment
Share on other sites

Also, I want to make a script that adds rewards to a container when you dump the corpse in the dumpster and the container respawns with new loot only if the player puts a corpse in the dumpster

This mod have a lottery that you put a chip and it return a random reward.

 

Could help you I guess.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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