DICE PACKS BUNDLE
  1. #1

    Linefeed in Dice Roll Messages

    Hi there,

    how can i create a Linefeed within a message. I have tried several things like /n and such, but it does not accept it. I helped myself with lots of spaces, but it does not work very well.

    Or do i need to split up the message and send it severel times. If so, how can i make sure, that the Dice message is showing at the end?

    Fenloh

  2. #2
    Did you try \r already?

    If you want to break into multiple lines, just make sure that you send the non-dice messages before the dice messages to make the dice appear at the end.

    Regards,
    JPG

  3. #3
    Hello moon_wizard,

    thanks for the quick reply.

    I tried \r and \n, but both seem to be registered by the program, but the outcome is somehow still one line.

    We are using the 4e Ruleset as a Baseis and the Message is sent to the Chatmanager using

    ChatManager.deliverMessage(entry);

    We did not get the dice to roll at the end of the message, yet. Maybe another hint?

    Fenloh

  4. #4
    I haven't done any coding, but how about "<br />" ?

  5. #5
    Zeus's Avatar
    Join Date
    Mar 2009
    Location
    Olympus
    Posts
    2,658
    Blog Entries
    2
    I might be labeled daft for suggesting this but instead of creating one message broken across two lines, could you not simply send two messages, one after the other?

    Each would then be distributed onto a new line. You can even fake the second message to look like its part of the first by omitting any icon or sender details.

    This is pretty much the approach I take when I need to send information that needs to be structured.
    FG Project Development
    Next Project(s)*: Starfinder v1.2 Starship Combat

    Current Project:
    Starfinder v1.1 - Character Starships
    Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
    * All fluid by nature and therefore subject to change.

  6. #6
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    I'm with DrZ, but it would also be good to have this ability built in to the engine.

  7. #7
    That ist what we most likely will do, break up the Message...

    tks,

    Fenloh

  8. #8
    I am still having this problem, but i thought i have seen something in the 2.8 patchnotes, but i seem to miss it somehow.

    breaking it up in 2 messages does not work. Maybe if i find the last step, just bevor the message is sent, but i happen to miss it somehow.

    Fenloh

  9. #9
    You can capture the dice messages in the onDiceLanded event handler for the chatwindow control.

    Regards,
    JPG

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in