Jump to content

Npc Relationship based on armor keyword


Recommended Posts

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
Link to comment
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
Link to comment
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

 

Link to comment
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

Link to comment

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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use