Hello!!!!!
Guys I got a situation here and I am not sure what is the solution for it, I guess I will need array, but please give me some advice so I can figure this out.
My problem is this: I will have a character in a fight game. On beginning of each round, I would like to random some values, lets say 1 to 5 and this value will represent a weapon ID.
This char has a variable called weapon and the random will say which weapon this char will get, and in the game I already have 5 objects using these names: 1 = dagger, 2 = sword and so.
So on start of my layout, weapon = random (1,5) and I would like to Pin this number to my char. How is that possible? I need an array to do that?
Something like: if weapon = 5, pin mace to char.
Hope you can understand me and help.
Thanks alot!!!!!!!