hi all!!!

My idea is to write object's names,player dialogs,npc's dialogs,etc.. in an external TXT file, and when level is loaded each line of file is stored in string arrays. This way I can easily change object's name from one to another by simply change object's index value.

Storing file lines to arrays have various advantages like:
-without reading the file every time to catch the strings;
-easily change string value to another by simple change model's skill value;
-you can translate your game texts to any other language just editing the TXT files.


(back to problem)
An understandeable example:
string obj_name[0]="";
string obj_name[1]="A Door";
string obj_name[2]="An Open Door";
string obj_name[3]="An Closed Door";
string obj_name[4]="A Rusty Door";

every frame, player scans for nearby models. if found, an string is write in the screen through a TEXT panel... but with which value?
The model found must have an INDEX (SKILL1 for instance), in this example, it's initially setted to 1... Now I know which value TEXT should display in the screen ( obj_name[model.SKILL1] )
ok... but now, let's suppose that player opens the door, so it's time to change the string from "A Door" to "An Open Door". To do this simple I change model.SKILL1 to 2.
The process repeats as I need....

This is my basic idea, But I'm facing some troubles with the strings properties. because (at least I think) that 3DGS doesn't support STRING ARRAYS, so I cannot apply the method I said.

Any good Idea?
-(ask me for more explanation if you need)


If you dont believe in God then look at the sun. He makes blind those who only believe seeing.