Forum rules - please read before posting.

Retrieving and using current language index.

Hello everyone.
I'm currently working on the translation for my game D3AD HAND.

I have an inventory item which displays a Graphic. It is not an AC Document. I created a custom MANUAL MENU that I turn on when the player either USE or EXAMINE the item in the inventory.

image

I have now created two customs MENU. One for the English version and one for the Italian.

image

And my idea is to check the current index of the language and show either one or the other depending if the index is 0 or 1.

I managed to find out from the documentation how to check the DefaultLanguage but I can't find out how to retrieve the index of the current language (as of course the player can switch between them during gameplay from the option menu)

image

Any idea how to retrieve that? Or maybe I am just over-complicating the whole matter? Any suggestion is welcome.

Many thanks.

Comments

  • The current language can be gotten with:

    AC.Options.GetLanguage ();
    

    A list of this and other save-related functions can be found in the Manual's "Save scripting" chapter.

  • Thank you! Going to try and see if I can make it work.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.