- Joined
- Nov 23, 2012
- Messages
- 2,192
- Reaction score
- 382
- First Language
- Swedish
- Primarily Uses
Hey people.
So I have a problem with custom move-routes.
The thing I planned for my game was to have Npcs to do certain actions, instead of just randomly walking around. I think that it would bring a little more life to the cities that way.
So I have this fisherman in my first town, and I have him set to walk down to the lake and trigger another events A-switch with a script call. Everything works fine and the event that should resemble a fishing line and a lure appears. The fisherman fish for a while and then walks back to a fireplace where he starts a fire. He then walks up to a store to buy some spices, and then walks back to the campfire to eat the fish. At another point of time I want him to appear at another place, maybe fishing with his son etc, etc. I wanted to do this to make some of the Npcs to have some kind of schedule, maybe spawn at the pub at one point and then appear at some other location.
But this is proving to be a lot harder than I thought.
Since the move-route always resets after leaving and re-entering the map, it messes up the event. If the fisherman in question gets to the pond and activares the event with the lure, and the player at this point leaves the map. Then if they return the fisherman will be placed at his original postion while the lure will still be visible.
I then fixed this by using Shaz's remember event position script, and even though it fixes the position, the event will still mess up because of the move-route. Even if I put a save position after a complete move-route, it will save the position anywhere in the move-route anyway. This means that the move-route restarts, while the position is changed resulting in the event walking the wrong move-route instead of the one needed.
I might have to scrap this idea, but I'm not sure how people makes custom-routes to work properly?
So I have a problem with custom move-routes.
The thing I planned for my game was to have Npcs to do certain actions, instead of just randomly walking around. I think that it would bring a little more life to the cities that way.
So I have this fisherman in my first town, and I have him set to walk down to the lake and trigger another events A-switch with a script call. Everything works fine and the event that should resemble a fishing line and a lure appears. The fisherman fish for a while and then walks back to a fireplace where he starts a fire. He then walks up to a store to buy some spices, and then walks back to the campfire to eat the fish. At another point of time I want him to appear at another place, maybe fishing with his son etc, etc. I wanted to do this to make some of the Npcs to have some kind of schedule, maybe spawn at the pub at one point and then appear at some other location.
But this is proving to be a lot harder than I thought.
Since the move-route always resets after leaving and re-entering the map, it messes up the event. If the fisherman in question gets to the pond and activares the event with the lure, and the player at this point leaves the map. Then if they return the fisherman will be placed at his original postion while the lure will still be visible.
I then fixed this by using Shaz's remember event position script, and even though it fixes the position, the event will still mess up because of the move-route. Even if I put a save position after a complete move-route, it will save the position anywhere in the move-route anyway. This means that the move-route restarts, while the position is changed resulting in the event walking the wrong move-route instead of the one needed.
I might have to scrap this idea, but I'm not sure how people makes custom-routes to work properly?
Last edited by a moderator:
