@Allerka
Adiktuzmiko explained it pretty well, it checks each affix in order and applies the first one that passes the check. In that sort of system, if you had three prefixes in a row all with 50 for their chance, the first is 50% to apply, second is 25% to apply, third is 12.5% to apply. The reason I did that is because it was the first thing that came to mind. The pool/rating method is nice, but each would have to have a blank affix as well.
No, there isn't a way to make weapons/armors bought from the shop randomized. Or there wasn't anyways, I updated the script and it's on the pastebin right now. You should notice a new constant at the top marked WA_SHOP_RANDOM which when set to true will randomize weapons and armors bought from the shop, hopefully with 100% accuracy!
Yes and no! You're not doing anything wrong but you aren't looking at it right. All those bonuses only affect the weapon, so it boosts the item's DEF by 5% and is reflected in the final total after creation. My guess is that item you randomized has 0 def to begin with, which in that case provide a bonus of 0 def. But that doesn't mean having an affix make the players def go up by 5% is impossible! It requires using the features though (confusing things).
For example... adding
:features => [[21,3,1.05]]
to you affix would have it increase player defense by 5%.
@Adiktuzmiko
Yah, that would make the rarity make more sense, but I don't like the idea of that blank affix thing. I don't like multiple affixes either! I don't need a Bronze Iron Steel Dagger of Might Magic Strength! (I know what you meant, I just wanted to say that... and I lied, I do need that). It's a bit different, but I like the current method I have set up for rarity. It might take some getting used to but when you do it's pretty easy to use.
Adiktuzmiko explained it pretty well, it checks each affix in order and applies the first one that passes the check. In that sort of system, if you had three prefixes in a row all with 50 for their chance, the first is 50% to apply, second is 25% to apply, third is 12.5% to apply. The reason I did that is because it was the first thing that came to mind. The pool/rating method is nice, but each would have to have a blank affix as well.
No, there isn't a way to make weapons/armors bought from the shop randomized. Or there wasn't anyways, I updated the script and it's on the pastebin right now. You should notice a new constant at the top marked WA_SHOP_RANDOM which when set to true will randomize weapons and armors bought from the shop, hopefully with 100% accuracy!
Yes and no! You're not doing anything wrong but you aren't looking at it right. All those bonuses only affect the weapon, so it boosts the item's DEF by 5% and is reflected in the final total after creation. My guess is that item you randomized has 0 def to begin with, which in that case provide a bonus of 0 def. But that doesn't mean having an affix make the players def go up by 5% is impossible! It requires using the features though (confusing things).
For example... adding
:features => [[21,3,1.05]]
to you affix would have it increase player defense by 5%.
@Adiktuzmiko
Yah, that would make the rarity make more sense, but I don't like the idea of that blank affix thing. I don't like multiple affixes either! I don't need a Bronze Iron Steel Dagger of Might Magic Strength! (I know what you meant, I just wanted to say that... and I lied, I do need that). It's a bit different, but I like the current method I have set up for rarity. It might take some getting used to but when you do it's pretty easy to use.
Because now I have far too much time invested in it to not use it.