May I ask on how we can detect if the random option is already assigned in either 1st to 5th random option slot?
I'm trying to avoid duplicate random option on mob drops.
I've used this post of mine as reference, random option is working.
My problem now is I cannot stop the duplication of random option, the random option always ends up being duplicated on either 1st to 5th slot.
I'm using this line. What I would like to achieve is that if the code detects the same random option id on the 1st to 5th slot, it will either break it, or reroll and add another random option.
Random Option must be unique and does not have a duplicate on all slots.
On 10/3/2020 at 7:38 AM, -to- said:
I needed a quick change to make something like this work.... It might help you:
You just need to replace the function void itemdb_add_randomopt(struct item *it) in itemdb.cpp and recompile. It makes 1random option 100%, 2nd 80%, 3rd 60% and so on...
Question
mawjustin
Hi Team,
May I ask on how we can detect if the random option is already assigned in either 1st to 5th random option slot?
I'm trying to avoid duplicate random option on mob drops.
I've used this post of mine as reference, random option is working.
My problem now is I cannot stop the duplication of random option, the random option always ends up being duplicated on either 1st to 5th slot.
I'm using this line. What I would like to achieve is that if the code detects the same random option id on the 1st to 5th slot, it will either break it, or reroll and add another random option.
Random Option must be unique and does not have a duplicate on all slots.
Thank you.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.