Cities and NPCs
In the last few days I worked at integrating the structures (buildings) in cities. I mean, previously I had jut some functions to add buildings to the map, but they were just a mere collection of objects on a map. Right now, they are part of a city. First, you need to build 10 houses, and then a townhall. After the townhall is built, you can build 'industrial' structures, such as warehouses, docks, shipyards, stores, etc.
For the time being, I've implemented only building houses and townhalls, but the framework for the other structures is done, so it will be a piece of cake (well, sort of) to add them.
Right now, I am focusing on writting some NPC code. Today I hope I will manage to implement a system where I define the type of NPCs (such as which clothes, genders, races, etc.) each type of NPC will be. For example, a blacksmith will wear different clothes than a barmaid, and will also look different.
So the idea is to implement the clothes and such in an xml like format, and when I add an NPC of a certain type, the server will know which clothes, genders, portraits, etc. to use.
I might also add some randomness, like multiple random choices for portraits, skin color, and so on, in order to avoid having all the NPCs look the same.
For the time being, I've implemented only building houses and townhalls, but the framework for the other structures is done, so it will be a piece of cake (well, sort of) to add them.
Right now, I am focusing on writting some NPC code. Today I hope I will manage to implement a system where I define the type of NPCs (such as which clothes, genders, races, etc.) each type of NPC will be. For example, a blacksmith will wear different clothes than a barmaid, and will also look different.
So the idea is to implement the clothes and such in an xml like format, and when I add an NPC of a certain type, the server will know which clothes, genders, portraits, etc. to use.
I might also add some randomness, like multiple random choices for portraits, skin color, and so on, in order to avoid having all the NPCs look the same.
0
Sign in to follow this
Followers
0
7 Comments
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now