Random Things in Developer Help
|
|
I know in some games it is random with certain things with certain items and stats you get... I was wondering, how would i set up a list for something like this so I can make it where everything has an equal chance? like with my game I'm having wands, but I only know how to have it where there are different odds of a certain part of the wand instead of the exact same odds.... anyone know how to solve that?
|
I am not exactly sure what you mean, since using pick() automatically gives everything the same odds... unless you specify otherwise. However, here is a snippet I put together a while back that may help:
You can use it to pick items from a weighted list. Just make a list that looks like this:
And call wpick with the list as the arguement. It will return an item in the list. You can give all items the same change or weigh them however you like.