MU Soapbox

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Muxify
    • Mustard

    Enforced line returns in say/pose?

    MU Code
    4
    7
    1931
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Rook
      Rook last edited by

      I have seen discussion of code that enforces/injects a line return into global says/poses(/emits)? Can someone point me to that? I cannot seem to find it for someone on the Rhost dev site asking for such functionality.

      As a related note, @Thenomain, do you have a git repo of your code that I can point people to? I am going to add some 'Helpful Resources' links to the Rhost git site, and plan to include Volund's suite.

      Thenomain 1 Reply Last reply Reply Quote 0
      • Roz
        Roz Banned last edited by

        Like puts a blank line between poses/says? Faraday's suite has +autospace which players can toggle on and off to have that if they want.

        Bobotron 1 Reply Last reply Reply Quote 0
        • Rook
          Rook last edited by

          Found it and passed it on, thank you. Adding Faraday's to the Rhost github page.

          1 Reply Last reply Reply Quote 0
          • Bobotron
            Bobotron @Roz last edited by

            It's also pretty simple just by itself.

            &posebreak Hook Database <HD>=[if([match([xget(%#,posebreak)],1)],[pemit(%#,%b)])]
            
            @hook/before (or @hook/after) say=<DBREF of Hook Database>,posebreak
            

            From there, a player can just &posebreak me=1 to turn it on, or 0 to turn it off. Or you can make a command that does it for them as well. Or you can just remove the necessary attribute if you don't want it turned off, like so...

            &posebreak hd=[pemit(%#,%b)]
            

            Then @hook it appropriately before or after.

            1 Reply Last reply Reply Quote 0
            • Rook
              Rook last edited by

              This was the crux of my answer to the person, Bobo. Thanks for the round-out!

              1 Reply Last reply Reply Quote 0
              • Thenomain
                Thenomain @Rook last edited by

                @Rook

                Look for Thenomain on Github. What you are looking for is "Support Systems".

                “If you wish to make an apple pie from scratch, you must first invent the universe.”
                ― Carl Sagan, Cosmos

                1 Reply Last reply Reply Quote 0
                • Rook
                  Rook last edited by

                  Yes, it too is added to the Code Resources page. Thanks, Theno.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post