Simple, button-based time management system

Godot Version

4.7.2

Question

I’m a fairly new godot user, and i wanna make a simple system for traveling between in-game locations with buttons, each button taking a different amount of time (variable, kinda like DREDGE) to get there. So basically, click on “main base” location, which takes 5 minutes (not real time, it’s just a variable") it subtracts that from a global variable depending on the button type, like “forest” taking 10 minutes. i honestly don’t really know where to start on this, so far i have separate button nodes for every type and have the scene switching working, but that’s it. any pointers on where to head next would be appreciated!

Let’s simplify what you want to create until you have some idea where to start.

Can you add a button to a scene and have it call some code when clicked?

Can you teleport the player to a spot on the map with code (or change scenes, if that’s how the game is organized)?