LeBarkBork Posted December 15, 2017 Share Posted December 15, 2017 Hello, I am pretty new to Modding Skyrim. I picked up the Special Edition a while back, and got into using mods from the in game menu. But then I found out about Nexus, and how much more in depth the modding was, than what Bethesda was showing me, and I have been exploring modding more. I have been following tutorials, and such, and learned how to make my own custom NPC, and now learning how to do stand alone followers. I created a follower that I wanted to be our healer, gave it all manner of healing spells, and such. But noticed that it never casts heals on myself, or the "party". (I'm using AFT) So I googled more, about how to create a healer follower, and discovered that you need to script those things, because the base Skyrim Ai is not good enough. After about 2 days of googling, I have only found references to "You have to script that"and "use scripts". I found tutorials for OTHER scripting... like creating a key for a locked door. Or Scripting other things. But I can't find anything related to scripting a follower to heal me, and the other followers. What I want my follower to do: 1) Heal me under a % of Health2) Heal followers under a % of Health3) Cure disease when NOT in combat (but not cure quest specific disease like when you contact werewolf disease during companion questline)4) Use Spells that damage undead ONLY on undead enemies ONLY (keeps throwing out undead damaging spells like sunflare on everything. In fact I would love to learn how to ensure that the AI in general only casts certain types of spells on certain types of enemies. For example I don't want them throwing fire spells at things that are immune or highly resistant to Fire. Or ice spells on Undead) I truly have tried to look for tutorials myself, because I didn't want to bother anyone as I know this kind of stuff must be a pain (This is coding right?). The CLOSEST I have come to an answer was a few forums where someone who MADE a healer follower, gave the person asking the same question permission to download their follower, open then in CK, and look at their scripts to see what they did to make their work. I tried that route too. But I'm not sure how to look at other people's scripts. I looked at the same follower in CK, but didn't see anything on any of the tabs. (Ai Packages or AI data.) I tried googling and youtubing different query to find an answer. Like"How to script healer follower" "How to make a healer follower"1 "how to see a mods scripts" "how to view scripts" and other phrases, but no luck so far. Can anyone help a newbie with this? by either: -Walking me through making the scripts to do the things I outlined above. -Point me to a detailed tutorial that teaches how to create a healer follower and also a tutorial on how to make followers only use effective magic on the target.-Show me how to view scripts from other follower mods, so I can take a look at the user who said people could look at their scripts Thank you in advance to anyone who can help me with this. Link to comment Share on other sites More sharing options...
JonathanOstrus Posted December 16, 2017 Share Posted December 16, 2017 Well the looking at what other people did scenario only works if they include the source for the scripts. Otherwise it's not much help unless you want to try decompiling the pex scripts back to source which can be qwerky sometimes. For what you want to do you will most likely need to do it via scripting. I'm not aware of any methods to use AI packages to do it. Though I guess you could use combat override packages and maybe detect HP that way. Probably looking at/hooking events for the player or other team mates taking hits then grabbing hp and doing the calculations you want. I've not looked at doing this myself but that's the basis I would think of looking at to do it. There may be other ways but I'm not familiar with them. Hopefully this may provide some guidance as to where to look until someone with more experience or specific recommendations for learning materials can reply. Link to comment Share on other sites More sharing options...
LeBarkBork Posted December 16, 2017 Author Share Posted December 16, 2017 (edited) I came across This post, where the person says"You might want to look at my own healer mod, Magoza, for a better look at how they work, since the .bsa includes the scripts I used."Is this what you mean, when you say If they included the source for the scripts? They go on to say:"It sounds complicated, but it is not actually all that difficult once the process is understood. I'd recommend extracting my mod's .bsa (there are multiple ways to do this, such as with BSA Unpacker) and putting the .psc files in Skyrim\Data\scripts\source. From there, you can open up the .esp in the creation kit and look at the AI packages, magic effects and scripts I used." https://www.reddit.com/r/skyrimmods/comments/1n9xh4/tutorial_for_creating_a_magehealer_follower/ I don't know what .PSC is, but I assume it is what tutorials call "Papyrus Compiler Scripts"? After posting my OP, and doing more digging I came across another thing last night. This person created a healer (and assassin, and mercenary, and housecarl) package for people to use, here: The Tutorial: https://www.youtube.com/watch?v=WvpmMBbgyAkThe Mod Source: https://www.nexusmods.com/skyrimspecialedition/mods/489/?tab=descriptionThe Demonstration: https://www.youtube.com/watch?v=OV5KDIMwJOc Only issue I see is, in the tutorial it doesn't attack hostiles anymore. (You can see it in action at the end of the tutorial video) Just strict healing.In the Demo however, there is offensive spell casting, as well as healing. So I'm not sure the difference between the two. Because the Demo is a complete mod, while the Tutorial tells you how to simply take the "healing" portion, and use in your custom follower. I sent a message, but no reply yet. Are they using Ai Packages, or are they using scripts? The tutorial doesn't explain "what" is going on. It just says "Do this". If I wanted to learn to do what I wanted in the OP, is there perhaps a resource that would teach how to do those specific things? I did find a ton of scripting tutorials for things. Unfortunately none for healer and spell casting Ai. At least not yet. Edited December 16, 2017 by LeBarkBork Link to comment Share on other sites More sharing options...
LeBarkBork Posted December 16, 2017 Author Share Posted December 16, 2017 (edited) Just did the tutorial myself. It actually still attacks enemies, AND heals the group too. Looks like it's all AI Packages and no scripts though. I saw the line: "Custom AI packages may not be so perfect as you expect. However, this mod is very simple and script-free. You can try this mod with ease." I assume Scripting would be better though. He admits sometimes the AI will become "stuck" with his method. Would you be able to explain the other persons instructions of opening their BSA? I know how to do that. And I know the folder destination they stated, by putting their .psc files into my scripts/source folder. But as far as looking at those EXACT scripts and AI packages myself, I'm not too sure of yet. Edited December 16, 2017 by LeBarkBork Link to comment Share on other sites More sharing options...
Recommended Posts