terrasurfer Posted December 30, 2018 Share Posted December 30, 2018 (edited) I'm currently trying to do exactly what the title says. I hate the engine rule that everything you previously killed gives you xp after re-spawning when killed by someone/thing else. After 200 hours *Ka-Chinggg* of gameplay there's hardly *Ka-Chinggg* any place you haven't *Ka-Chinggg* *Ka-Chinggg* *Ka-Chinggg* visited before. :smile: Coming right from Unity3D with its simple and transparent "add script to object and change variables in the inspector" structure + instant play testing, scripting with the Creation Kit feels extremely difficult and cumbersome in comparison. Respect to anyone who learned to handle this tool! That said, this is what my "Unity" brain tells me to do in order to solve the problem:-----------------------------------------1. Grab event that gives xp2. Get current amount of player kills3. If kill count the same, block xp event OR if event can't be blocked 2. Cache current amount of player xp3. If kill count the same, revert xp back to cached value----------------------------------------- Now, here's what I learned while going for the solution above: - The Player object can be accessed globally by playerREF (fastest) and Game.GetPlayer()- Actor Values do not allow access to current amount of xp or the remaining amount of xp to the next level- There is no xp event- There is no global update function which would help monitoring values permanently if need be- I'm unable to google the correct terms to find out what my script needs to extend (Actor?) or if I need to create a dummy quest for this kind of modification and last but not least, what object to attach the script to The most helpful bit of code I found on creationkit.com was this: Float Function GetExperienceRemaining() ; returns the amount of experience remaining for the current level. Return Game.GetExperienceForLevel(Game.GetPlayer().GetLevel()) - Game.GetPlayerExperience() EndFunction But this requires the Fallout 4 Script Extender which, as far as I know, doesn't work flawlessly with FO4VR or not at all. To be honest after 2 hours of research I gave up because there are simply no precedents for "Block unearned xp", only requests for "Disable exp gain completely" which is obviously not what I want. May be it's because my search terms always include "exp" but I don't know what else to look for. Is what I ask for even possible? I'd really appreciate any help. Anything that brings me a bit closer to a solution is very welcome! Edited December 30, 2018 by Joalder Link to comment Share on other sites More sharing options...
Recommended Posts