I actually managed to make the crafting script work with this on my own, but still thanks!
And even bigger thanks to the Set Bonuses patch, now my equip scripts are finally completed for my game, yay!
And I actually got 2 questions about this script:
1. What is ':rarity' stands for? I couldn't see any examples in the demo for it, and couldn't really managed to get what that supposed to do. It says it's an arbitrary number, but that's it. So, is that something useful?
Is it connected to the first 4 affix setup where it says "#Rarity" in the comment?
2. What does 'POOL_RARITY' do? I suppose this got something to do with the above thing in question.
My theory is, that POOL_RARITY gets the rarity number from that :rarity symbol, and the affix on the weapon can be any affix with :rarity in their setup. But I'm not sure about it, so I ask.
If that theory is true, could it be possible to make 4 different sections in the affix setup, 1 for weapons, 1 for armors, 1 for accessories, and 1 extra for all of them? So, something that is supposed to be on a weapon only, can't get onto an armor, etc.
This would make it possible to make a completely random drop system without note-tagging my items till I drop.
Just by testing the script I made 100+ affixes, and I intent to make many more to use within my game. Inserting 100+ note-tags for 1 item is not really fun, let alone do that for the other god knows how many items I will make.
Or would it be possible to make a note-tag that could add a whole bunch of affixes with a random chance to select any of them?
That would really help me, and I guess, most of us, with setting up our database properly without flooding the note-box of all of our items.
Also I did some work and made some compatibility patches to some scripts and most (if not all) of them includes your scripts.
So, I was just wondering, can I post them (the instructions on how to make them work with other scripts)?
Anyway, I will PM you the details, don't want to get too off-topic here.
Thanks again for the help!
Ohh, and in this script, at the #Weapon Suffixes part, you wrote "feature" instead of "features" for all of the affix setup, which made me quite a headache and confusion when I first tried your script.
You should fix that before someone hastily assumes (like I almost did, sorry 😛 ) that this script is not working.
Edit2:
Okay, tried the snippet you wrote for the Set Bonuses, but it won't work for me.
Updated your randomization script, copied that snippet below both scripts in a new slot, and it didn't work.
It also broke the Set Bonuses script completely, unfortunately.
Before I did all of this, the set bonuses worked at least on regular items (adding the items the regular way), randomized items (adding with your script call - add_armor & add_weapon) didn't work (which I wanted to fix originally).
Do I need to do something else or did I miss something? *-*