I got the basis of wild encounters working! There are a lot of other elements it needs to be complete, like a time cycle for day/night appearances, and creature 'avatars' so some will appear wandering in the open.
For now, though:
- It can pick a creature from a list that varies by Sector. Each creature has an Appearance Value that defines how rare it is in the Sector.
- It can choose an appropriate object for the creature to 'spawn' at. At the moment, this is just in the form of a bush rustling - it looks for one on-screen or just out of sight and spawns the creature there. Walking over the bush initiates the wild encounter for the moment - I'm planning to do something different.
Now I guess I should work on Catching those creatures! Also needed is some system to govern the base Exp wild creatures get, which should be easily done by Sector control.
|