Tell and Ask in spanish

Hello everyone, Im new to Quest and i am using the tutorial (in english) to make a game in spanish. When i test the game and write "preguntar a Bob sobre..." (Ask Bob about...) the game responds: "No entiendo tu orden" (I don't understand your command.)
I have activated the Ask/tell feature and added some keys to the Ask/Tell tab in the object named Bob.

This wasn't helpful for me: https://textadventures.co.uk/forum/quest/topic/k6hpxlb7r06ykxv35q7ibg/the-ask-order-in-spanish-preguntar

Thanks a lot, sorry if my english isn't quite right :)


It looks like the Spanish language file is broken.

If you're using the desktop version of Quest, you can fix this.
Somewhere inside the Quest folder, find the file Espanol.aslx. You should be able to open it in a text editor like Notepad.

Look for this line:

<template templatetype="command" name="ask"><![CDATA[^pregunta a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$|^pregunte a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$^preguntar a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$^preguntarle a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$^preguntale a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$^pregúntale a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$]]></template>

The line should be:

<template templatetype="command" name="ask"><![CDATA[^pregunta a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$|^pregunte a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$|^preguntar a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$|^preguntarle a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$|^preguntale a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$|^pregúntale a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$]]></template>

Or, to be a bit more readable:

<template templatetype="command" name="ask"><![CDATA[^(pregunta|pregunte|preguntar|preguntarle|preguntale|pregúntale) a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$]]></template>

which I think is equivalent.

or even:

<template templatetype="command" name="ask"><![CDATA[^preg[uú]nt[arle]+ a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$]]></template>

which is shorter and runs faster, but will also allow the player to enter some made-up words like "pregúntleer".

Alternatively, you could open your game in full code view, and paste the correct template line immediately after the line <include ref="Espanol.aslx" />; but you would have to do this again whenever you create a new game.

If you are using the web editor, then you can't do this. Instead, you would need to add a line to your game start script:

ask.pattern = "^preg[uú]nt[arle]+ a (?<object>.*) (sobre|por|acerca de) (?<text>.*)$"

Thanks a lot for the help, i tried the third option and works perfect.
And thanks for your time :)


Log in to post a reply.

Support

Forums