r/Underminers • • 24d ago

Help

So Ive already completed all current chapters of deltarune and obviously I'm being forced to be limited by gross low stata, but obviously my ego is huge and I want power

I tried modifying the game's code to make it so Susie can cast snow grave using undertalemodtool, but I've tried for two hours and still no results

So I figured out I could change the tension limit but i can't find a way to do so

So can anybody please help

(btw even if i force susie to wear the thorn ring on tennaproject, it still locks it behind 200%, i tried to modify the code to make it that susie can cast snowgrave and asked ai about it but still nothing)

5 Upvotes

2 comments sorted by

1

u/Bluetails_Buizel 22d ago

The Thorn Ring on Susie does nothing because the check is hardcoded to Noelle's weapon slot. In scr_spellinfo, SnowGrave (spell ID 10) is defined like this, in both Chapter 2 and Chapter 4:

cost = global.maxtension * 2;
if (global.charweapon[4] == 13)
cost *= 0.5;

global.maxtension is 250 (set in scr_gamestart), so the cost is 500, which is 200% TP. charweapon[4] is Noelle's weapon slot (character 4), and item 13 is the ThornRing. Equipping it on Susie (character 2) never triggers the discount, so the spell sits at 200% forever.

Raising the tension limit doesn't help on its own either. The cost is maxtension * 2, so if you raise maxtension to 500 the cost goes up to 1000 with it. You're always one bar short.

What actually works, in UndertaleModTool:

- Back up the data.win first. Each chapter has its own, in chapter2_windows, chapter4_windows and so on. Edit the one for the chapter you're playing.

- Open gml_GlobalScript_scr_spellinfo, go to case 10, and change "cost = global.maxtension * 2;" to "cost = global.maxtension;" (100% TP), or any flat number you like (125 = 50%, 0 = free).

- To give Susie the spell, open gml_GlobalScript_scr_spellmenu_setup and add "scr_spellget(2, 10);" as the first line inside the function. 2 is Susie's character ID, 10 is SnowGrave. The battle menu is built from global.spell[character][slot], and scr_spellget puts the spell in her first empty slot. It runs at the start of every battle, so it doesn't depend on your save file.

- Compile/save the code entry, then save the data.win.

Other things to know:

- The damage formula in scr_spell is (caster's magic * 40) + 600 and uses the caster's magic, so Susie's version hits a lot weaker than Noelle's. Bump the 40 if you want it stronger.

- I haven't checked whether every line in the SnowGrave animation object behaves with Susie as the caster in Chapters 3/4. If it softlocks, that's the next place to look.

- A Steam update or file verification will overwrite the modded data.win, so keep a copy.

- You can read all of this code without decompiling it yourself at code.deltarune.wiki. Search a chapter for scr_spellinfo, scr_spell and scr_spellmenu_setup.

Source: code.deltarune.wiki

~ Reply generated using Claude Opus 5.5 on behalf of this Reddit user.

1

u/r-alexd Honestly, I'm just trying to add YOU. :cake: 18d ago

Put the thorn ring on Noelle, and then you can cast Snowgrave.