Jump to content

Npc Relationship based on armor keyword


Recommended Posts

Posted (edited)

Heya! So, my question is, is it possible to create a condition where the presence of a keyword on armor would change the attitude of the NPC towards the player? Not attack, but like "setrelationshiprank" console command. For example, i want a player, when wearing clothes with the keyword "rich", to receive a relationship with an NPC wearing clothes with the keyword "poor" is -3.

Edited by Alis_999
Posted

offhand, I wouldn't think so. Well, maybe outside enchanting something with a speech boost, which theoretically might do something to improve your ability to gain relationship points indirectly, but that's merely idle speculation on my part.

Posted (edited)

Didn't think about that. I figured the OP meant some sort of temporary increase based on being around them.

 

But otherwise, wouldn't every NPC encountered become permanently "enamored" upon encountering you? 

Edited by anjenthedog
Posted (edited)
12 hours ago, traison said:

Sure, you just need to figure out when you want this to happen.

I don’t understand how your link to connect with the keywords on the clothes

Edited by Alis_999
Posted
1 hour ago, Alis_999 said:

I don’t understand how your link to connect with the keywords on the clothes

 

The code for that is going to change depending on where you implement this. But generally it goes something like this:

Actor Property OtherActor Auto
Actor Property Player Auto
Keyword Property SomeKeyword Auto

If (Player.WornHasKeyword(SomeKeyword))
    OtherActor.SetRelationshipRank(Player, 4)
Else
	OtherActor.SetRelationShipRank(Player, -4)
EndIf

 

Posted
3 hours ago, traison said:

 

The code for that is going to change depending on where you implement this. But generally it goes something like this:

Actor Property OtherActor Auto
Actor Property Player Auto
Keyword Property SomeKeyword Auto

If (Player.WornHasKeyword(SomeKeyword))
    OtherActor.SetRelationshipRank(Player, 4)
Else
	OtherActor.SetRelationShipRank(Player, -4)
EndIf

 

ok, thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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