trashgarbage666 Posted August 28, 2019 Share Posted August 28, 2019 (edited) I'm experimenting with the idea of a Doctor's Bag that heals limb damage slowly over time, but because they function a little differently than other aid items, it's been difficult to fine-tune. In the base game, using a Doctor's Bag on a specific limb means that limb gets the full healing potential of the item. But if you don't specify a limb, all limbs heal by 10% of the item's effectiveness, and because you only have 6 limbs, you're essentially losing 40% in potential limb healing. This is true whether the item heals instantly or over time. I've got a vague idea of how I want Doctor's Bags to behave and how much they should heal, but it's probably going to require a decent amount of scripting. So before I dive into it, I just wanted to ask if there are any commands that you guys think would be relevant here. Maybe there's a command that can detect when an effect targets a specific limb? (Probably not, that would be too easy.) Thanks for reading! Edited August 28, 2019 by punchbattle Link to comment Share on other sites More sharing options...
uhmattbravo Posted August 28, 2019 Share Posted August 28, 2019 I never really looked into how they work, but there's a perk in fallout 3 you get from one of Moira's missions that heals limbs (IIRC over time) if you're irradiated. I remember it healing more quickly than I suspect you're looking for, but I would assume that it's probably in your best interest to start by looking into that. Link to comment Share on other sites More sharing options...
WarMachineDD7 Posted August 29, 2019 Share Posted August 29, 2019 Oh, man, I can't see much on JIP LN or NVSE, but I think these functions will work to get and set limb health, if you call it on the player: https://geckwiki.com/index.php?title=GetBodyPartTraitNumerichttps://geckwiki.com/index.php?title=SetBodyPartTraitNumeric Link to comment Share on other sites More sharing options...
trashgarbage666 Posted August 30, 2019 Author Share Posted August 30, 2019 (edited) I never really looked into how they work, but there's a perk in fallout 3 you get from one of Moira's missions that heals limbs (IIRC over time) if you're irradiated. I remember it healing more quickly than I suspect you're looking for, but I would assume that it's probably in your best interest to start by looking into that. I had completely forgotten about these perks, so I cracked them open and had a look! I didn't find any limb regen effects, but I did find some hilariously bad perk art. https://vignette.wikia.nocookie.net/fallout/images/1/12/Survival_Guru.png/revision/latest?cb=20171105222517 I love the vault boy on the left whose head is slightly too small, and taken from Fallout 2. The fact that the other vault boy holding the book backwards is icing on a slightly too small cake. Oh, man, I can't see much on JIP LN or NVSE, but I think these functions will work to get and set limb health, if you call it on the player: https://geckwiki.com/index.php?title=GetBodyPartTraitNumerichttps://geckwiki.com/index.php?title=SetBodyPartTraitNumeric This is extremely relevant, thank you! With this, I can write a script that determines which limbs are being healed, and then cast spells on the player accordingly! EDIT: Oh my god, I forgot that limb health is considered an Actor Value, meaning a standard GetAV command would also work just fine. I'm an idiot, and it's been a long work week. But mainly it's just that I'm an idiot. Guess I didn't need to start this thread in the first place. Edited August 31, 2019 by punchbattle Link to comment Share on other sites More sharing options...
Radioactivelad Posted August 30, 2019 Share Posted August 30, 2019 Unless I'm misunderstanding what exactly you want DBs to do, isn't the Hydra item already exactly that? Link to comment Share on other sites More sharing options...
trashgarbage666 Posted August 30, 2019 Author Share Posted August 30, 2019 Unless I'm misunderstanding what exactly you want DBs to do, isn't the Hydra item already exactly that? It's true that Hydra is essentially like a Doctor's Bag that heals over time, but there are things about Doctor's Bags that you can't change by simply editing their duration. For instance, how the healing gets dispersed when you don't specify a limb (mentioned in the original post). Also, spell / item effects don't let you heal less than 1 per second, which is a little too fast for what I'm trying to do. Link to comment Share on other sites More sharing options...
GamerRick Posted August 30, 2019 Share Posted August 30, 2019 The bag gets used on a limb when the player activates a limb in the pip-boy STAT-CND screen. The effects of the bag only apply when you activate the bag in your pip-boy items menu. So, what happens when you click on a limb to use a bag on it? My guess is that the action is handled by the game engine and not a script. Link to comment Share on other sites More sharing options...
trashgarbage666 Posted August 30, 2019 Author Share Posted August 30, 2019 So, what happens when you click on a limb to use a bag on it? My guess is that the action is handled by the game engine and not a script. My thoughts exactly! So to determine which limbs the player picked, I'm going make Doctor's Bags only heal a tiny amount of limb damage, then have them run a script on the user to see which limbs got healed by that tiny amount, and then cast my own custom healing spell that handles the actual healing. It's a little sloppy, but oh well. Link to comment Share on other sites More sharing options...
Recommended Posts