Frictional Games Forum (read-only)
[LANG] Recall with script file ||CS which used Thalers - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [LANG] Recall with script file ||CS which used Thalers (/thread-23448.html)



Recall with script file ||CS which used Thalers - Paulpolska - 09-30-2013

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 ??


RE: Recall with script file - Paulpolska - 10-01-2013

Refresh ^^

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


RE: Recall with script file ||CS which used Thalers - Kreekakon - 10-01-2013

I don't think you can use script functions to influence what goes on in the .lang file


RE: Recall with script file ||CS which used Thalers - Paulpolska - 10-01-2013

Maybe It is possible. You know CS which used coins ??


RE: Recall with script file ||CS which used Thalers - Your Computer - 10-01-2013

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.


RE: Recall with script file ||CS which used Thalers - The chaser - 10-01-2013

(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


RE: Recall with script file ||CS which used Thalers - Paulpolska - 10-03-2013

(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.