Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Noob question about scripting for text panel

Discussion in 'Programming (In-game)' started by doncdxx, Sep 30, 2019.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. doncdxx Apprentice Engineer

    Messages:
    411
    How do I skip lines on the text output?

    I wrote
    mainscreen.WriteText("> option 1", false);
    mainscreen.WriteText("- option 2", true);
    mainscreen.WriteText("- option 3", true);
    mainscreen.WriteText("", true); //attempt to skip a line
    mainscreen.WriteText("etc...", true);

    with the hopes of it looking like

    > option 1
    - option 2
    - option 3

    etc...

    but it comes out as
    > option 1- option 2- option 3etc...

    I'm making a menu for choosing options with a button panel with an up, down, and confirm button and it mostly works (I'll save question on that after I try a few more things), but I'm not getting the visual format I'm looking for.

    Could someone please tell me how I make it look like I want it to?
     
  2. Malware Master Engineer

    Messages:
    9,601
    The newline symbol is \n

    Code:
    mainscreen.WriteText("> option 1\n");
    
     
  3. doncdxx Apprentice Engineer

    Messages:
    411
    I was doing /n instead of \n. Noob mistake I reckon.
     
Thread Status:
This last post in this thread was made more than 31 days old.