Ancient Sweet obtaining requirements

Heya i am new to wiki, and kinda terrified of editing articles. But I looked at the code after wondering how to obtain ancient sweet so i thought id post the requirements here. Here's what i found:
It seems that To trigger the dialogue that makes susie give you the chocolate you have to not have the items she'd usually list off in your inventory or storage. Which include: Dark Candy, Dark Burger, DD Burger, CD bagel, ANY revive items, and ANY tp items.
Which is kinda insane by itself, but it seems like darkcandy_check will trigger not only if you have dark candies, but also if global flags 101, 102, 128, 140 were triggered.
I couldn't find where flags 128 and 140 were. But flags 101 and 102 are used to track if you had picked up a dark candy from a tree in ch1. So i assume other flags are used to track if you had got a dark candy in other ways (probably buying them fro seam.)
So it seems that to get that one item you not only need to not have a dark candy in your inventory, but to never have even picked one up. Which is crazy but i guess 400 hp heal is worth it.

Hey, welcome!

Don't worry too much about editing articles. Others can help polish the articles up!

Thanks for sharing this info with us. I am still on Chapter 3, so I can't verify this yet...

So it's Dark Candy related and a SAVE Completion File transfer? As in, picking from either of the two Dark Candy trees in Field? Or is it specific, like the one that has Lancer's post near it?

After consulting this list of global flags: https://github.com/Jacky720/FloweysTimeMachine/blob/deltarune/flags.js from Jacky720
101: first candy tree
102: second candy tree
128: CD bagel from trash for some reason???
140: Dark Candy from trash. That one makes more sense.

If any of those flags are not 0 then darkcandy_check is set the true and the scene plays out as normal.
I did try starting out from ch4 with no save file and i DID get the ancient sweet, most likely because that premade save doesn't have any items.

So to reiterate: To get the item you must clear your inventory of any items mentioned previously before starting ch4, and you must have never touched those two trees or trash cans.

Also keep in mind that i couldn't find the code that changes flags 128 and 140 myself, so they might be not even be used. Buts its most likely because i am really new to using undertale mod tool. And i dont really have patience two replay the whole game to test it out.
Edit: nvm lol found it, yeah the flags are used and yeah they are for trash cans.
CD bagel trash can is in the poppup room and the Dark Candy trashcan is in the city intro.

Thanks again for looking into this, I've updated the Ancient Sweet article for you, based on your findings! I unfortunately cannot confirm this in-game myself yet because I picked up both the items in Chapter 1+2...

I'm still surprised by this. Most people want to collect everything, yet Ancient Sweet's requirements means someone has to avoid very specific things instead!

Hell yeah, thank you! It is pretty weird, the fact that you can get it easily by starting from ch4 seems to indicate to me that its a boost specifically for those who do. Fox works in mysterious ways.