Ridiculous problem with verbs
thierry_st_malo
11 Jun 2016, 09:50Hi, all!
As you may know, I am translating Pixie's combat library into French. For version 1 this is done, except for one thing. I have no problems with commands, but for the life of me I can't understand anything to the code generated in a library for verbs and how to use them. I can use commands, dictionaries, lists, libraries and the like (unfortunately I have 45 years of programming experience) but verbs, NO! Too simple, probably
. I'm not joking, you know. Very simple things can be very difficult to understand for sheer simplicity.
So, out of desperation, I am asking for help.
Would somebody be kind enough to take the attached (Pixie's) library and :
- Change the very first verb "learn" to "apprendre" (still working, of course). Basically, just changing a word!
- Explain what has been done and why.
Many thanks in advance,
Thierry
As you may know, I am translating Pixie's combat library into French. For version 1 this is done, except for one thing. I have no problems with commands, but for the life of me I can't understand anything to the code generated in a library for verbs and how to use them. I can use commands, dictionaries, lists, libraries and the like (unfortunately I have 45 years of programming experience) but verbs, NO! Too simple, probably

So, out of desperation, I am asking for help.
Would somebody be kind enough to take the attached (Pixie's) library and :
- Change the very first verb "learn" to "apprendre" (still working, of course). Basically, just changing a word!
- Explain what has been done and why.
Many thanks in advance,
Thierry
The Pixie
11 Jun 2016, 14:20Look in the commands.xml library; all the verbs are there. It looks like this:
You need to change the pattern and defaultexpression. The property is the name of the script, so does not want to be changed (probably).
<verb>
<property>learn</property>
<pattern>learn</pattern>
<defaultexpression>"You can't learn " + object.article + "."</defaultexpression>
</verb>
You need to change the pattern and defaultexpression. The property is the name of the script, so does not want to be changed (probably).
thierry_st_malo
12 Jun 2016, 09:10Thanks, Pixie.