Question of room types

Thickar
28 Mar 2018, 03:40

What does each room type do?
And is it possible to get a room, or an object functioning as a room, to have verbs?
Like the room has the verb to shout because you into the room rather then at a particular object


K.V.
28 Mar 2018, 04:19

The room has a 'Scripts' tab. Under that, you'll see 'Commands'. Any command you add there will only work in that room, and it will override any command with the same pattern while in that room.


Thickar
28 Mar 2018, 04:22

I don't understand how that answers my question?


K.V.
28 Mar 2018, 04:25

You want SHOUT to follow a specific script when the player is in a certain room; correct?


Thickar
28 Mar 2018, 04:32

Okay now I get it I don't want a command, I don't want the player to type it in, I want the room to have a verb to do it, I thought that if I make the object type object and/or room, I could achieve that because that type has both room setting and has a verbs tabs, but I can't figure out how to make the verbs appear in the game when I enter the room


K.V.
28 Mar 2018, 04:36

What does each room type do?

I only know of one type concerning rooms (editor_room), and it only concerns the editor. It does not even exist in a published game.

And is it possible to get a room, or an object functioning as a room, to have verbs?

Yes. You would have to set it up as "Object and/or room", but the verb will only work when that room is inside of the same room as the player. (Meaning the room would need to be inside of a room, which probably defeats the purpose.) In this case, the command would be SHOUT ROOM_NAME, which would make little sense.

like the room has the verb to shout because you into the room rather then at a particular object

I believe you want the player to be able to enter the command SHOUT while in a specific room to have a specific script run.

To do this, you would need to add a command to the room.

The room has a 'Scripts' tab.

Under that, you'll see 'Commands'.

Add the command "shout", with a script of your choosing.

While in that room, the player can enter SHOUT, and your script will run.


K.V.
28 Mar 2018, 04:39

If you want something the player can click, you'd still need to add the command. Then, you could either add a command pane or just print a message with a command link.

The command link is probably the best choice, especially if you don't have a command pane already.

In code view, you could do something like this:

msg("Blah, blah, blah....  Maybe you could {command:shout} or something...")

The Pixie
28 Mar 2018, 07:45

You cannot add a verb in that way because the room does not appear in the list of objects, and so the verb will not appear. You could have an object with the alias "room" inside each room, and give that verbs?

However, the best way is to add a command pane.
http://docs.textadventures.co.uk/quest/command_pane.html