The ask order in Spanish (preguntar)
QuesitoTF
18 Jul 2016, 18:59Hello, I'm starting with Quest and I'm trying to create a game in Spanish, but I have a problem: if I test the game and I try to ask a question... I don't know how could I write the order. I made an experiment creating another project in English, and if I write "ask Recepcionista about money" it works fine, but in Spanish "preguntar Recepcionista sobre dinero" shows the message "No veo eso. (Recepcionista sobre dinero)"
Pertex
19 Jul 2016, 05:51You can check the language file espaniol.aslx, it's in the Quest installation path /Core/languages. The following phrases are thought to work for ask
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>.*)
but I think the expression is wrong
<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 or pipe | is missing between the single parts of the expression
So you can copy the language file into your game directory and change the ask template