Hi,
I’m currently struggling with a problem, probably specific to the German by Team GerX extension but perhaps I’m doing something wrong in general. To run the code with the GerX extension you need Inform 7 6/G60 as German by Team GerX has not been ported to a more recent version of Inform (if you look at the amount of work those guys did … it’s understandable)
What I’m trying to do is to redefine two commands. The GerX extension defines those as well but with a different meaning:
“leg dich hin” = sleep
“steh auf” = exit
Since I am working with body positions (position height vs. object height when the player wants to take something) I need an alternative meaning:
“leg dich in” = assume the lieing position
“steh auf” = assume the standing poition
I have - with more recent forms of Inform and without the GerX extension - never had a problem to redefine a command or action. But if I try the following (written in English to make it easier to understand ^^):
"Command Override (again)" by HtF
Include German by Team Gerx. [Requires Inform 7 6G60]
Starting room is a room.
Every person can be standing or lieing. A person usually is standing.
LieDowning is an action applying to nothing.
Understand the command "leg [dich] hin" as something new.
Understand "leg [dich] hin" as LieDowning.
StandUpping is an action applying to nothing.
Understand the command "steh auf" as something new.
Understand "steh auf" as StandUpping.
Carry out LieDowning:
if the player is standing:
Say "You lie down on the floor.";
Now the player is lieing;
otherwise:
Say "You're already lieing on the floor, silly!";
Carry out StandUpping:
if the player is standing:
Say "You're already standing, mate!";
otherwise:
Say "You pick yourself up from the floor and get into a more dignified position.";
Now the player is standing;
If you run this and try “steh auf” or “leg dich hin” you’ll notice that you get the GerX responses instead of the ones I wrote:
Command Override (again)
Ein Textadventure von HtF
Release 1 / Serial number 181013 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N) SD
Starting room
>leg dich hin
Du fühlst dich nicht müde.
>steh auf
Aber du bist im Moment nirgendwo drin.
What am I missing to make sure my commands are executed and not the GerX one? The only solution I have found so far is to uncomment the definitions in the extension.