OK, having some problems getting the move to work correctly now. Maybe one of you more experienced scripters will see what's missing.
I've moved the dialogue nodes for moving and choosing a newleywed house to a different quest, but have the dialogues in RelationshipMarriageFin link back to them. So I did manage to get the dialogue options to pop up with the other house moving options. It's the actual moving that's not working.
So, on my newleywed responses I have the following script fragment:
RelationshipMarriageFIN.SetStage(10)(GetOwningQuest() as QutSpouseHouseWhiteview).MoveSpouse(akspeaker, QutWhiteviewHouse)
I'm referring back to the stages of the marriage quest, because I think it sets up some important functions of spouses through this right after the wedding, such as the spouse store if they are a merchant. On the other move dialogue responses, it skips the first line.
The second line is trying to use the script extension to RelationshipMarriageSpouseHouseScript that was posted above.
Scriptname QutSpouseHouseWhiteview extends RelationshipMarriageSpouseHouseScriptFunction MoveSpouse (Actor Spouse, ReferenceAlias NewHouse);Function puts the player spouse in the correct alias to sandbox in the appropriate house;Clear all the other house aliases before setting the new oneIf QutWhiteviewHouse QutWhiteviewHouse.Clear()EndIfEndFunctionReferenceAlias Property QutWhiteviewHouse Auto
The Alias has within it the packages for the new house. Is this script not going through the move functions (is it not calling RelationshipMarriageSpouseHouseScript)? I'm not experienced enough with scripting to know how the extension will call the functions of the base script. I don't get any error messages, but the spouse simply doesn't move to the new house. What's missing?
I do not have RelationshipMarriageSpouseHouseScript associated with my quest, so that compiling the quest scripts won't register as a change for that.
We're really close to a clean way to add spouses!
EDIT: SOLVED!
Just needed to add to the function
NewHouse.ForceRefTo(Spouse)
So, it almost doesn't need to be an extension of RelationshipMarriageSpouse because it already does everything as is.