The workers will soon get tools, and something to carry their loads in. They are chopping trees and cutting gems with their bare hands atm.
This needs to get tied to the vendors' work days (vendors go home at night, but there is a night shift). It's a little simplistic right now, but it works. I can do it better with Smart Objects.
I've got resources NPCs can harvest regrowing. Plants. Trees. Not sure how to deal with things like gems and gold, which I think I'll either have a long regrowth, or after a long time, randomly (or in an area) put the item somewhere else. At the moment, everything grows at a 5-minute rate to maturity.
There is a cave level, though right now the minerals are at the surface. I'm planning on having both.
I get to get a mine tram working again for the cave level. I had one in a very early instantiation of a similar game (where I learned a lot about what not to do in UE).
Soon, I'll want to program some customs. The NPCs can harvest, but not plant. They have no seasonal behaviors yet. They need activities like eating, sleeping, and play.
I'm guessing I can't replace an entire forest with Smart Objects, but this should be interesting. How human players might get to use them (or something similar) is unknown at this time.
The sky tram is throwing errors. Not sure what started that. The ground tram works. I like the method I used, but mostly for the former. I think I may need to use a spline (groan) for the latter, but we'll see. Turns are a bit abrupt, I think.
After battling with Smart Objects (SO) in 5.6.1, I decided my best options were (a) to store the identification of the SO the worker is at with the worker, so they don't flip between them with every stroke (they check to see if they already have one saved), and (b) to wipe out the SO and recreate it as needed, rather than play games with switches. That means growing plants have no SO, and thus can't be harvested until maturity, when the code gives it back. I can disable/enable for other situations, but sometimes that just wasn't working, and I tired of debugging Unreal's code, which was later changed in 5.7.
I'm having fun with UE5 state machines. Can you tell?
#UE5 #RPG