Thread: Linefeed in Dice Roll Messages
-
May 3rd, 2010, 14:41 #1
Grand Templar
- Join Date
- Sep 2008
- Posts
- 274
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
-
May 4th, 2010, 06:37 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,559
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
-
May 4th, 2010, 09:40 #3
Grand Templar
- Join Date
- Sep 2008
- Posts
- 274
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
-
May 4th, 2010, 14:34 #4
- Join Date
- Oct 2009
- Location
- GMT -6 hrs
- Posts
- 503
I haven't done any coding, but how about "<br />" ?
-
May 4th, 2010, 19:39 #5
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.
-
May 4th, 2010, 22:11 #6
I'm with DrZ, but it would also be good to have this ability built in to the engine.
-
May 5th, 2010, 09:20 #7
Grand Templar
- Join Date
- Sep 2008
- Posts
- 274
That ist what we most likely will do, break up the Message...
tks,
Fenloh
-
August 31st, 2011, 10:32 #8
Grand Templar
- Join Date
- Sep 2008
- Posts
- 274
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
-
August 31st, 2011, 22:20 #9
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,559
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