Frictional Games Forum (read-only)

Full Version: Recall with script file ||CS which used Thalers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use in .hps coins script and I need to create recall in .lang file on value of the current coins which player have.

SetGlobalVarInt("Coins",0); // this is global variable.

How to recall this value in .lang file as SetMessages ??
Refresh ^^

Maybe someone know which custom story used Thalers/Coins ??
I don't think you can use script functions to influence what goes on in the .lang file
Maybe It is possible. You know CS which used coins ??
If you're trying to avoid writing all possible values yourself in the LANG file, you're going to need to create a script or program in a different language (e.g. PHP, Python, etc) that does it for you. Using SetMessage afterwards would be no different than using SetMessage for any other entry in the LANG file, while providing the value of the global map variable for entry name. Writing to XML files with an internal XML writer won't be possible until HPL3.
(10-01-2013, 08:21 AM)Paulpolska Wrote: [ -> ]Refresh ^^

Maybe someone know which custom story used Thalers/Coins ??

Killings in Altstadt used them, if I'm not wrong Smile
(10-01-2013, 08:26 AM)Kreekakon Wrote: [ -> ]I don't think you can use script functions to influence what goes on in the .lang file

(10-01-2013, 07:07 PM)The chaser Wrote: [ -> ]
(10-01-2013, 08:21 AM)Paulpolska Wrote: [ -> ]Refresh ^^

Maybe someone know which custom story used Thalers/Coins ??

Killings in Altstadt used them, if I'm not wrong Smile

I don't see heh maybe if I finish this CS I see it but in scripts null.