Jump to content

Marking a corpse for delete after an item is taken


Giveth

Recommended Posts

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 head
FiendVioletRef.KillActor player 1
if GetStageDone VMS12 5
if GetObjectiveDisplayed VMS12 10
SetObjectiveCompleted VMS12 10 1
endif
SetObjectiveDisplayed VMS12 40 1
endif
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 by layerkayk
Link to comment
Share on other sites

  • Recently Browsing   0 members

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