RhenaudTheLukark / CreateYourFrisk

Rhenaud The Lukark's Unitale fork
GNU General Public License v3.0
133 stars 56 forks source link

[Issue] Strange behavior when using [] at the beginning of encounter text #36

Closed TomaszewskiPatryk closed 5 years ago

TomaszewskiPatryk commented 5 years ago

Describe the bug When starting an encounter text with something (that isn't a function) between [], that text is displayed before the * symbol.

Code To Reproduce

encountertext = "[abc]Hi!"

Result image

Expected behavior Text (with the brackets) should be displayed after the star. However, an option to add text before the star or even remove the star at all could be proven useful.

Setup:

Eir-nya commented 5 years ago

Sorry if you saw my comment just now, I deleted it because it was wrong.

This behavior allows [color:######] to color the star, you see. As a temporary workaround, you can use a character not supported by the font first, and it won't be displayed, but the "not-command" will be displayed properly:

-- Examples:
encountertext = "♪[abc]"
encountertext = "ä[abc]"
encountertext = "▲[abc]"

But you're right, it might be a good idea to only have this exception apply to the [color] and/or [alpha] commands. We might look into it!

RhenaudTheLukark commented 5 years ago

Or you can also use a space! It works quite well with one