Well, I have done a ton of things with followers.
Ya, I know, I think of you as the king. I have probably read just about everything you've written in the forum during the past few weeks while trying to learn how to use the GECK. I love K-9 (I laughed and laughed at the Molerat meat gift), and what you did with the two containers on the followers. Brilliant. I cannot say how much I hate the way they put on whatever you give them (I'm looking at you Charon and your love of all things Power Armor) that's questionably better than what they are wearing. Makes me nuts. Thanks so much for the input. I might try the script route. I was mostly trying to do it because I could now that I'm getting more comfortable with the GECK. Really if he didn't stim during combat it wouldn't kill me. What's bugging me more than anything is that it isn't working and I don't know why it isn't working.
Be aware that if you're using the latest fallout patch (1.7), Charon will stim himself with the native AI. He doesn't make himself invincible like the player does, and as you probably noticed, it involves a lengthy animation playing for each stim.
No, I didn't see that! I know the companions stim because I've played with them for hundreds of hours and have always given them stimpaks that they used, but it was on the 360 so I didn't have much chance to really figure out what was going on. What I did now with Charon was I took him out and ran him through combat and shot him myself (along with the Raiders) to get his health down far enough, and although his hands went low in the front of his body and he was still for a bit, I didn't see the stim. It was unmistakable what he was up to though because I was watching his HP bar the entire time.
pkleiss Posted Today, 12:20 PM
I had to use two AI packages to play the stiming idle, one for in combat and one for non-combat becasue the stim idle would not fire while in combat. The combat package just has the continue during combat flag checked and the non combat package has the pretend in combat flag checked. The one major draw back to my version is the time it takes to self stim while in combat often leads to more damage being done than the stimpak heals, but that is easily overcome.
Thanks for sharing your script. I don't know if I'll bother to try and script a solution or not if I can't get the packages to work. Ya, Charon's idle is showing up well during combat but it isn't the complete idle. I can live with that, although sometimes it leads to funny results, like today he was holding his weapon and the stimpak at the same time, in the same hand, but usually it is just the stimpak. But, ya, it doesn't look as good, I'm sure, as the full idle does. Ideally he would retreat to a safe distance, use the full idle, and then reengage. But that is beyond me to implement at this point. Or beyond me wanting to try anyway. I'm not sure I'm that motivated to make him that completely good. I don't use stimpaks in combat and I wouldn't want him to ideally. I'd rather he was more like the PC, and less wimpy in comparison, because the PC is just too good, if you know what I mean, but that's another story. Although, now that I'm actually typing it out I might have to figure out a way to make this work instead.
But anyway, I did as you so wisely counseled and I went and while he was stimming did GetCurrentPackage and GetCurrentProcedure and he was using the two working packages during combat and when I just shoot him. He wasn't touching the other two packages at all. So this is weirder as the results packages don't fire during combat but do otherwise. I thought, then, that maybe the other packages were making things weird so I removed them from his list and went to a save way back in time and place and then went back to the Mall to fight Muties for fun. Anyway, the packages execute fully and properly if I shoot him myself and he stims quite nicely during combat but the results scripts don't trigger. I checked and it's definitely the same packages during all occurences of stimming.
I might just give up on the combat idea. Or maybe not have him stim under .5 health. I've beefed up his health to make him more comparable to the PC so this was really just for looks more than anything else. If I up his Medicine skill to 100 each stim does heal him more. I might just go with that and have him only stim himself above .5 HP for now and leave it at that.
I'd love to ask you another question or two now that I have you here though.
1) I am having trouble with idles completing in results scrips as they are being swallowed by the animations in the packages being used by the NPCs at the time. So, for instance, I'm experimenting with companions having conversations among themselves while they are following the PC. I have one right now between Charon and Jericho in which Charon hands Jericho a beer and he drinks it. Never has the entire idle for drinking the beer played because Jericho is walking around in the package that comes before/after the dialogue and the idle gets cut off. This sometimes happens to Charon's stimming idle in dialogue because I've also added idles to his Follow packages so that he isn't standing around like a cardboard cutout all the time. How do I go about making that stop? I guess I'm not sure what I need to do to make it happen. I'm not actually sure what I'm delaying. I guess the resumption of the package. Or how do I give the idle more time? Would I go about it the way you've given Vega's stimpak idle more time?
2) I cannot find anywhere what console command I need to find out what combat style a NPC is currently using. Can you point me in the right direction to find this? Or tell me?
Thanks guys. It was great to have you both come in to help me out today. I've read so much by both of you since the beginning of the year when I seriously started working on my mod. You've helped me out tremendously throughout the last few weeks and I just want you to know that your input to the forum has really helped me learn a lot