Changing verb patterns in translation file

Hi there,

I'm trying to improve the Dutch translation of Quest and I'm hitting a wall when it comes to verbs. I want change a verb, for instance "drop", from one word to a pattern. In stead of typing "drop sword", I want to type "let sword fall" for instance.

I changed the language aslx file from:


<verbtemplate name="drop">drop</verbtemplate>


to:


<verbtemplate name="drop">drop</verbtemplate>
<template templatetype="command" name="drop"><![CDATA[^let (?<object>.*) fall$]]></template>


This does not work unfortunately, and the debugger shows some weird stuff at this command when doing this.

What is the correct way to achieve this?

Thanks!

Unfortunately, it seems some command have templates and some have patterns. For example, if you look at the "drop" command, you'll see:

  <command name="drop" template="drop">

whereas for something like "ask" which has a command template, you have:

  <command name="ask" pattern="[ask]">

If you change the drop command to be:

  <command name="drop" pattern="[drop]">

then

<template templatetype="command" name="drop"><![CDATA[^let (?<object>.*) fall$]]></template>

will work. But you probably don't want to be doing that. That is, assuming you're trying to create a general-purpose language file, you can't be arbitrarily changing the core commands. If it's just for your own work, then you could import the verb into your game and change it locally.

I'll keep looking at it, but I haven't found a way to make it work so far. :(