malonn Posted June 4, 2015 Share Posted June 4, 2015 Hi all, I have a script that boosts armor rating by 20%. But I'm having trouble figuring something out. The scripts check for the player to be wearing all one type of armor (heavy or light). If true, it boosts the AR by 20%. I've got that; no problem. My issue is if the player changes a piece of armor. Let's say he's wearing all steel armor, then changes his boots to dwarven, what is an efficient way to track currently equipped armor, see what's changed and ONLY boost the armor that has changed? The script I have boosts all the armor. But if I run that script, the new armor will be boosted by 20%, but the old armor will get doubled to 40%. I would appreciate any help. Link to comment Share on other sites More sharing options...
TesaPlus Posted June 4, 2015 Share Posted June 4, 2015 Hi, there, what about this: Introduce a quest variable. Before putting on the dwarven boots, set it to 1; your script does the AR boost only if this variable is 0.or:Before putting on those dwarven boots, add an unique invisible item. Your script doesn't do the AR boost if this item is present. Remove the item afterwards.DISCLAIMER: I have never done this myself. Link to comment Share on other sites More sharing options...
malonn Posted June 5, 2015 Author Share Posted June 5, 2015 Thanks, TesaPlus. But I figured it out with a little help. If anyone is interested, I created an array that stores all armor that has been boosted already. In the function, I check for that armor. If it's not there, boost it. Link to comment Share on other sites More sharing options...
TesaPlus Posted June 5, 2015 Share Posted June 5, 2015 Nice :). Link to comment Share on other sites More sharing options...
Recommended Posts