Wolfpack49 Posted February 17, 2023 Share Posted February 17, 2023 Is it possible to capture the type of training an instructor is doing either by string or ID? I am looking at the set of string in the ActorValueList but not seeing a way to capture the values:https://www.creationkit.com/index.php?title=Actor_Value_List Basically I want to check whether a particular type of training is being done, and then use that string or ID to do some other stuff, so basically .GetSkillName(), or .GetSkillID().... Link to comment Share on other sites More sharing options...
IsharaMeradin Posted February 17, 2023 Share Posted February 17, 2023 There is GetActorValue which is used to get the values of those skills (and other values on that list). But as for which skill is being learned at a specific point, outside of OnStoryIncreaseSkill which is used by the Story Manager and does not seem to work while menus are open, I have no idea how to tell without constantly monitoring or occasionally checking the skill values for changes. Link to comment Share on other sites More sharing options...
Wolfpack49 Posted February 18, 2023 Author Share Posted February 18, 2023 Yeah its looking like checking whether a skill has incremented is the way to go. Too bad Ill need to poll all the skill values but seems like the only way. Link to comment Share on other sites More sharing options...
scorrp10 Posted February 18, 2023 Share Posted February 18, 2023 You can check if actor belongs to a JobTrainer....Faction (i.e. JobTrainerSneakFaction), and kinda make a map of faction to skill Also can check actor Class (actor.GetBaseObject().GetClass()) if it is one of trainer classes (i.e. TrainerIllusionExpert) Link to comment Share on other sites More sharing options...
RichWebster Posted February 18, 2023 Share Posted February 18, 2023 Trainers have a faction attached to them that specifies the skill they train, if that's any use. https://wiki.nexusmods.com/index.php/Adding_a_Trainer_NPC_to_Skyrim Link to comment Share on other sites More sharing options...
Wolfpack49 Posted February 18, 2023 Author Share Posted February 18, 2023 I actually think polling the skill levels is going to end up being better in this particular case -- I need those values anyway to do some calculating, so if I go with Game.getPlayer().getActorValue(skill), I can figure out both which skill was trained as well as the value it increased by. Doing this with the OnMenuOpen/Close Events. Thanks everyone, got me pointed in the right direction. Link to comment Share on other sites More sharing options...
Recommended Posts