Hi I am trying to create a scenario where you talk to an NPC and he will cast a buff spell on you or a follower through dialogue.
I set up the Quest, and I've got it to work for him casting the spell on the PC. In my Topic Info I have this in my Papyrus End script: BuffSpell.Cast(game.getplayer()) with BuffSpell property defined. This works great, but I run into a problem getting the NPC to cast it on my follower:
Now I want the NPC to cast the buff on my current follower, so I put this in the Papyrus End Script:
BuffSpell.Cast(akspeaker,NPC1)
I created a Quest Alias named FollowerAlias that has Find Matching Reference: In Loaded Area, Closest both checked. Conditions are GetInFaction Faction:PotentialFollowerFaction == 1.00
I created a property called NPC1 that is Alias type, and points to FollowerAlias.
When I try to compile the script, it fails telling me that that variable NPC1 is undefined.
What am I doing wrong? Thanks in advance to anyone who wants to help me. I have been struggling with this for a week, and seeing all of the great people on this forum inspired me to create an account and reach out for help.