The last command - how to print it?

Hi all,

I've customized a few buttons in the compass panel, using The Pixie's guide from GitHub.

Two things:

  1. Upon clicking the link, the command works, but it doesn't display the command above the text output (>LOOK doesn't show up on a line above the room description)
  2. nor does the text print to the screen correctly (you have to scroll down to read anything).

I'm fairly certain that this problem is not insurmountable1, but, once again, I am at a loss, unless it's just a functionality issue.


So, I'm trying to just print (">{the_latest_command}") on the first line in the function script to emulate the entered command being printed on the first line of output. (Making the screen scroll automatically (like it normally does) is beyond me, though. I'm hoping there's a built-in function to display the last command that I'm simply overlooking.)


Attachment: They Call Ya' Mister (Quest port) (VERY rough draft) (in progress).aslx


FOOTNOTE 1
I couldn't resist using that 'corporatey' terminology. All apologies.

Put an extra line at the start of HandleButtonClick:

msg(">" + s)

All right!

Thanks, Pixie!

That worked perfectly.

Any insight on how to make the screen advance/scroll when the text prints out?

NOTE: This is trivial at this juncture. I have removed the uibuttons for the moment. If I could overcome this last obstacle, I would add the buttons back in, but, like I say, it's no biggie. (If you have bigger fish to fry, go right on ahead. I'm patient.)


It should work with (but it should be doing that anyway):

JS.scrollToEnd()

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums