So I made a custom script that randomly generates a weapon and randomly applies properties. I plan to set the power of the weapon that is created as variables that can be set on the placable calling the script. Right now I have the weapon's power based on a 1d20 roll with 1 being a simple +1 or energy damage boost or other misc property. The more powerful weapons this has created has boggled even my mind but I found a flaw I thought I had scripted to prevent.
On the more powerful items it can draw 1, 2, or even three random misc properties and I considered and tried to script a routine to prevent duplicates but... well, on my test chest and out of 30 draws I saw duplicates at least twice. My guess is the script is running so fast, it's applying two powers at the same time or something like that. Anyway, I wonder if anyone might suggest a way to help prevent the doubling of properties.
So far, I saw keen doubled and Massive Crit 3 doubled.
I am also looking for a naming routine to name the created weapons... as is, they keep the exact name as the base item the script generated.
note: this script uses a custom 2da to draw the tags of the base item from.
Edited by ghowriter, 06 September 2018 - 08:50 AM.