Hi Mnemonic,
thanks for the answer.
We developed a system, where you can change it in game also.
at first the global language=null.
while its null you can't start a game. It's only the first window on start. there ara flags (gfx) to choose a language.
Now the language is for example =1 (german)
in game_deamon theres this:
if(language==1&&languagechange==true){
self.AttachScript("language\de\Captions.script");
self.AttachScript("language\de\Sounds.script");
self.AttachScript("language\de\TalkStrings.script");
self.AttachScript("language\de\Dialoge.script");
self.AttachScript("language\de\ItemOnItem.script");
languagechange=false;
}
if(language==2&&languagechange==true){
self.AttachScript("language\en\captions.script");
self.AttachScript("language\en\Sounds.script");
self.AttachScript("language\en\TalkStrings.script");
self.AttachScript("language\en\Dialoge.script");
self.AttachScript("language\en\ItemOnItem.script");
languagechange=false;
}
in the endeless while.
in base.inc is an include file that defines the globals (all var for text and sound files if you want to)
global v150101cpt;
global v150102cpt;
...
in the xxxx.script files (see above) the globals are defined:
v150101cpt="mainmenu";
I haven'd coded it yet finally. but im working hart.
Isn't it a possibility to do that changing in game thing.
p.s.:I know about the unreadability of the script, but we will make a visual basic application where we can type in our global var:
for exaple:
v 01 05 01 txt
and the output ist:
var.beach.lighter.take.txt
so we always know what the varable mean.
the only thing that dosen't work is to do it without the include file in the base, and istead defining in the xxxx.scripts.
global v150101cpt ="blabla";
and that ist my question. can I do this?
![Undecided :-\](http://www.dead-code.org/forum/Smileys/default/undecided.gif)
(difficult stuff, I know)