LucidDreaming Posted July 22, 2011 Share Posted July 22, 2011 Is it possible to add a script to a corpse? And if so, does it have to be a specified corpse (like the ones laying in the Villa's clinic in Dead Money), or can it be a recently killed one? Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted July 22, 2011 Share Posted July 22, 2011 You can try adding a hidden perk to the player that has the Entry Point Add Death Item (uses a Leveled List). The list can have a 100 percent chance of adding an item, and then you put in a non-playable armor item with either a gamemode script or an OnAdd (not sure if that block fires when added this way). Link to comment Share on other sites More sharing options...
GrindedStone Posted July 22, 2011 Share Posted July 22, 2011 The Blood Ties quest in Fallout 3 has a part where you search the corpse, but it acts like an activator.As soon as you hit E a message pops up, it would make a good example. Link to comment Share on other sites More sharing options...
LucidDreaming Posted July 23, 2011 Author Share Posted July 23, 2011 (edited) @gribble: That sounds like it would work, maybe. I'm hoping to have the activated corpse affect its surroundings. Would any script on the item still be active if the owner is dead?@GrindedStone: That part I have down. I used something like cannibal for an interface. What ID would I use to reference the corpse? Is there a reference ID for , like, currently or last activated object? Like there is for last targeted, you know? Edited July 23, 2011 by LucidDreaming Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted July 23, 2011 Share Posted July 23, 2011 Not entirely sure what your context is, but yes, as far as I know, any object in a rendered actor's inventory will run its script. You would use a game mode block, and to figure out where it is, you use:set rContainer to GetContainer ;where rContainer is a ref variable if rContainer ;check to insure that it's a valid ref, otherwise the script might crash ;do something here endifI'm pretty sure I got that right. If you're confused, look at EVE for examples of how to run stuff on dead actors. It's a bit messy in there (the plugin), but he does a lot of what (I think) you're trying to do. Link to comment Share on other sites More sharing options...
LucidDreaming Posted July 23, 2011 Author Share Posted July 23, 2011 (edited) Like this? ref rContainer set rContainer to GetContainer if rContainer.isActor rContainer.additem Glasses 1 end It's not working... Edit:I could try making it so that if you kill someone, then it adds something to their inventory. It would be much easier (they have codes similar to that already), but it would only work on something you have killed.... Edited July 23, 2011 by LucidDreaming Link to comment Share on other sites More sharing options...
Recommended Posts