Re: Dynamic Script Usage
PostPosted: 18 May 2013, 12:35
OK, I need help.
#1
I want to display some information on the top left with Actions.SetOverlayText. Party to display debug values, partly for a later information display.
I discovered, that a second invoke of Actions.SetOverlayText overrides the first text display. This makes it neccessary to write one single function that displays the whole text. BUT: i don't have a global string available (or a array of strings) to store all the text that is created in different functions throughout the whole code. So how to proceed?
If it's not clear what I want, let me try to explain with some pseudo-code:
But how do I manage to display bot words, best would be in separate lines?
Btw. the libx-file does not help in this case, because my text is dynamically created.
The basic idea would be to create a global string-array and let the different functions add their lines to that string-array. Then finally, this string-array is displayed once. But global arrays are not available, even global strings are not.
#2
why does your version of PascalScript not support const arrays?
According to the pascalscript documentation I use, something like should be valid, but it gives not with your version.
Even a does not work.
Your pascalscript behaves on const like C does with #DEFINE - a mere text substitution. Why is this?
#1
I want to display some information on the top left with Actions.SetOverlayText. Party to display debug values, partly for a later information display.
I discovered, that a second invoke of Actions.SetOverlayText overrides the first text display. This makes it neccessary to write one single function that displays the whole text. BUT: i don't have a global string available (or a array of strings) to store all the text that is created in different functions throughout the whole code. So how to proceed?
If it's not clear what I want, let me try to explain with some pseudo-code:
This displays only 'two', so I assume that it overwrites the 'one' .
But how do I manage to display bot words, best would be in separate lines?
Btw. the libx-file does not help in this case, because my text is dynamically created.
The basic idea would be to create a global string-array and let the different functions add their lines to that string-array. Then finally, this string-array is displayed once. But global arrays are not available, even global strings are not.
#2
why does your version of PascalScript not support const arrays?
According to the pascalscript documentation I use, something like should be valid, but it gives not with your version.
Even a does not work.
Your pascalscript behaves on const like C does with #DEFINE - a mere text substitution. Why is this?