Well I finally got a fully working version of my simple script. Thanks again for the help, I'll post the code here in case it can be of help for someone else.
Actor Property AoS_Rayne Auto
Faction Property AoS_DruadachFaction Auto
EVENT onTriggerEnter (objectReference triggerRef)
Actor actorRef = triggerRef as Actor
if (actorRef == game.GetPlayer())
Debug.MessageBox("Player in the area!")
if (AoS_Rayne.IsDead() == false) ;Check if Rayne is ALIVE
Debug.MessageBox("Rayne is ALIVE")
if (game.GetPlayer().GetFactionRank(AoS_DruadachFaction) >= 0) ;Check if PLAYER is a member of the Druadach Redoubt's Faction
; Player is in the Druadach Redoubt's Faction
Debug.MessageBox("Player is in the Druadach Redoubt's Faction! Setting Rayne to ALLY")
AoS_Rayne.SetRelationshipRank(Game.GetPlayer(), 3)
game.GetPlayer().SetRelationshipRank(AoS_Rayne, 3)
else
; Player is NOT in the Druadach Redoubt's Faction! Set Rayne to enemy!
Debug.MessageBox("Player is NOT in the Druadach Redoubt's Faction! Setting Rayne to ENEMY")
AoS_Rayne.SetRelationshipRank(Game.GetPlayer(),-3)
game.GetPlayer().SetRelationshipRank(AoS_Rayne, -3)
endif
else
;Rayne is DEAD
Debug.MessageBox("Rayne is DEAD")
endif
gotoState ("hasBeenTriggered")
endif
endEVENT
STATE hasBeenTriggered
; do nothing
endSTATE
Out of curiosity. If the player marries the NPC and enters the trigger area again, will setting the Relationship Rank to ally affect the marriage?