Solid Snekk
since someone said they were interested in having encounter be position dependant in the forest, here's how that would looks like if implemented:
local edit : most of the event already ingame are not present in this code as this is a prototype
If you have difficulty deciphering it, basically I'm using the northroad length for only the south forest to make the chance of encounter.
I also made a separate function location to calculate the absolute difference (which is what those @ calls are)
The encounter choice is basically the one who got the max value by rng minus the distance from the marker where they are.
This method has the advantage that you could randomize every location position on the southern forest part of the northern road for each new game if you want.
Now for my question: do you want the witch hut and the wolf den to be at a specific marker?
(I'm working on the battle system at the same time, just wanted a bit of change of pace for a bit)