Here is my scenario:
1. I've created a potential custom follower NPC. "ArmorStormcloakOutfit" is her Default Outfit, and she has some steel armor in her inventory.
2. When I ask her to follow me and she agrees, I want her to equip the steel armor in that's in her inventory and for her Default Outfit to switch to "ArmorImperialLightOutfit".
I figured that hooking the script into the Character > Quest > Generic > DialogueFavorGeneric > Dialog Views > DialogFavorTopicsView > "Follow Me. I need your help." > "Lead the way." response is what I need to do, but I'm not sure how to actually trigger what I need from there. I've learned how to call very simple papyrus fragments, but I'm unable to call full functions. I tried referencing an external script and calling the function as explained in Method One here in the Creation Kit wiki, but although everything compiles absolutely nothing happens (I tried creating a function that runs a simple debug message box).
Along with my trouble getting scripts to actually run, I'm also not 100% sure if the function I'll ultimately use is written correctly (I haven't had a chance to run and troubleshoot it). If anyone sees errors in it let me know.
Scriptname MyFollowerStartScript extends Quest Actor Property pMyCustomFollower Auto Function CustomFollowerStartFunction(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor If (akSpeaker == pMyCustomFollower) If (akSpeaker.GetItemCount(ArmorSteelCuirassA) >= 1) akSpeaker.EquipItem(ArmorSteelCuirassA) EndIf If (akSpeaker.GetItemCount(ArmorSteelBootA) >= 1) akSpeaker.EquipItem(ArmorSteelBootA) EndIf akSpeaker.SetOutfit(ArmorImperialLightOutfit) EndIf EndFunction
I'm familiar with typical desktop programming but I'm really new to Skyrim scripting. Any help would be appreciated.
Edited by TravelerHD, 29 October 2020 - 08:19 PM.