multi-language game

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

multi-language game

Postby Walter » Thu Dec 28, 2006 2:18 pm

Hi, I'want my game to be playable in two languages (german and english). So far I solved this for dialogs with a second screen for each dialog which is activated depending on a variable set in an options screen. This works fine for dialogs but not for comments ("this is a tree") which can be many and anywhere on the screen. I think I can solve this by importing the text out of two different ini-Files. The next thought was, why not do the same with the dialogs? But i didn't find any function to get text into a dialog (questions, answers, switches). Is there such a function? Or has anyone a better idea to do this? Happy New Year!
Walter
Walter
Junior Member
 
Posts: 11
Joined: Thu Dec 14, 2006 8:09 pm
Location: Graz - Austria

Postby Candle » Thu Dec 28, 2006 6:12 pm

Welcome to the foruns Walter,


You can find a lot in the help file.



MESSAGE BOXES

A message box displays a message in a dialog box, waits for the user to click a button, and returns an integer indicating which button the user clicked.

The syntax is:

return_value = msgbox ( PROMPT, BUTTONS, TITLE )

where PROMPT is the text you want to be displayed in the dialog box, TITLE is the dialog box title and BUTTONS is an integer indicating the number and type of buttons to display, the icon style to use and the identity of the default button. Instead of specifying an integer for the BUTTONS argument, you can use the following VBScript constants:

NUMBER AND TYPE OF BUTTONS:

vbOKOnly = 0 Display OK button only.
vbOKCancel = 1 Display OK and Cancel buttons.
vbAbortRetryIgnore = 2 Display Abort, Retry, and Ignore buttons.
vbYesNoCancel = 3 Display Yes, No, and Cancel buttons.
vbYesNo = 4 Display Yes and No buttons.
vbRetryCancel = 5 Display Retry and Cancel buttons.

ICON STYLE TO USE:

vbCritical = 16 Display Critical Message icon.
vbQuestion = 32 Display Warning Query icon.
vbExclamation = 48 Display Warning Message icon.
vbInformation = 64 Display Information Message icon.

IDENTITY OF THE DEFAULT BUTTON:

vbDefaultButton1 = 0 First button is default.
vbDefaultButton2 = 256 Second button is default.
vbDefaultButton3 = 512 Third button is default.
vbDefaultButton4 = 768 Fourth button is default.

You can combine the constants above by using the "+" operator.

The following example shows how to ask the player if he wants a hint:

return_value = msgbox ( "Do you want a hint?", vbYesNo + vbQuestion, "HINT?")

The return value depends on the button that the player has clicked. Here is the list of all the possible values:

vbOK = 1
vbCancel = 2
vbAbort = 3
vbRetry = 4
vbIgnore = 5
vbYes = 6
vbNo = 7

The following example shows how to ask the player if he wants a hint and then give it to him he clicked "OK":

return_value = msgbox ( "Do you want a hint?", vbYesNo + vbQuestion, "HINT?")
if return_value = vbOK then msgbox "You have clicked OK. Here is the hint..."

http://www.adventuremaker.com/help/vbsc ... htm#msgbox
Hope that helps you out.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3058
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Walter » Thu Dec 28, 2006 7:23 pm

Thanks for the quick reply, but this is not exactly what I meant. To be more specific, what I search for is access (via VBScript) to the functionality of the dialogue wizard that is loading text into questions and answers and change the properties like visibility (Hide/Show, visible at start). Maybe this is not even possible?
Walter
Junior Member
 
Posts: 11
Joined: Thu Dec 14, 2006 8:09 pm
Location: Graz - Austria

Postby Candle » Thu Dec 28, 2006 7:30 pm

You will have to wait till GM comes along and helps you with this as I don't much about that part of it.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3058
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Walter » Mon Jan 08, 2007 8:40 pm

To my next problem regarding multi-language support for which I see no solution:

There are tooltips for each inventory-item showing the name of the inventory item. I see no chance to change this depending on the language.

Has anyone an idea?

Regards Walter
Walter
Junior Member
 
Posts: 11
Joined: Thu Dec 14, 2006 8:09 pm
Location: Graz - Austria


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron