I think I might be trying to do the impossible here, but would be grateful if anyone can an idea if I am barking up the wrong tree please?
I have a building (shown here) with a series of arenas that I want the user to "install" new competition maps onto by running code.
So, I have a series of arrays, one for each column of the arena grid that are defined on start containing block IDs
I have another array that contains the names of the column arrays that is also defined on start.
So this code initiates the arrays and orientated the builder (its "on chat" at the mo, but will eventually be "on start" and will call the second module)
This routine loops through the column arrays in turn to set the variable "col" to each item in the column arrays before passing control to the third module.
The third routine should work its way down the 19 columns in turn placing 30 blocks before moving back to the previous routine to pickup the name of the next column array (col1).
When testing by replacing the "col" variable with the name of a column array it will happily place the column of blocks, but obviously does not progress through the 19 column arrays. ie, it places 19 identical columns of block arrangements. When I replace the direct reference to a column array with the variable "col" that refers to a column array in the place block I get an error which says the string is not assignable to a number. I get that, but the variable "col" picks up its value from the array index, so has to be a number, so should be ok to define the block ID?
I'd be grateful for any thoughts. I could use a different method, but this way would be fairly neat. I will if I have to but before I do, I just want to check that there is not a way of making that "col" variable more palatable for the place block by ID command.
(ignore the "say" blocks. That's just me tracing programme control)
Thanks for your time.
Please sign in to leave a comment.