Belthan Posted November 9, 2013 Share Posted November 9, 2013 I want a follower's dialog after trading items to be conditional on the DR of the armor worn after the trade. However, GetAV DamageResist continues to return the DR of the previous outfit until a new cell is entered. Anybody know of a way to force it to recalculate immediately? Specifically, Malibu will be a potential follower in Quo Vagis 3.0, and I know the first thing many people will do is give her something skimpy. However, she has enough sense not to fight super mutants in her underwear, and I'd like her dialog and AI package to reflect that immediately, rather than waiting until a new cell is entered (which could be too late). I suppose I could use GetClothingValue as a proxy for armor rating since it returns the correct value immediately, and Value is typically higher for better armor in better condition. However, it isn't perfect. A test outfit with AR=1 and Value=400 returns the same number as ranger battle armor, while a test outfit with AR=40 and Value=0 returns the same number as being nude. Link to comment Share on other sites More sharing options...
rickerhk Posted November 9, 2013 Share Posted November 9, 2013 I haven't had much luck with this issue either, so In my Brisa mod I compute the AR on all equipped armor slots, add it together (excluding duplicates) and forceAV the damageresist. But that requires FOSE.But also, just messing around this morning on another one of my followers, after changing their inventory and exiting dialog, disable them, exit back to Game mode, then enable them again at the console, caused the AR to be set correctly. Edit - actually,Disable, then enable when in dialog menumode works too. Though I didn't try it in a result script - just the console key when in dialog. Link to comment Share on other sites More sharing options...
Belthan Posted November 9, 2013 Author Share Posted November 9, 2013 Works in a result script, thanks! I had to add a topic between the one that opens the teammate container and the one with conditional responses... TradeItemsTopic (choices->) DRCalcTopic (choices->) ArmorOpinionTopic ...where DRCalcTopic calls disable/enable in the result script. Will try later to do this with a token or spell effect so script can run in the background and fire after the teammate container menu closes so I don't need the extra topic, but right now I'm late for an appointment. Thanks again! Link to comment Share on other sites More sharing options...
rickerhk Posted November 9, 2013 Share Posted November 9, 2013 Glad it worked out :P Link to comment Share on other sites More sharing options...
Recommended Posts