Hello everyone, I'm struggling for a week how to make a number fall out of an array. There is equipment in the example and it is necessary to do so that when throwing on the battle, the thing that lies in the face that fell randomly dropped out. Sorry for mistakes I use google translater.
I'll tell you in detail. There is a store where we buy things and they are equipped in one of 6 slots. Then we go to the battle and there when the character is clicked, we have a random number. And when it drops out there must appear a picture of what happened, namely what was in this slot in the inventory.