Videogamez Boy wrote:It is possible to make player, for example sit down or lying on particular object, or on the floor? Also, how to create a new commands, for example sleep?
See here:
http://docs.textadventures.co.uk/quest/ ... mands.htmlFor a position, I would set an attribute on the player object:
player.position = "sitting"
To sit on something specific is a bit more involved; you need to check it is there and can be sat on, and then flag what is being sat on.
And how to override some existing commands, like for direction commands (east, west, north, south) with custom messages?
The best way to do custom messages is to override the templates the command uses. See here:
http://docs.textadventures.co.uk/quest/ ... lates.htmlFor direction commands, that will not work as it does not use templates for some reason, so you will need to override the command. It is actually just one command, called "Go". You can view library elements by clicking the Filter button at the bottom of the editor tree, and selecting "Show Library Elements". Look in the commands section. Once you have it, you can click the "Copy" button, at the top right to get a copy in your game that you can edit.
Then you can modify it to check if the player is sitting:
if (player.position = "sitting") {
msg("You stand up.")
player.position = null
}
I appreciate this is kind of an overview of what you need to do, but it should get you going in the right direction. If you have more questions, just ask.