Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: string table  (Read 2988 times)

0 Members and 1 Guest are viewing this topic.

leucome

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 86
    • View Profile
    • Leucome Games
string table
« on: June 14, 2006, 01:40:55 AM »

I try to use string table with a Game.Msg .
This way
Game.Msg("/SYSENG0102/Enemy " + "1" + Kind);

And the game display this msg  /SYSENG0102/Enemy 1 XXXXX

Do you know why the /SYSENG0102/ is not replaced by the string in the table?

And i Want to know if the sring table have some limitation or if it is intended to be used with any string in the script? not just in talk case?
Logged
Look my Site ——► http://news.leucome.ca

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: string table
« Reply #1 on: June 14, 2006, 06:48:30 AM »

Do you know why the /SYSENG0102/ is not replaced by the string in the table?
Game.Msg() doesn't expand the strings by default. It's intended primarily for debugging messages so it may be useful to see the original string sometimes. If you need the text to be translated, use:

Game.Msg(Game.ExpandString("/SYSENG0102/Enemy ") + "1" + Kind);


And i Want to know if the sring table have some limitation or if it is intended to be used with any string in the script? not just in talk case?
The string table should contain all the text that needs to be translated to other languages.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

leucome

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 86
    • View Profile
    • Leucome Games
Re: string table
« Reply #2 on: June 15, 2006, 12:16:13 AM »



Thanks
Logged
Look my Site ——► http://news.leucome.ca
 

Page created in 0.042 seconds with 20 queries.