Giveth Posted March 28, 2021 Share Posted March 28, 2021 (edited) I've just got my toes in the water as far as modding FNV and I've made some improvements to mods that I use (just changing damage and DT values, or very minor scripting)What I want to do is modify the robots from the greasemonkey perk in MorePerks to drop a "Salvageable [Robot_Name] Parts" item when they die, so that the player can then reconstruct the robot. I want the corpse to vanish after taking that item, however. And I'm almost positive that there's something in the base game that does that but I can't remember where. I also assume that I'll have to make 2 different salvaged parts for each robot, one being a dummy item that is removed from the player when they pick it up, and another that is given- so that the script doesn't just delete whatever box you put the salvaged parts in later.Any help would be appreciated.Okay so I think I might have a lead, using the Violet's head script since it activates on taking her head and affects the corpse. scn HeadVioletScript begin OnAdd player ; explode Violet's headFiendVioletRef.KillActor player 1if GetStageDone VMS12 5if GetObjectiveDisplayed VMS12 10SetObjectiveCompleted VMS12 10 1endifSetObjectiveDisplayed VMS12 40 1endif end So the begin onadd player part I understand, so this script would be run when the player accepts the item, but then "explode violets head" I don't understand, maybe just something explaining what the code does?So instead of FiendVioletRef.killactor would it be GreasemonkeyGutsyRef.markfordelete ?edit: Ah, now I see, so I'll have to somehow get reference data for something that doesn't exist yet. Looking through the wiki to try and wrap my head around that Edited March 28, 2021 by layerkayk Link to comment Share on other sites More sharing options...
Recommended Posts