Now what Im really trying to do is edit an existing quest, adding a new Alias and (edit) existing NPC, and then trying to set their relationship rank to the Player to enable them as a follower. It looked like it would be simple.
For this I picked Lisette and what I wanted to do was enable her as a potential follower once you complete the Tending the Flames questline(Bards College burning man). So I gave her the CurrentFollower(-1) and PotentialFollower factions, and use the console to test out that they worked("setrelationshiprank player 4"). Thats all fine, I even played around and added a Relationship in the CK and it worked like using the console in the game but I didnt want her enabled as a follower initially.
So... then I hopped right into trying out scripting, skipping the tutorials on the CK site like a noob. The Papyrus tutorials are all for full blown scripting though, and I cant find anything about differences from full scripts or Fragment scripts.
I open up the quest(MS05 if anyones curious), created a new Alias targeting Lisette(named AchLisette), picked an early Quest Stage(75) so it was easy to test, and added this:
Alias_AchLisette.GetActorReference().SetRelationshipRank(Game.GetPlayer(), 4)
Edit: From my understanding(which is almost none, Im new to this) this should be telling the game that "Take this Alias, find the Actor this Alias is pointing at, and set their Relationship with the Player to 4". Im not sure if the problem is the Alias isnt done right, or the script is wrong.
This was based off some browsing on the CK site and looking around at some other Follower quests(Mjoll, Sven). I tried different variables(?) instead of 4, because on the wiki it says -4 to 4 but using Mjolls quests(Grimsever's Return) as an example it only uses "(Game.GetPlayer(), 1)".
It, of course, didnt work.
I also tried using that at the end of the quest chain, thinking maybe that has something to do with it, but using the console to advance it(stage 300 in this case) didnt work either. Ive tried a few other things, like selecting the Alias via Specific Reference and Unique Actor, or adding some generic scripts to it I saw in other companion quest Aliases, but nothing seems to work.
I was going to try making a separate script and then have that run as part of the Alias instead, but I kinda want to know what the difference is between a full script and a "Papyrus Fragment" in a Stage(and obviously find out what Im doing wrong).