Deleted1056177User Posted April 5, 2017 Share Posted April 5, 2017 (edited) Hi guys, I am looking for the scripts that calculate the defence rating for settlements but I can only seem to find scripts that use that value. Does anyone know where the value is calculated? I plan on changing the defence value provided by guards to also increase by a small amount based on their equipment. The equation to calculate how much they provide is as follows. If weapon dps >= 50 Defence Rating = Defence Rating + 5 Else Defence Rating = Defence Rating + weapon dps / 10 If armour rating >= 50 Defence Rating = Defence Rating + 5 Else Defence Rating = Defence Rating + armour rating / 10 This will be in addition to the 2 defence that is provided for each guard post they are assigned to. Any help finding the script I am looking for will be appreciated. Thanks guys. Edited April 5, 2017 by Guest Link to comment Share on other sites More sharing options...
deadbeeftffn Posted April 5, 2017 Share Posted April 5, 2017 There is a lot of attack and safety stuff in WorkshopScript and WorkshopParentScript though i think it would be a bad idea to change those scripts. Alternatively you can create an object and assign two ActorValues:Safety = 20WorkshopResourceObject = 1 This would add 20 Safety-points to your settlement. If you modify the value, this should also modify the amount of safety added to the settlement. Link to comment Share on other sites More sharing options...
Deleted1056177User Posted April 5, 2017 Author Share Posted April 5, 2017 Thanks! I tried to make sense of what I was seeing in the Workshop and WorkshopParent scripts but it just gave me a headache lol. When you say create an object do you mean a workshop placeable object such as turrets, chests, wardrobes, etc? I'm still trying to get my head around the workshop system so that will give me an excuse to start messing around with placeables lol. Link to comment Share on other sites More sharing options...
deadbeeftffn Posted April 5, 2017 Share Posted April 5, 2017 When you say create an object do you mean a workshop placeable object such as turrets, chests, wardrobes, etc? Yes, exactly. Every object which may have Actor-Values and scripts should be okay. Link to comment Share on other sites More sharing options...
Deleted1056177User Posted April 9, 2017 Author Share Posted April 9, 2017 When you say create an object do you mean a workshop placeable object such as turrets, chests, wardrobes, etc? Yes, exactly. Every object which may have Actor-Values and scripts should be okay. Thanks for all the help :) Meant to reply earlier but I had to reinstall everything on my computer. Link to comment Share on other sites More sharing options...
Recommended Posts