16
Technical forum / Use of string.tab
« on: May 21, 2009, 11:26:43 PM »
Hi,
I'm going to prepare the string.tab for the demo game, and I made several test, but only works in some cases.
For example:
If I put in the caption of a entity /ID_TEXT/Default text, works OK. If I put in the script a line like actor.Talk("/ID_TEXT/Default text"); works OK.
But if I put in the script a call like MyObject.DisplayText("/ID_TEXT/Default text"); this string not is interpretated, and WME pass to the DisplayText method the string "/ID_TEXT/Default text" and the method print in the screen /ID_TEXT/Default text not Default text only.
Is it correct? The Localization system works only with captions & methods like actor.Talk() or works will all strings of the game?
I'm going to prepare the string.tab for the demo game, and I made several test, but only works in some cases.
For example:
If I put in the caption of a entity /ID_TEXT/Default text, works OK. If I put in the script a line like actor.Talk("/ID_TEXT/Default text"); works OK.
But if I put in the script a call like MyObject.DisplayText("/ID_TEXT/Default text"); this string not is interpretated, and WME pass to the DisplayText method the string "/ID_TEXT/Default text" and the method print in the screen /ID_TEXT/Default text not Default text only.
Is it correct? The Localization system works only with captions & methods like actor.Talk() or works will all strings of the game?