Jump to content

About Factions, Main Quest and the Institute


Zorkaz

Recommended Posts

Getting really lost in the MQ jungle so:

 

If the player joins the Institute or fights it, does the Institute faction get added (or removed) to the PlayerRef?

 

Or is the PlayerFaction set to be friendly to the InstituteFaction?

 

Link to comment
Share on other sites

Player is added to and removed from InstituteFaction.

 

The key globals to check are PlayerInstitute_Joined and PlayerInstitute_KickedOut so you can do a three way validation on state;

If (pPlayerInstitute_Joined.GetValue() == 0) 
   ; not yet joined should not be in InstituteFaction
ElseIf (pPlayerInstitute_Joined.GetValue() == 1) && (pPlayerInstitute_KickedOut.GetValue() == 0)
   ; joined not kicked must be in InstituteFaction
ElseIf (pPlayerInstitute_KickedOut.GetValue() == 1)
  ; kicked out must not be in InstituteFaction
EndIf

Or you could just test (pPlayerREF.IsInFaction(pInstituteFaction). Be extremely careful about adding and removing the player from that faction, you will blow the game up if you are not aware of ALL the consequences in various quest states.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...