Int from String

grazepoop

New member
I'm working on a gourdcore script to handle the gourd tower, and I'd much prefer to trade in for potions as I go instead of collecting 315 and then going crazy on the poor guy.

I've figured out how to isolate the text, and even isolate the number all by itself within a substring, but I can't figure out if there's a way to turn that into an integer. I tried the extract_meat function, but I can only get 0 from that. Is there any other way?
 

grazepoop

New member
Wow. That was easy. Well. That's that then. I've been trying so hard to learn ash, that I never even consider cli.

Nonetheless, as I probably should have done originally, I just tried string_to_int, and it ended up working.
 
Top