Building Dependent Heros
As of now, we do not include examples for building dependent heros in your game - but the following brief summary will help developers interested in making this game feature and how we perceive it to be done.
What are Heros?
Some games use specalized units, or heros, that come with a special building. For example a "Giant Knight" or a "Giant Archer" that you can only get when you build a certain type of building.
How can I make building a Unit dependent on a building?
First you need some graphics add-on/reassign of existing buildings to match the economy structure of battle games that feature heros (otherwise you can't even visualize it, and it will be difficult enough as it is):
Buildings:
Home Town
Production/Storage
Barracks
Spell Factory
Laboratory for Unit/Spell upgrades.
Each with say 12 levels of upgrades
Dependencies:
- each HomeTown level allows you to build a certain number of production military defense decorations structures;
- each HomeTown level corresponds to an hourly/daily production and maximum upgraded storage that will determine the average/maximum prices for everything in that level
- each building upgrade level depends on HomeTown
- each unit/spell upgrade level depends on Laboratory level
- each upgrade has an evolving price/time required
Upgrades
- for economy buildings hourly production storage hitpoints, time to upgrade
- for defenses/units damage range hitpoints
- for military buildings - how many units it can store/train in a queue.
Long story short, this feature is built on a massive data structure of entries, not to mention making a difference in-game - calculate properly damage, loot per character - what we have is an extreme over-simplification, even at this point.
Evolution.XML is not working at the moment.
More information at Gameplay > XP and Levels .
You can find the dependencies in Evolution.XML, and they are processed by Stats.cs ( This feature is not implemented ).
We made the existing Evolution.XML file like this for developers to easily test without limits - just set the player level to 11 in the Stats GameManager and you'll have unrestricted building abilities. ( This feature is not implemented ).
Updated less than a minute ago