ArrowFX Posted October 2, 2020 Share Posted October 2, 2020 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 More sharing options...
IsharaMeradin Posted October 2, 2020 Share Posted October 2, 2020 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 More sharing options...
ArrowFX Posted October 2, 2020 Author Share Posted October 2, 2020 Thank you so much. It works now and I can't believe that I didn't figure it out on my own. I guess I was so set in my mindset that I couldn't think up the solution. Link to comment Share on other sites More sharing options...
Recommended Posts