@Stevie G: This all boils down to the 'Include' statement being pre-processed.It is, so thats pretty much the end of the story for what I was trying to do.Its as fundamental as that.
To explain, I was using the Include statement much as you would, for example the 'Print' or 'Text' statements.
I could therefore do the following:
Get_Character=GetKey(); gets the character number
If Get_Character>7 then Print "Number too high":End
Print "Character selected is"+Get_Character;
But I cannot 'Include' Get_Character'+".bb" (assuming it was an integer or even a string between 0-7, sorry for the simplified code).I would have to include them all as the processing would have to include every option before runtime anyway.
The game would ideally have just included the data for that character, as I dont need the data for any other redundant characters.I cant use the include keyword like this though. Hope that explains it all.
What Im going to end up doing, is writing all character data to a file in the form of data statements. Tricky to write, but dead easy to read from.
To write, I will have to do a string compare function, much like the 'Restore' keyword which points to the start of a data list to be read.
The data would then be written as below example:
Data "fred",100,2, etc
From a table which stores characters name,characters energy,weapon number used,etc, to corellate with the above data statement.
The data would then be read into a multi dimensioned array, which stores all the character data for each character.
At the end of the day, with the includes, I can just paste it all in anyway. I just wanted to keep the size of my final code down, ideally.
As for the read/write issue, it wont be quite as simple as there are no real commands for writing data into data tables, so I will go with the above mentioned ideas.
To explain, I was using the Include statement much as you would, for example the 'Print' or 'Text' statements.
I could therefore do the following:
Get_Character=GetKey(); gets the character number
If Get_Character>7 then Print "Number too high":End
Print "Character selected is"+Get_Character;
But I cannot 'Include' Get_Character'+".bb" (assuming it was an integer or even a string between 0-7, sorry for the simplified code).I would have to include them all as the processing would have to include every option before runtime anyway.
The game would ideally have just included the data for that character, as I dont need the data for any other redundant characters.I cant use the include keyword like this though. Hope that explains it all.
What Im going to end up doing, is writing all character data to a file in the form of data statements. Tricky to write, but dead easy to read from.
To write, I will have to do a string compare function, much like the 'Restore' keyword which points to the start of a data list to be read.
The data would then be written as below example:
Data "fred",100,2, etc
From a table which stores characters name,characters energy,weapon number used,etc, to corellate with the above data statement.
The data would then be read into a multi dimensioned array, which stores all the character data for each character.
At the end of the day, with the includes, I can just paste it all in anyway. I just wanted to keep the size of my final code down, ideally.
As for the read/write issue, it wont be quite as simple as there are no real commands for writing data into data tables, so I will go with the above mentioned ideas.