How do I use a script to move player to another room

Hello, I'm having a bit of trouble In understanding how to move the player to another room using a script that's on an object (verb). Im not even sure if this is possible, as there is no 'player' object. some help would be very much appreciated! Thank you!


Hello.

This will probably help:

https://docs.textadventures.co.uk/quest/move_object.html


If not, let us know!

Happy gaming!


HINT:

You want to use game.pov to target the player.


You just have to move the player object to a new room, and everything else will be done automatically.

You can access the player object using the expression game.pov.

The following lines of code are all the same (I listed the most efficient first):

game.pov.parent = kitchen
MoveObject (game.pov, kitchen)
MovePlayer (kitchen)

If you want to see what they look like in the GUI, just enter them in code view and then switch back. Sometimes the GUI makes it harder to enter some functions because they aren't in the category you might expect.


Thank you so much!


Log in to post a reply.

Support

Forums