littleDialogue.lua (v1.2) - bye bye default text boxes!

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9860
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: littleDialogue.lua (v1.1) - bye bye default text boxes!

Postby Emral » Mon Jul 03, 2023 8:44 am

AntonioTopino wrote:
Mon Jul 03, 2023 8:00 am
Emral wrote:
Mon Jul 03, 2023 7:36 am
AntonioTopino wrote:
Mon Jul 03, 2023 7:27 am

It's not doing anything. I'm also copying the exact luna.lua file from the level example, but still nothing.
The strange part of all of this is that the "require("littledialouge")" thing is not written on the script of the level.
So I still don't know what's the problem with this son of a gun.
Can you upload a zip of your setup? Then I can take a look.
You mean the episode or the actual luna.lua file?
all relevant files

Enzo
Banned
Posts: 11
Joined: Wed Sep 22, 2021 2:24 pm
Flair: ever wondered how babies were born?
Pronouns: He

Re: littleDialogue.lua (v1.1) - bye bye default text boxes!

Postby Enzo » Mon Jul 03, 2023 8:50 am

Do you have a Discord? Maybe I can send you the shit there because I don't know how to send it on the forum.
If yes, Ill give you my usename.

MrDoubleA
Flurry
Flurry
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: littleDialogue.lua (v1.1.1) - bye bye default text boxes!

Postby MrDoubleA » Sat Aug 19, 2023 1:32 pm

Just a minor update. Fixes not being able to use non-ASCII characters, fixes several important bugs in the playerKey tag (including it breaking when using a controller), and allows you to pass a table of text into littleDialogue.create rather than only a string separated by the <page> tag. This version is required for cutscenePal's littleDialogue support.

MrDoubleA
Flurry
Flurry
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: littleDialogue.lua (v1.2) - bye bye default text boxes!

Postby MrDoubleA » Sat Mar 29, 2025 10:33 am

Been a while, but it's now been updated to v1.2! Here's the changelog:

  • Added the placementStyle setting for box styles. Can be "AUTO", "ABOVE" or "BELOW".
    • By default, it is set to "AUTO". This means that the box may appear either above the speaker or below the speaker depending on where the speaker is on screen.
    • The old behaviour of the box always being above the speaker can be restored by setting this to "ABOVE".
  • New tags:
    • Added the <twitch> tag, which causes text to have a small chance to be offset by a single pixel. It takes one argument, a 0 to 1 value which represents the chance of it being offset.
    • Added the <speed> tag, which controls the speed of the typewriter effect. "<speed 0.5>" will make it half as fast, "<speed 2>" will make it twice as fast, etc.
    • Added the <unskippable> tag, which prevents the player from skipping the remainder of the text by pressing the jump button.
      • Also added the textUnskippable setting for box styles.
    • Added the <signal> tag, which transmits a signal for the Routine class when it appears in text. Useful for timing events in a cutscene to the text.
    • Added the <forceWidth> tag, which forces the text box to be a specific width. This is useful in cases where the normal size of the box is too small.
  • <playerKey> tag changes:
    • There is now partial controller support. Switch Pro Controllers and Xbox controllers will now display proper icons.
    • The escape key now has an icon.
    • Fixed the icons not being pure white.
  • Typewriter delays less than 1 are now properly supported, allowing for very fast text speeds.
  • You can now have multiple typewriter sounds which are randomly picked each time a character appears. You can do this by having files named "typewriter-1.ogg", "typewriter-2.ogg", etc. instead of the usual "typewriter.ogg".
  • You can now set a custom sound delay (the time between each typewriter sound) for voices. This can be done through the "voiceDelay" parameter for portraits or the "delay" argument for the <voice> tag.
  • Boxes now have a "timeScale" value. This allows you to control the speed of everything related to the box. E.g., a value of 0.5 will make everything about the box run at half its normal speed.
  • littleDialogue's onMessageBox event is now a "late" event, making it easier to cancel with another script.
  • Fixes:
    • Fixed the text of a box shaking slightly during the opening/closing animations.
    • Fixed the speaker name being able to go above the screen.
    • Fixed the text colour of answers being handled incorrectly.
      • The answer colours of the "ml" and "drSmall" styles have been updated accordingly.

FutureNyanCat
Eerie
Eerie
Posts: 764
Joined: Fri Dec 20, 2013 8:39 pm
Flair: Species: Felis robotus
Pronouns: He/Him
Contact:

Re: littleDialogue.lua (v1.2) - bye bye default text boxes!

Postby FutureNyanCat » Wed Apr 02, 2025 6:35 am

Oh nice, multiple typewriter sounds - looks like I can make Queen Deltarune in SMBX2 now!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari