About/Help Gui that relies on a script file
by Orion the Hunter · in Torque Game Builder · 07/09/2012 (8:27 am) · 5 replies
Hello,
I was wondering if there was an About/Help Gui that relies on a script file code. What I want is to put a gui (scrolling) text box down and have some sort of simple variable which calls a message of some sort to the text box. For example, I would guess it would be something like this: The gui has a variable that is "$pref::helptext" and if you go to an executed script file, there would be a line saying "$pref::helptext=Hello World!" Ideally, I want it to be something like "The story" and Controls" in separate sections. For a full Idea, please see MarbleBlast Gold which has this functionality.
I was wondering if there was an About/Help Gui that relies on a script file code. What I want is to put a gui (scrolling) text box down and have some sort of simple variable which calls a message of some sort to the text box. For example, I would guess it would be something like this: The gui has a variable that is "$pref::helptext" and if you go to an executed script file, there would be a line saying "$pref::helptext=Hello World!" Ideally, I want it to be something like "The story" and Controls" in separate sections. For a full Idea, please see MarbleBlast Gold which has this functionality.
#2
I'm sure this will be useful in the future but it wasn't exactly what I was looking for. Did you take a look at MarbleBlast Gold?
07/09/2012 (11:31 am)
Thanks,I'm sure this will be useful in the future but it wasn't exactly what I was looking for. Did you take a look at MarbleBlast Gold?
#3
It seems like you just want a text to be set to some variable... So... set the text to that variable?
You can exec() a script any time you'd like, and you can set text to the value a variable contains any time you'd like... so what's the question?
Incidentally we use executed script files for savegame files... They're just long chains of dumped out global variables like "$scene20_hatchOpen = 1;", etc.
Then we execute them to load up all the data, and it's good to go.
For more text-heavy stuff we use tab-separated spreadsheet files... For localization. If I remember correctly, executed script cannot handle UTF-8, so you can't have a variable $playerText = プレイヤー1; in script and have that come out OK in-game.
Is that what you're after? Localization text files?
[edit] LOL, apparently GG forums can't handle Japanese characters either. They showed up fine in the comment creation box... and then were borked after submitting it.
07/09/2012 (6:14 pm)
Sorry to impose, but can you describe what you're looking for in more detail without asking us to go download a game and try it?It seems like you just want a text to be set to some variable... So... set the text to that variable?
You can exec() a script any time you'd like, and you can set text to the value a variable contains any time you'd like... so what's the question?
Incidentally we use executed script files for savegame files... They're just long chains of dumped out global variables like "$scene20_hatchOpen = 1;", etc.
Then we execute them to load up all the data, and it's good to go.
For more text-heavy stuff we use tab-separated spreadsheet files... For localization. If I remember correctly, executed script cannot handle UTF-8, so you can't have a variable $playerText = プレイヤー1; in script and have that come out OK in-game.
Is that what you're after? Localization text files?
[edit] LOL, apparently GG forums can't handle Japanese characters either. They showed up fine in the comment creation box... and then were borked after submitting it.
#4
07/12/2012 (7:33 am)
Actually, if I use the resource the right way, I get a great outcome. Thanks!
#5
SOmeone has got to fix that problem.
07/19/2012 (8:32 pm)
Quote: $playerText = �����1;
SOmeone has got to fix that problem.
Associate Michael Hall
Distracted...