Jump to content

Change NPC Relationship Level through dialogue


Derps4Days

Recommended Posts

I kinda dislike outright setting a NPC to "Lover" and being done with adding a marriage option, so I would like to know how to do this through dialogue and other events. For example, the player would have to be with the NPC for several days, clear a few dungeons, and (the one I want the most) answer certain ways in conversation. All I know is that you would use:

 

{actor}.SetRelationshiprank(Game.GetPlayer(), 4)

Game.GetPlayer().SetRelationshiprank({actor}, 4)

...but I don't know where to put it. Also, I would have to attach a Global Count to... something... for the dungeons and total days. Could someone walk me through this? At least a little?

Link to comment
Share on other sites

Ditch the vanilla method and create your own global and manipulate the values based on whatever you want. This would be a point system though. If you want it to be robust I suggest going with a fixed % base bonus/malus. You can also tie that to the RelationShipRank if you want to. Assuming you've used variables before, tying a script that manipulated the global variable to a choice should be simple.

For the amount of days I think you'll need a quest script to keep count. Number of dungeons, there's probably a function that can do it, same method, quest script.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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