Jump to content

Recommended Posts

So I have been trying to solve this for about 2 hours now and I know it's probably something simple that I am just overlooking or haven't noticed but I just can't figure out why my script won't work. Please have a look and tell me if you figure it out.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

If you are talking about your custom function SetRelationshipRank, there is already a function by that name available to papyrus (https://www.creationkit.com/index.php?title=SetRelationshipRank_-_Actor). It would be best to use your own name for the custom function. Plus your custom function is set to return an actor value and it is not doing that. Is it supposed to? If not, drop the Actor from in front of it.

 

I would suggest:

Function SetNPCRelationshipRank(Actor Target, Actor Player, Int Index)
  Target.SetRelationShipRank(Player,Index)
  Debug.MessageBox("Running Relationship Script")
EndFunction

 

Keep in mind when doing things as options are selected in the MCM that some code is latent and will not run until the menu is exited and the game no longer paused. This can cause issues for the next MCM menu entered without exiting back to the game. If possible, do your work in an update event registered for within the MCM's OnConfigClose event.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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