I have two sets of objects/variables:
berry
berryGen
berryGenNo (a variable)
carrot
carrotGen
carrotGenNo (a variable)
I thought I could write a function with 1 parameter for the 'fruit', and then be able to say, for instance,
for 1 to fruitGenNo
Pick a fruitGen
Spawn a fruit
But I can't seem to make the compound show up as a variable. Using fruit&GenNo or fruit&Gen doesn't work.
Am I trying to do the impossible? This seemed to be a good use of functions.