Multiboards...

PurgeandFire

zxcvmkgdfg
Reaction score
509
Agh, yet again multiboards just seem to fail for me. Well, it is not so much using them as it is what I'm trying to do with them.

Anyway, my problem is automatic line breaking. I want it so that once I type too long of a line, it will break to the next row. It is okay because it is a single column multiboard and the description is the last row, so I don't need to worry about shifting other rows or anything like that. I can't use \n because that makes shifts the original row up a bit and it generally messes up the multiboard.

To further explain my problem, take for example Microsoft word.
ms0.jpg


That is a normal line. But what if I lengthened it? It would automatically break down to the next line instead of trailing off the page, like so:
ms1qf.jpg


I want that, but for multiboards. Thanks for any and all help, this problem has frustrated me for a long time.
 

cleeezzz

The Undead Ranger.
Reaction score
268
the only thing i can think of is experimenting to see how many characters fit on your columns and then run your long string through subscripts to cut them and display them on different rows

though this method already presents a problem because it will cut words off and thats ugly, however you could make it so that it only cuts at the closest [space]
 

tooltiperror

Super Moderator
Reaction score
231
You could try to write a Multiboard wrapper that gives ASCII numbers values in length.

For example, the value of an I is less than the value of an H because I is shorter in width. When you reach a certain amount, jump to the next line.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Thanks guys! I decided to use that char-length method. Luckily enough, Bob666 already made a function for that (although it is meant for game messages) but it is all relative anyway so it works pretty well.

As for the words cutting off, I just exploded the string into separate words, got their sizes and put them on lines according to how many can fit on one. It works great so far. :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top