Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

Single Line Prompt Mudlet

CezilCezil Member Posts: 20
edited October 2012 in Curing Systems and Scripts
Don't yell at me Carmain, I gave regular prompts a try, but does anyone happen to have a simple script for mudlet that utilizes a single line prompt?
Mishgul

Comments

  • VadimusesVadimuses Member Posts: 1,101 @ - Epic Achaean
    yes my curing system has it built-in.
  • RomRom Member Posts: 523 ✭✭✭✭✭ - Grand Achaean
    I will attest for Svo's singleprompt feature - it's fantastic. It also comes with a few features such as allowing for blank lines rather than run-on, and allowing for the full standard prompt alongside the constant prompt.
    Chat with other players in real time on your phone, browser, or desktop client:
    Come join the Achaea discord!
  • EldEld Member Posts: 3,946 @@ - Legendary Achaean
    Vadimuses said:
    yes my curing system has it built-in.
    Svo is hardly a "simple script", though.
  • VadimusesVadimuses Member Posts: 1,101 @ - Epic Achaean
    tis true. It's a pretty awesome script.
  • CezilCezil Member Posts: 20
    Eld said:
    Vadimuses said:
    yes my curing system has it built-in.
    Svo is hardly a "simple script", though.

  • DaeirDaeir AustraliaMember Posts: 6,276 @@ - Legendary Achaean
    Create a new mini console window 1 line high, align it with the bottom of the mudlet window, add a simple trigger with lua function return isPrompt() in it and pass the line to that mini console.

    That should work, and not be too complex to do. I'll give you specific code at a point where I'm at an actual computer and it's not 4am in the morning.


  • CezilCezil Member Posts: 20
    sweet deal, sounds awesome

  • DaeirDaeir AustraliaMember Posts: 6,276 @@ - Legendary Achaean
    Okay, here's the deal:

    In an empty script, call it whatever you want, paste the following:

    mainWidth, mainHeight = getMainWindowSize()

    createConsole("singleprompt", 12, 90, 1, 0, mainHeight-25)

    setBorderBottom(25)


    Then, in a new trigger:

    Match type: Lua function


    Match line: return isPrompt()


    Code:

    selectCurrentLine()

    copy()

    appendBuffer("singleprompt")

    deleteLine()


    And hey, presto. Singleprompt.



    MahtDraedetha
  • DraekkarDraekkar Member Posts: 12
    This little thing is great, thank you Daeir!
    --
    Draekkar Ravenwind
  • DaeirDaeir AustraliaMember Posts: 6,276 @@ - Legendary Achaean
    Glad to be of help. This isn't how Vadi does it I don't think, but it's a decent alternative!
Sign In to Comment.