[UI/Food] Making another action for corpses

Started by MoreCowbell, March 22, 2017, 02:54:39 PM

Previous topic - Next topic

MoreCowbell

Hi there, I was wondering how you would go about making another action for corpses. Such as a consume as drug action.

I am trying to make a vampire mod where a vampire can "consume" a corpse, destroying it instantly to recover some of his "blood" need.

The 2 ways I am thinking of doing it at the moment are if I can, modifying the foodtype of the vampire race to corpse/vampire only. and making "blood" based off of hunger. But to do that I need to modify the base "max" hunger of the race so a vampire eating a human corpse would do so in one go as opposed to several. Is doing so possible?

The other way is by using a drug addiction, which works already in the mod from which I am drawing most of my inspiration. But the issue is that to actually "make blood" the corpse has to be drained at a specific workbench which I dislike, is there a way to make the corpse itself consumable as a drug?

Ideally either would work, but knowing how to make an action for a corpse definitely would help for some stuff I am working on in the future as well.

Thanks a ton for any help.