Timer Script Output not Aligning with Command Bar [Solved]

DavyB
07 Mar 2019, 09:59

When a message is output from within a timer script, there doesn't appear to be any subsequent realignment of the command bar, so it (and some of the text) can disappear off the bottom of the screen. Scrolling will bring it back but it would be better if alignment occurred automatically. Is this a known bug? Is there a workaround?


mrangel
07 Mar 2019, 12:22

You mean a JS timer?
Try using addTextAndScroll() rather than addText().


DavyB
07 Mar 2019, 13:43

Sorry mrangel, just meant a standard Quest timer, as in:

  <timer name="game timer">
    <interval>2</interval>
    <script>
      msg ("...")
    </script>
  </timer>

DavyB
07 Mar 2019, 14:01

...just found something that works JS.scrollToEnd ()! Problem solved!!