Generally speaking, you are never completely bereft of resources, even if your situation comes on by surprise or accident.
Information and a cool head are essential.
A simple example would be using your bootlaces to make a bow drill for fire starting.
But that means that you should never be anywhere near a forest setting wearing only flip-flops.