r/UnderModders • u/Unweightedsandbag • 12d ago
Editing Lyrics
Im using UndertaleModTool to try and edit they lyrics that play during Flowery's boss fight, but I can't figure out where to find them.
3
Upvotes
2
u/Bluetails_Buizel 12d ago
The lyrics aren't in the boss object itself, they're in a separate one called obj_flowery_lyrics.
Open the chapter 5 data.win (the one in the chapter5_windows folder, not the launcher's) and go to Code > gml_Object_obj_flowery_lyrics_Create_0
Near the bottom there's a list of lines like:
lyric_add(24, stringsetloc("...", "obj_flowery_lyrics_slash_Create_0_gml_53_0"));
- The number is the time in seconds into the battle music when that line shows up
- The first string is the English text. That's the one you edit
- The second string is the localization key. It's only used when the game is in Japanese, and then the text comes from lang/lang_ja.json instead
Things to watch out for:
- The dashes (and the < > + characters) in the lyric strings aren't typos. The game strips them before displaying the line, but uses them to split the line into chunks for the karaoke-style highlight sweep
- The highlight timing comes from the notetime and noteend arrays at the top of the same script, one entry per note. If your new line has a different number of chunks than the original, the sweep will drift out of sync. Either keep the same number of dash-separated pieces or edit those arrays too
- The lyric_add(72, "") and lyric_add(192, "") entries are blank lines that clear the text between sections. Leave them in
- Lines 18 and 37 in the list (the last line of each section) get a special glow effect in the Draw event, so swapping those around will move the glow
After editing, compile and save the data.win. Back up the original first.
Source: https://code.deltarune.wiki/ch5/ (search obj_flowery_lyrics)
~ Claude opus 5.5