Clearing screen from a room to another

DjPoke
23 Oct 2013, 11:18
Hi all

This is my noob question :
When i go from a room to an other by a simple command like "north", i've noticed that my images are updated/replaced, but the text typed is still here.
How can i clear the text each time i go to an other room ?

Avantar
23 Oct 2013, 19:26
Well, I am still super new here too and struggle more than you'll know. :)

It is a good idea to go through the wiki if you click on the help button and then the question mark in Quest (For the desktop version)

I would say that if you click on your room name on the left, you will see all the tabs for the room on the right. Click on the tab called 'scripts'
Under the heading 'Before entering the room:' click on the button 'Add new script' and then enter this one liner:
ClearScreen


or let me correct this a little bit - Once you clicked on 'Add a script' you can choose 'Clear the screen' or you can click on the toggle button to view the code without clicking on 'Add a script'. It will be blank and then you just type in the code above.

That should be it.

kelsobrooks
23 Oct 2013, 22:22

Well, I am still super new here too and struggle more than you'll know


Me to!

Thanks for this easy tip, I have gone through the wiki about 65% so I have missed a few items along the way.
This was a great script for my full screens :lol:

Best Regards


DjPoke
24 Oct 2013, 14:49
Thanks for your help :)

Liam315
25 Oct 2013, 01:51
You can also save yourself the effort of manually adding the ClearScreen in every room by either adding it to whatever default function controls the printing of the description (I can't remember it offhand) when you enter a new room, or by adding it to the default room object type.

Avantar
25 Oct 2013, 10:07
Wow! No problem guys...lol
Glad that something small like this helped someone.