Changing the player UI to include commands
The Pixie
05 Sept 2012, 12:43Is there a way to modify the player UI for custom commands? It is easy enough to do this with verbs related to specific objects, but nothing obvious for command without objects (look, wait, dance, jump, smell, listen, etc.).
Ideally, I would like to see a "Look" button in the middle of the compass, a "Wait" button under "Down" and "Out", and an area right of the where room-specific commands can go, analogous to the options for items.
I guess otherwise have a The Room object that you can put verbs on that trigger the commands, but that seems considerably less slick.
Part of the motivation here is to build a game that can be played only using the mouse, so can be converted readily to an App.
Ideally, I would like to see a "Look" button in the middle of the compass, a "Wait" button under "Down" and "Out", and an area right of the where room-specific commands can go, analogous to the options for items.
I guess otherwise have a The Room object that you can put verbs on that trigger the commands, but that seems considerably less slick.
Part of the motivation here is to build a game that can be played only using the mouse, so can be converted readily to an App.

Pertex
05 Sept 2012, 13:02There was a threadwhere we discussed this problem some time ago. Can't find it any more. I think it's not possible to change the player UI but there is an issue for Q5.3 to add additional panes which are fully custimizable
The Pixie
17 Sept 2012, 12:15I have had a play around to see what I could do for this, and here is the result:
It is a modification of the demo for the environment library, in the Ubiquious Items thread, and it add a "This Location" item, which is always present. The player can select it from the location, then click on "Wait at", "look in", etc. Go the the most eastern room, and it gets a "Dance in" option too,
It works fine, but how is it from a player perspective? Is it obvious what this is, and how to use it?
It is a modification of the demo for the environment library, in the Ubiquious Items thread, and it add a "This Location" item, which is always present. The player can select it from the location, then click on "Wait at", "look in", etc. Go the the most eastern room, and it gets a "Dance in" option too,
It works fine, but how is it from a player perspective? Is it obvious what this is, and how to use it?

Pertex
17 Sept 2012, 12:48Nice idea. There is only one problem for the player: he always must click on "This location" to see the actual buttons for this room.
What about this solution? I changed DoShowRoomDescription in envirolib.aslx and I added a modified GetTaggedName function to it. Now in the first line of the roomdescription (you are in) the name/alias of the room is a link, which calls the verbs of this_location.
What about this solution? I changed DoShowRoomDescription in envirolib.aslx and I added a modified GetTaggedName function to it. Now in the first line of the roomdescription (you are in) the name/alias of the room is a link, which calls the verbs of this_location.
The Pixie
19 Sept 2012, 14:58That does not work properly. Your link will be something like this:
The problem is that the id attribute is not used, and Quest tries to do "Wait at Room in a Building". Is there another attribute on the object tag that would work? I tried "name", and that fails too.
<object id='this_location' verbs="Wait at/Look at">Room in a Building</object>
The problem is that the id attribute is not used, and Quest tries to do "Wait at Room in a Building". Is there another attribute on the object tag that would work? I tried "name", and that fails too.

Pertex
19 Sept 2012, 17:08Hmmm, are you sure? Quest says "Wait at Room in a Building" but internal it is working with this_location. Here is a screenshot where it shows that "wait at" and "help for" are working.


The Pixie
20 Sept 2012, 07:43This is what I see:

The list of verbs appears as it should, and using the "This Location" object from the pane on the right behaves as it should. I am using build 5.2.4515.24532 by the way.

The list of verbs appears as it should, and using the "This Location" object from the pane on the right behaves as it should. I am using build 5.2.4515.24532 by the way.

Pertex
20 Sept 2012, 08:47Ah ok, I am working with 5.3
leftycool
03 Oct 2012, 09:13this looks like a good thread to ask in:
I want to create a new verb that becomes accessible to the player once a flag is raised.
I can find the add verb screen but I am not sure what information I fill in as there are several unlabelled entry fields.
is there a page in the documentation which has a step-by-step for creating verbs?
thanks in advance.
I want to create a new verb that becomes accessible to the player once a flag is raised.
I can find the add verb screen but I am not sure what information I fill in as there are several unlabelled entry fields.
is there a page in the documentation which has a step-by-step for creating verbs?
thanks in advance.